Posted October 30, 2020
I see the map name still uses the seed number in scientific notation, even as of the newest revision (v0.563b)
It might seem like a trivial issue, but scientific notation on the PC doesn't have enough significant digits to correctly store an 8 digit seed number. If another is selected with the same first 6 digits and the last two are different, the game won't be able to keep both maps distinct.
Keeping the seed either as a string or a two-byte unsigned int would prevent the number from being turned into scientific notation (or convert the 8 digit number to hex and use THAT for the file name)
e.g. my star map with seed # 31415926 is stored as 3.14159e+007.sts
If I save the game during a mission in a complex on a planet and start a new game with the seed 31415930 (which would ALSO be saved as 3.14159e+007.sts, overwriting the old map) and the planet I'm on in that older save doesn't exist in the new map, what will happen if I decide to load that old save? Will it crash immediately, or only when I solve the mission and launch back into a star system the game can't find, or will something else happen?
Storing it as 31415926.sts (or 1DF5E76.sts) would avoid the issue entirely.
It might seem like a trivial issue, but scientific notation on the PC doesn't have enough significant digits to correctly store an 8 digit seed number. If another is selected with the same first 6 digits and the last two are different, the game won't be able to keep both maps distinct.
Keeping the seed either as a string or a two-byte unsigned int would prevent the number from being turned into scientific notation (or convert the 8 digit number to hex and use THAT for the file name)
e.g. my star map with seed # 31415926 is stored as 3.14159e+007.sts
If I save the game during a mission in a complex on a planet and start a new game with the seed 31415930 (which would ALSO be saved as 3.14159e+007.sts, overwriting the old map) and the planet I'm on in that older save doesn't exist in the new map, what will happen if I decide to load that old save? Will it crash immediately, or only when I solve the mission and launch back into a star system the game can't find, or will something else happen?
Storing it as 31415926.sts (or 1DF5E76.sts) would avoid the issue entirely.