Bad Scripting That Crash Myth - What factors do you know of?

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Post 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?
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post 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.
Myrd
Site Admin
Posts: 4031
Joined: Fri Mar 19, 2004 10:17 pm

Post by Myrd »

Pyro: Thanks. This will no longer cause a crash in Build 276 and later.
User avatar
haravikk
Site Admin
Posts: 987
Joined: Mon Mar 22, 2004 12:56 pm
Location: Scotland

Post 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 :))
Being Haravikk gets you girls like these:
Image
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Post 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.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post 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.
Myrd
Site Admin
Posts: 4031
Joined: Fri Mar 19, 2004 10:17 pm

Post 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!
Post Reply