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.
Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size
Re: Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size
I discover that I need this again now, as I'm trying to create blueprints programmatically that need to have entities with normalized positions as if the player had created/manipulated them manually. So... bump?
-
- Fast Inserter
- Posts: 140
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Methods to normalize blueprint entity positions and/or enable snapping at the blueprint size
+1
If you need to reach me, message me on discord.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.