Page 1 of 1

[boskid][1.1.110] Blueprint crash with blueprint_position_relative_to_grid without snap_to_grid

Posted: Fri Oct 04, 2024 3:51 am
by GlassBricks
Given a blueprint LuaItemStack, with blueprint_snap_to_grid=nil but blueprint_position_relative_to_grid set:
- With a small blueprint, no entities are visible, and trying to place it gives "cannot build out of map".
- With a very large blueprint, the game crashes. Attached are the logs of such a crash.

Detailed reproduction steps:
- create a blueprint of some entities near 0,0
- /c game.player.cursor_stack.blueprint_position_relative_to_grid = {2, 2}
- Try to place the blueprint

I would expect instead ignoring relative to grid, or give an error when trying to set blueprint_position_relative_to_grid without snap_to_grid; not to crash the game.