save load error

Fixed
dodo-cyber [github] · 2 years ago

Issue description

load up save, save crash

Reproduction steps

load save
Save tries to load
Game says:

The game failed to initialize. Please file a bug report if this issue persists.

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Terrain.TerrainManager' (type 'TerrainManager'. Previous deserialized object: Mafi.Core.GameLoop.GameRunner (type GameRunner) ---> Mafi.Serialization.CorruptedSaveException: Failed to read variable-encoded uint, last byte is too high.
at Mafi.Serialization.BlobReader.ReadUInt () [0x0009a]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<Deserialize>g__readTile|29_0 (System.Int32 absI, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass29_0& ) [0x00018]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<Deserialize>g__readChangedTiles|29_1 (System.Int32 index, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass29_0& ) [0x00023]
at Mafi.Core.Terrain.TerrainManager+TerrainData.Deserialize (Mafi.Serialization.BlobReader reader) [0x000a0]
at Mafi.Core.Terrain.TerrainManager.DeserializeData (Mafi.Serialization.BlobReader reader) [0x0003b]
at Mafi.Core.Terrain.TerrainManager+<>c.<.cctor>b__311_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__28.MoveNext () [0x00062]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__28.MoveNext () [0x000bf]
at Mafi.Core.SaveGame.GameLoader+<FinishGameLoadAndDisposeTimeSliced>d__8.MoveNext () [0x00265]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__2.MoveNext () [0x0020e]
at Mafi.Unity.GamePlayScene+<loadGame>d__16.MoveNext () [0x001f9]
at Mafi.Unity.GamePlayScene+<Initialize>d__14.MoveNext () [0x000a5]
at Mafi.Unity.Main.stepSceneInitialization () [0x00000]

Game version and build number

v0.5.5d b259

Operating system

Windows

Attachments

24-02-22_03-14-autosave.save

Files not imported: 24-02-22_03-14-autosave.save

Captain Filip Captain Filip · 2 years ago

Would you happen to know if you were playing a built in map or something you downloaded?

dodo-cyber [github] · 2 years ago

It was a normal save, no mods and no editing. It was working fine until I
came back to it the next day

On Fri, Apr 19, 2024, 3:24 PM Captain of Industry @.***>
wrote:

Would you happen to know if you were playing a built in map or something
you downloaded?

—
Reply to this email directly, view it on GitHub
save load error,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARAMS2UDVYFTVRFGPDMZXI3Y6ESJBAVCNFSM6AAAAABDUGLHLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRWGY4TMMZZHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Captain Filip Captain Filip · 2 years ago

Thank you so much for the report and sorry for our delayed response. It took us some time to figure this one out, it was a complex issue, but we believe that this has been fixed in v0.6.3. Unfortunately, the attached save cannot be restored as the file was only partially written. I will be closing this now, but if you have further issues please let us know or create a new issue.

Closed as ✅ Fixed

9 Showing 1–4 of 4