I would need a function in my mod to be called periodically, about every month, to do some bookkeeping, and also when the game is saved and loaded. The missionutil.lua script seems to be exactly what I need, but I can't get it to work in Free Mode. Is it possible?
I'm calling game.interface.upgradeConstruction() when an industry upgrades, in the .con files data() function, but all my .params data gets overwritten once my function returns... quite annoying. So I was thinking I'd store this data somewhere else and update the industry.params once the game engine is done with it. Any other idea on how to do it would be welcome. I'm getting desperate and I'm looking for functions in game.config the game engine uses, like town buildings.con() and change the pointers to my own so I can call my update.
I do not speak german and it's making it very hard to find any information, I would greatly appreciate any help I can get here. Thank you.