Factorio-Access / FactorioAccess

An accessibility mod for the video game Factorio, making the game accessible to the blind and visually impaired.
Other
20 stars 9 forks source link

Blueprint flipping does not work #208

Open LevFendi opened 2 months ago

LevFendi commented 2 months ago

Blueprint flipping with the F and G keys flips the visual preview but the blueprint object does not change (even if you export and import again) and the flip effect does not apply to build_from_cursor. It is possible that this had never worked in the first place.

There appears to be no way to fix this without requesting an API change. For example we can ask for the addition of parameters to 'can_build_from_cursor' and 'build_from_cursor' for flipped_horizontal and flipped_vertical.

EDIT: Update. Turns out that we have set_blueprint_entities which means that we can manually write out a function to flip a blueprint by manipulating entity positions and rotations. It is just a lot of effort but it is doable.

LevFendi commented 1 month ago

For now I have added error messages in game to note that this does not work