System.OverflowException: Value was either too large or too small for an Int32.
Are you on the latest version of Nitrox?
Yes, I'm on the latest release of Nitrox.
Which OS are you playing on?
Windows
On which platform did you buy Subnautica?
Steam
Describe the issue.
I was playing with a friend. The game crashed and nitrox stopped working. I restarted nitrox, opened the game, and a new world began. It's good that there was a backup. I restored the copy. But when starting the nitrox server, it says that System.OverflowException: Value was either too large or too small for an Int32. Creation of a new world. The meaning of the error is clear. But how to fix it?
Describe the steps you took to encounter the bug.
Relevant log output
@Elmar8121 I think something went wrong with the save at some point, would you mind sending us the .zip please ?
worldBackup.zip Same issue with my world, narrowed it down the the entity json file, could not find anything problematic with a few programs to check if anything invalided the INT32 range with no luck. Also did some manual searches with specific types of items like the SmallStorage an no luck. The file is huge (5.8 million lines when formatted) so going through by hand is just not possible
Had the same issue here, after a bit of debugging I was able to recover the world. Here's how I did it for anyone who might run into the same issue:
I figured out that the overflow was in EntityData although I couldn't find it after some digging so instead I grabbed the seed from my world (found in the backup zip, which I made a seperate backup of in case and would recommend) and put it in the sever config, then set the cache entities setting to True so it would generate the entities on first startup, I deleted the world folder (make sure you don't delete your only world backup) and let it generate a new uncorrupted EntityData, and then pasted in all the other files from my world.
This method has a few issues (lose all entity interactions) but for me was almost unnoticeable and is much better than losing the whole world.