Failed to save the game

Player resolved
Kellermeister111 [github] · 1 year ago

Issue description

Failed to save the game!:
Failed to save the game 'C:\Users\gur\AppData\Roaming\Captain of Industry\Saves\Shimmering Vault\Space2.save': Object reference not set to an instance of an object

If you are using mods, please ensure they are compatible with the current game version. Otherwise, file a bug report including this error message and your logs, so we can investigate.

System.NullReferenceException: Object reference not set to an instance of an object
at Mafi.Serialization.BlobWriter.TryStartClassSerialization[T] (T obj) [0x00077] in <31eeac5179784bacbbe45e9af4bb9ba4>:0
at Mafi.Event.Serialize (Mafi.Event value, Mafi.Serialization.BlobWriter writer) [0x00000] in <31eeac5179784bacbbe45e9af4bb9ba4>:0
at Mafi.Core.Terrain.TerrainManager.SerializeData (Mafi.Serialization.BlobWriter writer) [0x000b4] in <afc04c4df81141d3944f9dc655733a58>:0
at Mafi.Core.Terrain.TerrainManager+<>c.<.cctor>b__398_0 (System.Object obj, Mafi.Serialization.BlobWriter writer) [0x00000] in <afc04c4df81141d3944f9dc655733a58>:0
at Mafi.Serialization.BlobWriter.FinalizeSerialization () [0x0001c] in <31eeac5179784bacbbe45e9af4bb9ba4>:0
at Mafi.Core.SaveGame.GameSaver.StartSave (Mafi.DependencyResolver resolver, Mafi.Core.SaveGame.SaveCompressionType saveCompressionType) [0x000b8] in <afc04c4df81141d3944f9dc655733a58>:0
at Mafi.Core.SaveGame.SaveManager.startGameSave () [0x00030] in <afc04c4df81141d3944f9dc655733a58>:0

Reproduction steps

Try to save the game. this is a very advanced playthrough: Year 1163 Space Age

Game version and build number

Update 3 v0.7.7 b470)

Operating system

Windows

Attachments

I cant send you the save game, beacuse its not able to save.
I send you teh previous savegame like 2 hours older. The autosave is not working of course
why do you want a zipeed savefile? its compressed anyway....ggg

25-07-18_15-51-autosave.save

1 attachment only for registered users
Kellermeister111 [github] · 1 year ago

Now i have stopped and exited to the main menu - knowing that I will lsoe the game. The game crashed on exiting to the mainmenu probably as a result of the "not able to save"-bug

poltime poltime · 1 year ago

The problem isn't with the game, but with your PC.

Captain Filip Captain Filip · 1 year ago

This is hard to say. Maybe there is some super rare case where this occurs, or maybe some RAM issue. I don't know how frequently you are hitting this. Obviously, I can load your file and save it fine, but that doesn't say much. But we don't have more of these reports so far, e.g., if you are hitting it frequently, it might be on your side. If not, there is something rare going on.

Kellermeister111 [github] · 1 year ago

Thx for your reply.
Actually it was a rare issue: I have an intel 14900k-cpu which was affected by the intel-overvoltage-issue.
The Problems spread, Capitain of industrie was just the first to detect it…ggg
I now have a new CPU, intel replaced it, and am back to work…just a lot to reinstall.
Br
Gerhard

Von: Captain of Industry @.>
Gesendet: Sonntag, 17. August 2025 22:45
An: MaFi-Games/Captain-of-Industry-issues @.
>
Cc: Gerhard Urschler @.>; Author @.>
Betreff: Re: [MaFi-Games/Captain-of-Industry-issues] Failed to save the game (Issue Failed to save the game)

[d30f603398c6.png]MaFi-Games left a comment (MaFi-Games/Captain-of-Industry-issues#2131)Failed to save the game

This is hard to say. Maybe there is some super rare case where this occurs, or maybe some RAM issue. I don't know how frequently you are hitting this. Obviously, I can load your file and save it fine, but that doesn't say much. But we don't have more of these reports so far, e.g., if you are hitting it frequently, it might be on your side. If not, there is something rare going on.

—
Reply to this email directly, view it on GitHubFailed to save the game, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BE3XDFNJGOO6XTRZWSVTPRL3ODSWTAVCNFSM6AAAAACB3EA7BOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJUGY2DAOJRGA.
You are receiving this because you authored the thread.Message ID: @.@.>>

Closed as ☑️ Player resolved

6 Showing 1–5 of 5