FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.72k stars 400 forks source link

Save Corrupted during gameplay (saved submarine is empty, the submarine file may be corrupted) #12104

Open milliemcq opened 1 year ago

milliemcq commented 1 year ago

Disclaimers

What happened?

Can no longer login to our save. No Mods. Issue just started happening, not sure how.

Reproduction steps

  1. Start a multiplayer game
  2. Sub won't load (error shown as above) https://we.tl/t-qqEkvv19p1

image

Bug prevalence

Happens every time I play

Version

Other

-

1.13.1

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

Error message as above
itchyOwl commented 1 year ago

If the submarine/save file is corrupted, there's not much we can do to restore it.

If you upload the save here (zipped), we could take a look, if we can find anything.

J-Tevop commented 1 year ago

If the submarine/save file is corrupted, there's not much we can do to restore it.

If you upload the save here (zipped), we could take a look, if we can find anything.

Hi!

Same issue happened to me. Here is my file. Happened when I bought a ship (most expensive one, Winterhalter or something)

Then save quit, then this happened.

No Mods lmao_CharacterData.zip

hahaA10gobrrrt commented 11 months ago

hey regalis i cannot seem to drop either of the fiels as they arent supported, what do i do?

Regalis11 commented 11 months ago

@hahaA10gobrrrt GitHub unfortunately doesn't allow attaching files with the .save or .sub file extensions, but if you .zip the files first or change the file extension to something else, you should be able to attach them. Thank you and sorry for the inconvenience!

hahaA10gobrrrt commented 11 months ago

i have a massive test coming up homie I'd just close this ticket and delete my messages. I appreciate the help man. :(

cscobal commented 9 months ago

Hey, my group (we aren't using mods) had the same exact issue pop up for us as well. Someone might have been moving items around the time of initial crash, but not totally sure on the timing

Either way, I did some digging on my own, and found that in the (decompressed) gamesession.xml, the empty sub (Orca 2) is listed as being owned twice, like this

<ownedsubmarines> <sub name="Barsuk" /> <sub name="Dugong" /> <sub name="Orca2" /> <sub name="Orca2" /> </ownedsubmarines>

Wasn't able to make any sense of the default .save file, but since it's listed as being owned twice in the .xml, maybe it's possible that the original sub data wasn't corrupted, rather instead a corrupted version was added and used? Really hoping that it's not the case everything was overwritten, especially since there's no autosaves to restore to

Anyway, hope that this helps fixing the root issue, and here's the .save file

group's save file.zip

And here's the .sub file, which is absolutely corrupted/empty or something

Orca2.zip

hahaA10gobrrrt commented 8 months ago

i'll take a look, I deleted my save a while back as it became a bit of a clusterF*ck, but if it happens again this might help. Cheers.

cscobal commented 8 months ago

@Regalis11 Just wanted to check in and see whether you'd have the time to take a look at the contents of the corrupted .save file I posted above. Like I mentioned in that post, since the sub was listed twice in the .xml game session the only hope is that the original data wasn't written over and instead just isn't being properly split/decompressed into the sub file

Anyway, would love to know if there's any chance of the progress being recovered, but if you're busy with other things that's totally understandable. Thanks

ren-pdf commented 6 months ago

image

I've also experienced this issue. Upon opening up the save file in an editor, there were 2 current submarines, of which both the filesize was below the usual. (Both subs are likely blank). We were using mods, but that is likely irrelevant.

itchyOwl commented 6 months ago

Another (duplicate?) report: #13442