Captain of Industry

Fixed
JacobSchnaithman [github] · 2 years ago

Issue description

Launched the game from a previous save and the past 7 auto saves, all files have become corrupted

Reproduction steps

I launch steam, run Captain of Industry, click on Continue from my manual save. and get the error message pasted down below

This happens from attempting to load from any of my past previous saves.

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.Serialization.BlobReader.ReadIntNotNegative () [0x00000]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<Deserialize>g__readTile|29_0 (System.Int32 absI, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass29_0& ) [0x0002d]
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-01-20_22-25-12_3363.log
24-01-21_11-41-47_9361.log
24-01-21_12-54-43_7479.log
NEW ONE!_2.save

Files not imported: NEW ONE!_2.save

3 attachments only for registered users
Captain Filip Captain Filip · 2 years ago

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

JacobSchnaithman [github] · 2 years ago

I think it’s related to blueprints used off the internet that caused the issue. I’ve since started overThis can be closed Sent from my iPhoneOn Apr 19, 2024, at 9:24 AM, 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, or unsubscribe.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

5 Showing 1–4 of 4