Page 1 of 1

why does onload fire every few minutes, but not at the start

Posted: Thu Feb 20, 2014 9:03 pm
by sparr

Code: Select all

game.onload (function()
        game.player.print("Hello World")
end)
This is my test case. I think it's firing every time the game autosaves. That's about the right frequency to match how often I see the message. What's wrong here?

Re: why does onload fire every few minutes, but not at the s

Posted: Thu Feb 20, 2014 9:51 pm
by drs9999
Yes every time the game is saved (by user or autosave) the game is loaded again after that. When starting a new game the oninit-event is called

Re: why does onload fire every few minutes, but not at the s

Posted: Thu Feb 20, 2014 9:54 pm
by sparr
But it's NOT firing when I load a saved game manually.