Nitrox icon indicating copy to clipboard operation
Nitrox copied to clipboard

System.OverflowException: Value was either too large or too small for an Int32.

Open Elmar8121 opened this issue 2 years ago • 3 comments

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.

изображение_2023-12-04_005041419

Relevant log output

game-20231203.log server-20231203.log

Elmar8121 avatar Dec 03 '23 20:12 Elmar8121

@Elmar8121 I think something went wrong with the save at some point, would you mind sending us the .zip please ?

dartasen avatar Dec 26 '23 22:12 dartasen

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

SoZ0 avatar Mar 23 '24 06:03 SoZ0

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.

SleepyStew avatar Jul 11 '24 05:07 SleepyStew