Stamina


Hand crafting stuff costs health. Keep some fish handy, and research Automation ASAP.

Tweaks
3 years ago
0.13 - 1.1
199

b On_load event handler

5 years ago

After a long uptime (5 hours of gameplay IGT), I discovered that the on_load event handler in 2.0.0 was screwed by doing things that only work in on_init, causing a crash on load without mod upgrade or other such that would trigger on_init. I lost the save because the on_init handler was using local variables that didn't get saved. I had to start my game over, but I did manage to patch it up by copying how bobclasses did global variables and on_init handler, made a new on_load handler function load_settings. I put it at https://pastebin.com/XfUigzak if you're interested.

5 years ago

This was an issue in 2.0.1 (which has been removed) and is fixed in 2.0.2.

5 years ago

I think it would be a good idea to push it to the 0.16 branch.

5 years ago

Oh dang, I didn't even realize it was in the 0.16 version!

5 years ago

Should be fixed; 2.0.1 (for Factorio 0.16) uploaded. Was kind of a hasty hotfix since I'm running 0.17 now so let me know if there are any problems.

...I really should've versioned the 0.17 one 2.1.0. I was just in such a rush to get 0.17 live I got hasty. :/

New response