Open MarkL1961 opened 9 years ago
Error in timer handler: ...b\Sadger\CorsixTH-epidemics\CorsixTH\Lua\utility.lua:200: bad argument #1 to 'ipairs_orig' (table expected, got nil) stack traceback: [C]: in function 'ipairs_orig' ...b\Sadger\CorsixTH-epidemics\CorsixTH\Lua\utility.lua:200: in function 'ipairs' ...\Sadger\CorsixTH-epidemics\CorsixTH\Lua\hospital.lua:1366: in function 'addToEpidemic' ...\Sadger\CorsixTH-epidemics\CorsixTH\Lua\hospital.lua:1356: in function 'determineIfContagious' ...\Sadger\CorsixTH-epidemics\CorsixTH\Lua\hospital.lua:1583: in function 'addPatient' ...CorsixTH-epidemics\CorsixTH\Lua\entities\patient.lua:239: in function 'setHospital' ...Hub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\world.lua:503: in function 'spawnPatient' ...Hub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\world.lua:1034: in function 'onTick' ...itHub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\app.lua:839: in function <...itHub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\app.lua:836> (tail call): ? ...itHub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\app.lua:740: in function <...itHub\Sadger\CorsixTH-epidemics\CorsixTH\Lua\app.lua:735>
Oh OK. Did increasing that fix the issue or haven't you tried it?
worked for me
This has been updated and pushed in the latest commit. Typos also fixed.
if this gets merged before yours, you will need to change to save game 87
@sadger The trunk's saved game version number is now 86, now that my bug fixing #314 pull request has been merged. My other pull request @MarkL1961 provided a link to won't change the saved game version number.
Nice to see you on this tracker @J-Shep. I had a word with TheCycoPerson and we will sort out the version numbering during merging. Unless you code directly affects mine then it probably won't matter that much.
Just downloaded your updated branch and loaded an old save of mine. Almost straight away got an error as soon as an infected patient was spawned.
You have SAVEGAME_VERSION = 82, in the trunk it is SAVEGAME_VERSION = 85 and my save was 84.
You need to increase yours to SAVEGAME_VERSION = 86 and any associated if old to < 86