Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005890Dwarf FortressTechnical -- Saving/Loadingpublic2012-05-15 07:432012-05-15 16:34
ag 
Toady One 
normalminoralways
resolvedfixed 
0.34.08 
0.34.09 
0005890: The 'next vehicle id' is initialized with garbage on upgrade from 0.34.07
There is a global variable in the game that holds the next ID that would be used for a new vehicle object. When a save is upgraded from 0.34.07, this variable is initialized with random garbage, including sometimes big negative values (especially on linux).
Open an old save, look at variables in memory.
I didn't notice any actual functionality failures with negative ids, thus 'minor'. I suspect this is caused by an uninitialized local variable.
No tags attached.
Issue History
2012-05-15 07:43agNew Issue
2012-05-15 07:54ab9rfNote Added: 0022518
2012-05-15 16:34Toady OneStatusnew => resolved
2012-05-15 16:34Toady OneFixed in Version => Next Version
2012-05-15 16:34Toady OneResolutionopen => fixed
2012-05-15 16:34Toady OneAssigned To => Toady One

Notes
(0022518)
ab9rf   
2012-05-15 07:54   
I can confirm this on Windows. I loaded three different .07 saves. The first two (both fairly mature forts) got the same fairly large value (1489568466), and a third (a fort saved immediately after embark without any development) got a somewhat smaller value (64485885). I didn't test to see whether reloading the same save more than once yields the same value.