Page 1 of 1

[kovarex] [1.1.11] Crash (this->snapToGrid->x % coreSnapping == 0 was not true)

Posted: Fri Jan 22, 2021 11:01 am
by Jhonny_05
Hey, what is my problem here???

The game crashes every time I load my savegame, I have tried with all mods with no mods.

Savegame: https://drive.google.com/file/d/1lPQi7O ... sp=sharing

I am thankful for every help

Re: [1.1.11] Factorio crashed (this->snapToGrid->x % coreSnapping == 0 was not true)

Posted: Fri Jan 22, 2021 11:33 am
by Klonan
Can confirm this still crashes in the latest master

Re: [kovarex] [1.1.11] Crash (this->snapToGrid->x % coreSnapping == 0 was not true)

Posted: Fri Jan 22, 2021 10:59 pm
by kovarex
TL;DR Thanks for the report, it is fixed for the next release now.

There were bunch of blueprints in your save that had snap to grid set to {1, 1}, while there were 2X2 entities in them.
I'm not 100% sure how it could happen, but I'm suspicions that this could happen when you change mods/mod settings and some migration changes one entity to another inside a blueprint.

So, to not make this check a stopper when loading save, I added a simple migration that changes the snap to grid to be valid whenever loading save with different mod settings than the current, which makes your save loadable in the next version.

P.S. The loading shows the history, and wow, this save has histor all the way down to 0.15.0 with 181 steps of updates or mod changes, it would be really shame to loose it because of a missing migration :)

Re: [kovarex] [1.1.11] Crash (this->snapToGrid->x % coreSnapping == 0 was not true)

Posted: Sat Jan 23, 2021 2:09 pm
by Jhonny_05
Thank you for the fastest fix in history

Now it is working pefectly