Search found 3 matches

by puzzletory
Sat Jun 20, 2020 10:25 pm
Forum: Minor issues
Topic: [0.18.32] Scenarios from the "Mod scenarios" section are cloned to the "User scenarios" section after save/load.
Replies: 1
Views: 1186

[0.18.32] Scenarios from the "Mod scenarios" section are cloned to the "User scenarios" section after save/load.

How to reproduce: Install any mod with a scenario. I tested it with "Tower Defense" mod, but I can reproduce it also with mods "Puzzletory" or "16k Mini Factory (128x128 Scenario Map)". Start the scenario from main menu (go to "Single player" -> "New Gam...
by puzzletory
Sat Jun 06, 2020 9:26 am
Forum: Modding help
Topic: Can I fix scripts in the saved file by migration?
Replies: 3
Views: 808

Re: Can I fix scripts in the saved file by migration?

Thank you for both replies! I added a migration script with game.reload_script() to my mod, and now it works.
by puzzletory
Fri Jun 05, 2020 6:37 pm
Forum: Modding help
Topic: Can I fix scripts in the saved file by migration?
Replies: 3
Views: 808

Can I fix scripts in the saved file by migration?

I'm developing a mod that contains only one scenario. All my code is in this scenario directories in several Lua scripts. I notice that if I fixed some issues in the scripts, the fix is used for a new game only. If I load the game from save that was created before the fix, the game still uses old co...

Go to advanced search