Page 1 of 1
Posted: Fri Apr 21, 2006 3:39 pm
by Pyro
While working on some scripting I encountered a problem that would make my level crash the game. I solved it but thought of making a post where all the known factors for a bad script to crash the game or at least the level.
My only example is having a OBMO (Observer Movement) that was "Initially Active" to have the "Angular Interpolant Separation" value of 0. I was trying to plave a value smaller than 1 but not 0. I didn't notice it made the value to a 0, until I came back to it looking for the reason why it crashed the game.
What other factors do any of you know that crash the game/level script-wise?
Posted: Fri Apr 21, 2006 4:18 pm
by A-Red
wow...could be anything, really. I've had crashes for a number of unrelated reasons, and unfortunately i can't remember any of them at the moment. In the old days (that is, pre-1.4 and 1.5), there were a number of crashes related to MELE and ATTA actions, but I'm pretty sure Magma has solved these.
Posted: Fri Apr 21, 2006 4:53 pm
by Myrd
Pyro: Thanks. This will no longer cause a crash in Build 276 and later.
Posted: Sat Apr 22, 2006 3:56 am
by haravikk
Scripts can crash for all different reasons. I'm currently trying to figure out why one of my GEOM actions won't play nice on OS X even though it all looks fine, I might even just throw the broken level into the testers forum and see if it is just me or not.
On that note, having too many simulataneously running GEOMs is frequently not a good idea, 6 is about the limit on GEOMs set to never end, however you can get around that by putting in a delay, at the cost of responsiveness (though GEOMs aren't very responsive if they crashed your map so it's a good trade-off )
Posted: Sat Apr 22, 2006 5:23 pm
by Pyro
Yes, I know there are many different scripts that can crash, but the point of the thread is to have at least some of the known ones listed... Remember not everybody knows about them. Like what you said Haravikk about 6 GEOM that Never expire limit. I didn't know that. What other things do you know of people? This is to have a collective source of information about scripting that can crash the game or level. Including limits of scripting.
Posted: Sat Apr 22, 2006 5:48 pm
by A-Red
It might be worth pointing out here than a given level cannot have more than 680 lines of script. It doesn't cause a crash, but stuff just starts going wrong if you push past that limit. Random stuff.
Also, never try to Munger a running GEOM. I hear that can crash your entire comp.
Posted: Sat Apr 22, 2006 9:39 pm
by Myrd
There was a GEOM-related crash that Graydon pointed out, and it will be fixed in Build 276. If you guys have reproduceable crashes, list them here and I may be able to fix them for Build 276. After that, it will soon be time to ship 1.5.2 - so get those bug reports in while you still can!