YolkfolkThe Dizzy Fansite 0 logged in0 playing
Community discussion

Divide by Zero Error!

Started by Arjak on 3 September 2009 • 3,430 views

5 posts
#54514
I recently found a game-crashing bug in my WIP game, Escape From Castle Zaks.

After getting killed by the troll for all three lives, and then starting a new game, I get a divide by zero error. I checked in the demo I released, and it wasn't there. That means the error has something to do with what I have done since then.

Here is the error message:

EXCEPTION_INT_DIVIDE_BY_ZERO at address 0x42921a

Any suggestions? {yolkfolk}:tired:
👍 0
#66379
this is usually caused by having something in the map such as bubbles or baddies, with the 'disable' property set to 0 (no). with bubbles, you need to have disable set to yes, and with baddies, i think you need to have status set to 1.

the game should also give another message before the EXCEPTION error, guiding you to the line number in the .gs file that is crashing it. This may help to pinpoint the problem.
👍 0
#66388
Problem fixed! The bubbles were indeed the problem! Thank you! {yolkfolk}:clap:
👍 0
#66398
Now I have a new problem of the same kind, though.

A spider seems to be the cause, now. I tried setting the status of it and its wire to 1, but no good.

And for some reason, these divide by zero errors don't give me a line number, just the function that caused the error (which is gsRand, by the way).
👍 0
#66401
ummm can't think off the top of my head what the cause could be tbh. it may come to me tho...
👍 0