sadger / CorsixTH

Open source clone of Theme Hospital
Other
1 stars 0 forks source link

SAVEGAME VERSION #36

Open MarkL1961 opened 9 years ago

MarkL1961 commented 9 years ago

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

MarkL1961 commented 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>

sadger commented 9 years ago

Oh OK. Did increasing that fix the issue or haven't you tried it?

MarkL1961 commented 9 years ago

worked for me

sadger commented 9 years ago

This has been updated and pushed in the latest commit. Typos also fixed.

MarkL1961 commented 9 years ago

if this gets merged before yours, you will need to change to save game 87

J-Shep commented 9 years ago

@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.

sadger commented 9 years ago

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.