add the ability to build flipped blueprints in LuaItemStack::build_blueprint

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
ahicks
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 13, 2024 10:45 pm
Contact:

add the ability to build flipped blueprints in LuaItemStack::build_blueprint

Post by ahicks »

If one wants to build from the item stack in hand via using build_from_cursor or directly via LuaItemStack, it's not possible to specify flips. We found out that this is actually only in the frontend. While mods can flip blueprints today via directly editing JSON, the various FFFs make it clear that flipping is becoming more complicated in 2.0. It'd be amazing if we could pass (say) flip_horizontal and flip_vertical, or however you want to do it. The current alternative is seemingly to export to JSON, try to edit said JSON, then import back.

Factorio Access again, wrt use case: we can't let players build flipped blueprints because that mandates the mouse. Of course with this one there's tons of uses for it beyond us.

Post Reply

Return to “Modding interface requests”