game failed to initialize when loading save

Fixed
trasmus3 [github] · 4 years ago

Describe the issue
Game failed to load save, game was running fine no issue etc at the time the save was done. And can have multiple auto save with the issue.
Never had the issue before 0.4.6, if I go back to latest working save, and play it seems to do it again after an hour or 2

Expected behavior
The save to load and play the game :D

To Reproduce
Steps to reproduce the behavior:

  1. Load attached save

Additional context

  • Game version: 0.4.6

Attachments
Player.log
22-06-30_16-22-04_9275-autosave.save

Thanks for a great game, let me know if you want to last working save or something

Files not imported: 22-06-30_16-22-04_9275-autosave.save

1 attachment only for registered users
Captain Filip Captain Filip · 4 years ago

I can reproduce this issue, found the following in the logs:
---> NullReferenceException: Accessing Option<IEntityConstructionProgress> that has no value.
at Mafi.Option`1[T].get_Value () [0x00014] in Mafi\Option.cs:62
at Mafi.Unity.Entities.Static.ConstructionCubesFactory.GetCubesCount (Mafi.Core.Entities.Static.IStaticEntity entity) [0x00009] in Mafi.Unity\Entities\Static\ConstructionCubesUpdater.cs:463
at Mafi.Unity.Entities.Static.EntityConstructionRecord.UpdateStateOnSync () [0x000a9] in Mafi.Unity\Entities\Static\ConstructionCubesUpdater.cs:214

Captain Filip Captain Filip · 4 years ago

We have found the issue but cannot figure out how it happened. Would you please have older log files as well?

Captain Filip Captain Filip · 4 years ago

This has been fixed in v0.4.7b, thanks for the report.

Closed as ✅ Fixed

12 Showing 1–4 of 4