#Characters not being saved on locally hosted server

7 messages · Page 1 of 1 (latest)

lunar wharf
#

Playing on the new 42.13.1 hotfix branch and every time we reboot the server, all characters are reset (spawn at the same spawn point as at the beginning, but completely "fresh") while everything in the world is as it was before (dead zombies, loot & cars all in the same place). Any way to fix that?

gray vessel
#

Is the person managing the server ensuring that it's actually saving the data? (i.e. using the save command before quuitting)?

obsidian lynx
#

i am also experiencing this issue

agile carbon
#

I have the same problem. If you can replicate the issue, could you please post the log here?

limpid latch
#

Are you able to reproduce this on a new server without mods and the default settings?

lunar wharf
lunar wharf
#

ok so something is causing an exception when the server attempts to save players. Tested it by enableing auto-saves via server ini file.
Looking at the server log, a sucessful save should look like this:

SaveAll took 63.9044 ms.
Saving players.
Saving worldgen params.
Saving GlobalModData.
Saving finish.
Saving took 380.6015 ms.

After some time playing, something happened that was then triggering an error for every save afterwards:

SaveAll took 89.1429 ms.
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.putFloat(Unknown Source)
zombie.characters.BodyDamage.BodyDamage.save(BodyDamage.java:281)
zombie.characters.IsoGameCharacter.save(IsoGameCharacter.java:5292)
zombie.characters.IsoPlayer.save(IsoPlayer.java:1360)
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)
.