Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Enemy and Script Related Crashes

4 replies · 1,476 views · Started 15 July 2007

I've discovered two things that can cause the game to crash involving enemies. In both cases, my custom weapon scripts are running, which means there is a script checking collisions with each enemy each frame, whether the weapon has fired or not. This might be involved in the crashing.

(1) If you spawn too many enemies, the game crashes and dumps you into windows. I've got Vire Tribble set to split into three other Vire tribbles on death. This works fine for awhile, but if you make it split enough, the game will eventually crash.

Download the newest version of Zodiac over at that thread. In the Cancer area, you'll find Lanmolas to shoot at and cause crashes; just keep shooting. In Virgo, you'll find the Vire tribbles (red fungus things pictured in a screen shot) that will also crash if you keep shooting at them and making them split.

There is a limit of 255 enemies per screen; I have tried to change the enemy creation code to fail gently when this limit is exceeded.