#dedicate Server save error.

1 messages · Page 1 of 1 (latest)

raven forge
#

So when i try to save the game theres always this error and the characters are not saved ..

ERROR: Multiplayer f:21521, t:1770323898987, st:1,560,236,509> GameServer.main> Exception thrown
java.nio.BufferOverflowException at Buffer.nextPutIndex(null:-1). Message: Server processing error
Stack trace:
java.base/java.nio.Buffer.nextPutIndex(Unknown Source)
java.base/java.nio.HeapByteBuffer.putChar(Unknown Source)
zombie.characters.PlayerCraftHistory.save(PlayerCraftHistory.java:68)
zombie.characters.IsoPlayer.save(IsoPlayer.java:1428)
zombie.iso.IsoObject.save(IsoObject.java:1323)
zombie.savefile.ServerPlayerDB$NetworkCharacterData.<init>(ServerPlayerDB.java:49)
zombie.savefile.ServerPlayerDB.serverUpdateNetworkCharacter(ServerPlayerDB.java:179)
zombie.savefile.ServerPlayerDB.save(ServerPlayerDB.java:162)
zombie.network.ServerMap.QueuedSaveAll(ServerMap.java:697)
zombie.network.ServerMap.preupdate(ServerMap.java:838)
zombie.network.GameServer.main(GameServer.java:965)

need some help

#

So i do have a restart every 3 Hours and sometimes this happens and i cant save ... and the chars gets rollback some mins

crimson torrent
#

Most likely save-data overflow. With lots of mods, a player can end up with massive ModData (player/global or item modData , big tables/strings).
When the character save gets serialized it can exceed the buffer and you’ll see BufferOverflowException / KahluaTableImpl.save, then the character sometimes won’t save on dedicated.

Reducing mods / removing items with heavy modData / clearing bloated modData usually fixes it.
Basically don't subs to every possible mods

raven forge
bleak knot
#

This issue should be fixed on the next B42 patch

hard frost
#

Hi! I'm experiencing the same issue, but in my case, my character only rolls back when I encounter another bug (I recently reported here about crucibles duplicating when pouring liquid).
My question is: is it possible to restore a saved character? I managed to make character backups, and the character files seem to be in place: the PNG images of the last location are correct and all files were updated in the correct time. But placing the backup back into the save folder doesn't work. 🙁

bleak knot
hard frost
bleak knot
hard frost