Page 1 of 1

[1.0.0] Crash loading invalid blueprint

Posted: Fri Nov 13, 2020 5:05 am
by benoitranque
To be clear I know this is entirely my fault.

I just expected the invalid blueprint to throw an error message, not crash the game.

Details on how to reproduce: So I was making railways blueprints, and decided to use the snap to grid feature. To my annoyance, you cannot snap to a rail's midpoint, which is what I intended. In the image below, I intended to snap at the midpoint of the outermost rails.

Not to be deterred by intentional game design, I went to this https://factorio.tmin10.ru/ blueprint encoder/decoder, and changed the x and y values of snap to grid. I then encoded the blueprint again, and attempted to load the blueprint into the game. Factorio did not like that!
stuff
Thanks a bunch!

Error Blueprint.cpp:763: this->snapToGrid->x % coreSnapping == 0 was not true

Re: [1.0.0] Crash loading invalid blueprint

Posted: Mon Nov 16, 2020 6:47 pm
by posila
Ok, I made it error gracefully.