Blueprint Flip and Turn

by NovaM

Mirrors/Flips a blueprint in hand. WARNING: if you are using factorio 1.0 or factorio >= 0.18.37 then you must use the workaround below: - Grab the blueprint from the new blueprint interface - Drop it in the inventory to make a copy. (there is a row of buttons across the top one of has the letter C on it that is the copy button fot the print that is highlighted) - Grab that copy - The flip buttons work on this copy. This issue is not fixable for now, due to Factorio API limitation.

Content
3 years ago
0.16 - 1.1
52.5K
Blueprints

b [FIXED in 100.8.5] Unknown style blueprint_reverse_inserters

4 years ago

Error message upon starting a new game:

The mod Blueprint Flip and Turn (100.8.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event blueprint_flip_and_turn::on_player_created (ID 24)
Unknown style blueprint_reverse_inserters
stack traceback:
blueprint_flip_and_turn/control.lua:159: in function 'doButtons'
blueprint_flip_and_turn/control.lua:185: in function 'manageButtons'
blueprint_flip_and_turn/control.lua:209: in function <blueprint_flip_and_turn/control.lua:207>
stack traceback:
[C]: in function 'add'
blueprint_flip_and_turn/control.lua:159: in function 'doButtons'
blueprint_flip_and_turn/control.lua:185: in function 'manageButtons'
blueprint_flip_and_turn/control.lua:209: in function <blueprint_flip_and_turn/control.lua:207>

Error message on loading a saved game:
The mod Blueprint Flip and Turn (100.8.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event blueprint_flip_and_turn::on_init()
Unknown style blueprint_reverse_inserters
stack traceback:
blueprint_flip_and_turn/control.lua:159: in function 'doButtons'
blueprint_flip_and_turn/control.lua:185: in function 'manageButtons'
blueprint_flip_and_turn/control.lua:204: in function 'manageButtonsAllPlayers'
blueprint_flip_and_turn/control.lua:221: in function <blueprint_flip_and_turn/control.lua:219>
stack traceback:
[C]: in function 'add'
blueprint_flip_and_turn/control.lua:159: in function 'doButtons'
blueprint_flip_and_turn/control.lua:185: in function 'manageButtons'
blueprint_flip_and_turn/control.lua:204: in function 'manageButtonsAllPlayers'
blueprint_flip_and_turn/control.lua:221: in function <blueprint_flip_and_turn/control.lua:219>

4 years ago

My best guess is that in control.lua you add three buttons:
flow.add{type = "button", name = "blueprint_flip_horizontal", style = "blpflip_button_horizontal"}
flow.add{type = "button", name = "blueprint_flip_vertical", style = "blpflip_button_vertical"}
flow.add{type = "button", name = "blueprint_reverse_inserters", style = "blueprint_reverse_inserters"

but in style.lua you only define two:
data.raw["gui-style"].default["blpflip_button_horizontal"] =
data.raw["gui-style"].default["blpflip_button_vertical"] =

I also noticed that in gui.png there are only two buttons.

4 years ago

Hello Funketime,

Yes, I missed some part of the UI, my bad.

I didn't played Factorio for more than one year.
I didn't test... before releasing.

For now, I decided to disable the "reverse inserters" code.
I also make error on the new release... oh god...

I will reinstall factorio to test before publishing a new major release.
Thanks for your contrib and ... Be patient ! :-$

Regards,

4 years ago

Thanks for fixing this. I love this mod and will not play with it as it works so well. Although I was quite excited about the 'Reverse Inserters' update so I will have to wait. I tried to get it working, but Factorio Lua is still a bit of black magic to me.

New response