I want to see if one number is divisible by another number

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

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

Post 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.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

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

Post 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.
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post 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.
Help us help you: attach a .love.
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

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

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

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest