Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size

Post by sparr »

In the GUI I can check "Snap to grid" on a blueprint and the width/height will be calculated automatically while the positions of the entities within the blueprint are shifted to put a corner of the blueprint at the origin.

I'd like a way to trigger one or both of these behaviors (or at least produce the relevant values) in a script, rather than having to duplicate all of the relevant logic and calculations in Lua.

Post Reply

Return to “Modding interface requests”