Games not saving

Player resolved
thehagfish [github] · 1 year ago

Issue description

Failed to save the game!:
Failed to save the game 'C:\Users*USER*\AppData\Roaming\Captain of Industry\Saves\Promised Oasis\Save 2025-05-17, 12-05-31.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.Core.Prototypes.ProtosSerializerFactory.serialize[T] (T proto, Mafi.Serialization.BlobWriter writer) [0x00000] in <3edc91d987e24becbe4f5d4d0376bc0d>:0
at Mafi.Serialization.BlobWriter.WriteGeneric[T] (T obj) [0x0002f] in <6cfa30a8ee454441a0510154554bf2b2>:0
at Mafi.Option1[T].Serialize (Mafi.Option1[T] value, Mafi.Serialization.BlobWriter writer) [0x0001e] in <6cfa30a8ee454441a0510154554bf2b2>:0
at Mafi.Core.Research.ResearchNode.SerializeData (Mafi.Serialization.BlobWriter writer) [0x0001e] in <3edc91d987e24becbe4f5d4d0376bc0d>:0
at Mafi.Core.Research.ResearchNode+<>c.<.cctor>b__101_0 (System.Object obj, Mafi.Serialization.BlobWriter writer) [0x00000] in <3edc91d987e24becbe4f5d4d0376bc0d>:0
at Mafi.Serialization.BlobWriter.FinalizeSerialization () [0x0001c] in <6cfa30a8ee454441a0510154554bf2b2>:0
at Mafi.Core.SaveGame.GameSaver.StartSave (Mafi.DependencyResolver resolver, Mafi.Core.SaveGame.SaveCompressionType saveCompressionType) [0x000b8] in <3edc91d987e24becbe4f5d4d0376bc0d>:0
at Mafi.Core.SaveGame.SaveManager.startGameSave () [0x00030] in <3edc91d987e24becbe4f5d4d0376bc0d>:0

Reproduction steps

  1. Autosave fails to save after first save
  2. Manual save fails every time

Game version and build number

0.7.1a

Operating system

Windows

thehagfish [github] · 1 year ago

Uninstalled and re-installed, same issue. No mods or maps installed, saves on first launch, will not save after that

PruritoIntimo [github] · 1 year ago

You are using windows 11. I had the same issue.
Check your Defender is blocking the automatic save for COI and allow it.

Search in the start menu Windows Security and open it, click on chronology and check the latest "access blocked folders" entry. click on Allow.

poltime poltime · 1 year ago

PruritoIntimo wrote to you above, the problem isn't the game.

PruritoIntimo [github] · 1 year ago

Guys, it's your Win 11 Defenter being too zealant. I already posted a solution for this issue, which is:
Check your Defender is blocking the automatic save for COI, and allow it.

To do so, click on the start menu and type "Windows Security", click it to open it, click on chronology and check the latest "access blocked folders" entry. click on Allow. This is not a "COI only" issue.

Instead of posting a brainless "no solution yet", check what other people wrote and follow the instructions provided, then post "thank you the solution worked just fine" or "this did not solved the issue, please investigate."

posting "no updates" it's just useless when there is a solution right over there.

I am not a COI employee anyway.

thehagfish [github] · 1 year ago

Except it wasn't windows defender, it was 1 file that failed to transfer properly. Had to completely remove every file from the PC before it would actually work. Instead of being snarky, how about you understand that your solution does not work for everyone.

Closed as ☑️ Player resolved

6 Showing 1–8 of 8