Staredit Network

Staredit Network -> Modding Assistance -> really strange freeze
Report, edit, etc...Posted by coolpotatoes on 2006-09-04 at 12:41:54
Ok, so what i did was change the gateway's flingy to warp gate. I edited the icript to give the warp gate a construction animation. Then in memgraft i made a 3 new button sets. The first has two buttons which change the button set to one of the other 2 new ones. Those two act as the gateway and stargate respectively. They also have a command to go back to the first set. So far so good. However when i click the zealot button the game just freezes, not crashes. helpsmilie.gif Please!! helpsmilie.gif
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-04 at 13:05:32
Try adding a unit building script in the Unknown19 header. (the real IsWorking header, unlike the mis-labelled one)
Report, edit, etc...Posted by coolpotatoes on 2006-09-04 at 19:24:32
Thnx. I fixed it while the network was down. I just kinda copied the gateway script. I'm really not sure exactly what i did, but it works!! biggrin.gif
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-04 at 19:28:05
Freezes instead of crashes sometimes occur when the iscript is bugged. Usually it crashes, but sometimes you'll get a freeze instead. Don't ask me why, although my current theory (by no means official, confirmed or anything) is that freezes usually accompany buildings' iscripts.
Report, edit, etc...Posted by EzDay281 on 2006-09-05 at 03:06:10
The difference between freezing and crashing, Lord_Agamemnon, is in what the exact error is.
It will crash if it simply tries to do something that's not allowed, i.e. a missile sprite still moving after it hits the target and explodes.
It will freeze if it attempts to perform two or more actions with no pause inbetween them, i.e. attack with weapon, play frame 2, goto offset ( attack with weapon ) -- because it doesn't have any 'wait' opcodes, it'll attempt to attack, play frame 2, repeat infinite times in 1 tick.
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-05 at 09:59:42
Really? I never knew that. But I don't know if that's quite right--you can put 5 attack26's in a row with no waits and nothing bad happens.
Report, edit, etc...Posted by Voyager7456(MM) on 2006-09-05 at 10:26:48
Yes you can, but in EzDay's example, the iscript is looped doing something with no wait actions. Code like this would cause a freeze:

CODE

FreezeOffset:
attack26
playfram 2
goto          FreezeOffset
Next Page (1)