Knuckle Cracker

Knuckle Cracker => Support => Topic started by: warren on September 17, 2014, 05:48:46 PM

Title: Possible bug terrain modification in :awake freeze
Post by: warren on September 17, 2014, 05:48:46 PM
If terrain is modified in the awake function before game load, the game freezes. It also freezes if void is created at this time. If this is acceptable behaviour, there should probably be a note in the documentation.
Title: Re: Possible bug terrain modification in :awake freeze
Post by: Karsten75 on September 17, 2014, 05:51:23 PM
Right now, I'd say everything in the game is "acceptable behavior". :) CW3 is really considered stable and I don't think you'll see any update rolling out very soon.
Title: Re: Possible bug terrain modification in :awake freeze
Post by: planetfall on September 17, 2014, 06:35:00 PM
Define "freeze." I made a map a while back that did this, it took ages to load, but it never caused the game to completely lock up. If it has changed since then, that would probably be considered a bug.
Title: Re: Possible bug terrain modification in :awake freeze
Post by: warren on September 18, 2014, 03:23:54 AM
This file does not load for me. In the event that it does not load for you, here is the script of the single unit:

# test.crpl
# Created on: 9/17/2014 3:25:56 PM
# ------------------------------------------


:awake
50 50 10 SetTerrain
Title: Re: Possible bug terrain modification in :awake freeze
Post by: knucracker on September 18, 2014, 09:35:02 AM
Yeah... that causes an exception because the terrain objects are instantiated yet at that point in the load.  So in short, don't do that.