Search found 4 matches

by GlassBricks
Mon Jul 12, 2021 3:07 pm
Forum: Modding interface requests
Topic: Set "Grid position" of blueprints
Replies: 7
Views: 406

Re: Set "Grid position" of blueprints

Oh, so to change the "grid position" I would edit the positions of all the blueprint entities.

A get/set_grid_position still could be useful, though.
But even if not implemented, at least the grid position behavior should be documented somewhere.
by GlassBricks
Sun Jul 11, 2021 5:57 pm
Forum: Modding interface requests
Topic: Set "Grid position" of blueprints
Replies: 7
Views: 406

Set "Grid position" of blueprints

Currently (v1.1.35) there is no way to read/write the "Grid position" setting of blueprints from lua (on LuaItemStack). Could we get this feature? There is an older forum post on this topic https://forums.factorio.com/viewtopic.php?f=28&t=96815 marked "solved", but it only de...
by GlassBricks
Sat Jun 26, 2021 3:41 am
Forum: Pending
Topic: [1.1.34] Crash when attempting to paste lua-script created blueprint with invalid snap-to-grid configuration
Replies: 2
Views: 228

Re: [1.1.34] Crash when attempting to paste lua-script created blueprint with invalid snap-to-grid configuration

Here's a portion of the code that produced the crash: -- (in a function) local blueprint = getBpForLayer() -- creates and returns a LuaItemStack in a script inventory, that is a blueprint local blueprintedEntities = blueprint.create_blueprint({surface = self.surface, force = "player", area...
by GlassBricks
Fri Jun 11, 2021 5:32 pm
Forum: Pending
Topic: [1.1.34] Crash when attempting to paste lua-script created blueprint with invalid snap-to-grid configuration
Replies: 2
Views: 228

[1.1.34] Crash when attempting to paste lua-script created blueprint with invalid snap-to-grid configuration

I'm creating a (yet to be released) mod that involves programmatically creating/pasting blueprints. In the mod, using lua, I created a blueprint (inside a container inside a custom surface to hold the LuaItemStack), set blueprint_position_relative_to_grid, but did not set blueprint_snap_to_grid. Whe...

Go to advanced search