MaFi-Games / Captain-of-Industry-issues

Public issue tracker for Captain of Industry video game
22 stars 4 forks source link

Cannot Load Map #1535

Open BabyBatman opened 5 months ago

BabyBatman commented 5 months ago

Issue description

Whenever I try to load my save, it says "Game failed to initialize. Please file a bug report if this issue persists."

Reproduction steps

I will load up the game. Click on continue my save. and it will load and then output the error. This happens if I hit load and then select the save too. And for auto saves.

Here is the output it gives.

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

System.NullReferenceException: Object reference not set to an instance of an object at Mafi.Core.Terrain.TerrainManager.IsOcean (Mafi.Tile2iIndex index) [0x0000c]
at Mafi.Unity.Camera.OrbitalCameraModel.recomputePivotHeight () [0x00048]
at Mafi.Unity.Camera.OrbitalCameraModel.SetMode (Mafi.Unity.Camera.CameraMode mode) [0x000cf]
at Mafi.Unity.Camera.OrbitalCameraModel.Initialize () [0x00000]
at Mafi.Unity.Camera.CameraController+<>c__DisplayClass28_0.<.ctor>b0 () [0x00000]
at Mafi.Core.GameLoop.IGameLoopEventsExtensions+d
3.MoveNext () [0x00013]
at Mafi.Core.GameLoop.GameLoopEvents+d66.MoveNext () [0x000d3]
at Mafi.Core.GameLoop.GameRunner+d
104.MoveNext () [0x0039f]
at Mafi.Core.Game.GameBuilder+d6.MoveNext () [0x00127]
at Mafi.Core.Game.GameBuilder+d
3.MoveNext () [0x0037a]
at Mafi.Unity.GamePlayScene+d21.MoveNext () [0x00296]
at Mafi.Unity.GamePlayScene+d
18.MoveNext () [0x000a5]
at Mafi.Unity.Main+d__70.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]

Game version and build number

v0.6.4 b337

Operating system

Windows

Attachments

No response

CaptainMarek commented 5 months ago

Can you share the save file that is failing to load?