Save Crashes on Load

Player resolved
ulsting [github] · 1 year ago

Issue description

Map consistently crashes on load. Vanilla, no mods.

Reproduction steps

Just try and load the map. Has been repeatedly crashing on start.

Edit: Finally got an error to show:

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.Core.Terrain.TerrainManager.GetHeightOrOceanSurfaceInclOutsideOfMap (Mafi.Tile2i coord) [0x00017]
at Mafi.Unity.Camera.OrbitalCameraModel.computePivotHeight (Mafi.Tile2i position) [0x0002d]
at Mafi.Unity.Camera.OrbitalCameraModel.recomputePivotHeight () [0x00025]
at Mafi.Unity.Camera.OrbitalCameraModel.SetMode (Mafi.Unity.Camera.CameraMode mode) [0x000cc]
at Mafi.Unity.Camera.OrbitalCameraModel.Initialize (Mafi.Unity.Camera.CameraController controller) [0x00007]
at Mafi.Unity.Camera.CameraController+<>c__DisplayClass64_0.<.ctor>b__0 () [0x00000]
at Mafi.Core.GameLoop.IGameLoopEventsExtensions+<makeEnumerator>d__3.MoveNext () [0x00013]
at Mafi.Core.GameLoop.GameLoopEvents+<InvokeRendererInitializeState>d__69.MoveNext () [0x0008a]
at Mafi.Core.GameLoop.GameRunner+<Initialize>d__112.MoveNext () [0x0038d]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00127]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x00390]
at Mafi.Unity.GamePlayScene+<loadGame>d__23.MoveNext () [0x00297]
at Mafi.Unity.GamePlayScene+<Initialize>d__20.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__88.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

My System Specifications:
OS Name Microsoft Windows 10 Pro
Version 10.0.19045 Build 19045
System Manufacturer ASUS
Processor AMD Ryzen 9 7900X3D 12-Core Processor, 4401 Mhz, 12 Core(s), 24 Logical Processor(s)
NVIDIA RTX 5080 - Game Ready Driver 576.52

Game version and build number

v0.7.4 (b441)

Operating system

Windows

Attachments

Trains!.save

25-06-07_07-09-54_5560.zip

Player.zip

Crash_2025-06-05_235225127.zip

Files not imported: Trains!.save

3 attachments only for registered users
ulsting [github] · 1 year ago

As an additional data point this same save file worked fine on Windows running on my mac laptop.

poltime poltime · 1 year ago

I downloaded your file without any problems. The problem is on your PC.

ulsting [github] · 1 year ago

@poltime you sure? Seems like a lot of other people are having crashes lately as well?

Edit: I just finished upgrading to Windows 11 and now I'm able to load the map. Maybe there's some issues with the game and Windows 10.

poltime poltime · 1 year ago

You need to update the OS and drivers on time.

ulsting [github] · 1 year ago

@poltime Thanks for your invaluable insight. I'll remember that the next time I don't want to upgrade Windows version and get a bunch of bloatware.

Closed as ☑️ Player resolved

7 Showing 1–6 of 6