Page 2 of 2

Re: I want to see if one number is divisible by another numb

Posted: Tue Nov 15, 2011 10:39 pm
by Ellohir
Great library. I had cron.lua in my game to spawn zombies each few seconds, but it made the game crash seemly randomly. Seems like the garbage collector didn't find the zombie list in use and deleted it (a wild guess, I'm not sure of it). Removing cron.lua fixed the issue, so I ended up with the usual timer thing.

Re: I want to see if one number is divisible by another numb

Posted: Tue Nov 15, 2011 11:16 pm
by kikito
Ellohir wrote:Great library. I had cron.lua in my game to spawn zombies each few seconds, but it made the game crash seemly randomly. Seems like the garbage collector didn't find the zombie list in use and deleted it (a wild guess, I'm not sure of it). Removing cron.lua fixed the issue, so I ended up with the usual timer thing.
:oops: I had no idea! You should have sent me the .love

I will do some tests then.

Re: I want to see if one number is divisible by another numb

Posted: Wed Nov 16, 2011 8:17 am
by Robin
Ellohir wrote:Seems like the garbage collector didn't find the zombie list in use and deleted it
Unless you removed every reference to that list, that can't be the case. And if you did, you can't blame the GC, since it was impossible to get to that list anyway.

Re: I want to see if one number is divisible by another numb

Posted: Wed Nov 16, 2011 10:44 am
by Ellohir
Robin wrote:Unless you removed every reference to that list, that can't be the case. And if you did, you can't blame the GC, since it was impossible to get to that list anyway.
It was my guess but as I said I was not sure. A shame I didn't save that version, that list became nil after a random time playing and never could figure what was it. But the error stopped when I used a timer instead of cron.lua, at least I got that right.