OpenRCT2 icon indicating copy to clipboard operation
OpenRCT2 copied to clipboard

Save file that has been running on server contains invalid data - autosaves broken as well

Open deurklink opened this issue 8 months ago • 4 comments

Operating System

Windows 11

OpenRCT2 build

v0.4.22-149-g62cb4afd42

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

This bug is specific to multiplayer

Describe the issue

Attached save file is a map that has been running on a server for several days, at some point today people could no longer enter the server, and when I try to open the save it says the file contains invalid data. All autosaves are affected as well.

Steps to reproduce

Open attached save file

Attachments

FFA5 Class Action Megapark - broken.zip

deurklink avatar May 29 '25 18:05 deurklink

I managed to load the save by ignoring the error but I also looked at where it fails and it seems as the data gets corrupted somehow. Is this the first time its happening? Also it would be a bit annoying if the only way to trigger this bug is to wait for days.

ZehMatt avatar May 29 '25 18:05 ZehMatt

Possibly related issue: #23636

deurklink avatar May 29 '25 22:05 deurklink

Is this the first time its happening?

No, this is the third confirmed case, 4th if you count an unconfirmed case. It's always a miscount in the entity chunk. Twice it is was the number of guests being off by one, once the number of litter pieces. 4th case I don't have a save off. So far, it's always one too many entities reported by the array count.

MaxMallon avatar Jun 01 '25 17:06 MaxMallon

I assume this is happening with autosaves turned on? As you reported this is on windows, I would ask you to do the following: when you start the server and confirm it's working, check the autosaves occasionally. When you detect the issue again, crash the server, you can do that by executing console.executeLegacy("dereference") in the JS REPL. This will upload the park replay file for us to analyze.

janisozaur avatar Jun 02 '25 15:06 janisozaur