Server corruption - Seeking Advice

Skadabucci

New member
Hello, I am looking for some advice on how to proceed with a possible server corruption.

1. What's going on:

1. First, this is the error I am getting whenever I boot up the dedicated server from the startserver.bat file.

2025-05-14T18:02:43 30.924 EXC EndOfStreamException: Attempted to read past the end of the stream.




2. Next, if a user tries to connect this error is thrown:

ERR [EOS] Failed unregistering player in session: NotFound



I imagine this is a symptom of the issue however.

2. How did this happen:

My friends and I wanted to step up the difficulty so I modified the server config settings by doing the following:
1. Connect to the localhost 8081 server via telnet

2. Issue `saveworld` command and wait for it to complete

3. Issue `shutdown` command and wait for it to complete

4. Open, Modify, and Save the serverconfig.xml file that contains the "Difficulty" setting. I changed the values from "1", to "5"

5. Execute the `startserver.bat` executable.

3. What I've tried:

I would like to try to recover this world. One note, I took a backup of the world before doing everything below, I used the backup between each attempted fix if files were modified. Here's what I've tried so far:

0. Restarted the machine hosting the dedicated server

1. Rollback the server configuration change in made in section 2.4

2. Rollback the main.ttw by using main.ttw.bak

3. Rollback all of the *.bak files, including main.ttw

4. Rollback all of the above AND all Player/*.bak files

5. Wiped all Player data by creating an empty Player folder

6. Reinstall the dedicated server software via steam

7. Run the server with a different map

Each of the above steps resulted in the same "Attempted to read past the end of stream" error.

0. System Information

1. Windows 11 Desktop running the dedicated server

2. We have no Mods being used

--- 

Please let me know if you need me to provide any logs or additional info.

Thank you!

Skadabucci

 
The log file in that session you did the shutdown may have something. To me it sounds like the issue happened during that session.  

 
I have found a solution, but it is pretty ugly. It involves creating a brand new game with the same map (so for instance Pregen08k1). Then I copied the new map's main.ttw file to the server's main.ttw file. It works but the day is reset back to 1. All player progression was saved and all the blocks/drones/vehicles in the world were good to go. However the one issue is it seems like POI do not have zombies in them by default. I'm still working on what might fix this. 

@Jugginator. I will have to pour through the log files tomorrow to get a grip on things. Thanks for the response. I'll contribute back to this what I can.

 
Back
Top