Page 1 of 1

[MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 04, 2016 4:04 pm
by Roktaal
Blueprint Flipper
Original thread: viewtopic.php?f=92&t=15152
With blessing from original author GopherAtl I am continuing maintenance and updating of this mod.

Image

Info:
Adds a pair of small gui buttons that you can click on while holding a blueprint to mirror that blueprint, horizontally or vertically.

That's... well, pretty much it. Isn't that enough?
Image
License
Long Description
Version history
Planned Features
Use in Mod Packs

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 04, 2016 5:46 pm
by steinio
thank you :!:

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 04, 2016 7:31 pm
by Speadge
would u mind to rename the zip to "_0.1.2"? i get an error with the actual "-0.1.2"

And it might be im not the only one

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 04, 2016 7:35 pm
by Roktaal
Oops. Fixed. Thank you

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Tue Apr 05, 2016 10:04 pm
by waduk
Slightly unrelated to the mod, ..
Whoa,..GopherAtl will be inactive ?
Oh man,..he give soooo much to community. Without him, i'm unable to grasp Combinator :roll:

Thank you Roktaal for maintaining the mod.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Thu Apr 07, 2016 5:00 pm
by zytukin
Thanks for this mod. I found it quite useful.

But, I encountered a minor problem.
I don't know if it is something that can be fixed though.

I did a vertical flip of a blue print and placed it. It didn't complete before the 5 mins were up (ran out of items) so after getting the needed items I tried placing it again over top of the original stuff to complete it. Everything was green but it wouldn't place.

Turned out I had to remove all the power poles that were placed from the first attempt before the 2nd attempt would work.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Thu Apr 07, 2016 6:45 pm
by Roktaal
Could you copy/paste that blueprint (Using Foreman or Blueprint string) here so I can take a look

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Fri Apr 08, 2016 2:15 pm
by zytukin
Roktaal wrote:Could you copy/paste that blueprint (Using Foreman or Blueprint string) here so I can take a look
How do I get a blueprint string?

Don't have the original any more, but will make a new one of the area and see if it will happen again.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Fri Apr 08, 2016 4:32 pm
by Roktaal
zytukin wrote:
Roktaal wrote:Could you copy/paste that blueprint (Using Foreman or Blueprint string) here so I can take a look
How do I get a blueprint string?

Don't have the original any more, but will make a new one of the area and see if it will happen again.
You can export your blueprint with Foreman or Blueprint string

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sat Apr 09, 2016 5:54 pm
by zytukin
Sorry for taking so long.
I had forgotten about this topic after making that first post then wasn't in that area of my factory for quite a while

Exported the blueprint via Foreman
http://www.tuwr.net/~factorio/Wires.blueprint

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sat Apr 09, 2016 8:27 pm
by Roktaal
zytukin wrote:Sorry for taking so long.
I had forgotten about this topic after making that first post then wasn't in that area of my factory for quite a while

Exported the blueprint via Foreman
http://www.tuwr.net/~factorio/Wires.blueprint
Doesn't appear to be a problem with this mod. I managed, using your blueprint, to flip it horizontally, place it, building it till I ran out of components, waiting for ghosts to run out and then placing the blueprint again on top of half built factory, without problems. Really don't know what is the problem at your side.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sat Apr 09, 2016 8:47 pm
by Emmote
Heya,

Keep getting an error when trying to flip a blueprint that contains only Concrete/Stone flooring.

"Error while running the event handler:
__blueprint_flipper__/contol.lua:7: attempt to get length of local 'ents' (a nil value)"

I'm sure it's because when getting a blueprint of flooring, you cannot have any entities otherwise it copies them and not the flooring.
Any possibility of adding a way to cope with floor-only blueprints?

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sat Apr 09, 2016 9:58 pm
by zytukin
Roktaal wrote:
zytukin wrote:Sorry for taking so long.
I had forgotten about this topic after making that first post then wasn't in that area of my factory for quite a while

Exported the blueprint via Foreman
http://www.tuwr.net/~factorio/Wires.blueprint
Doesn't appear to be a problem with this mod. I managed, using your blueprint, to flip it horizontally, place it, building it till I ran out of components, waiting for ghosts to run out and then placing the blueprint again on top of half built factory, without problems. Really don't know what is the problem at your side.
Maybe it was just a random bug then.
I figured it was because the first half of poles that were placed got lines placed between them and then trying to place the 2nd one over top resulted in the lines conflicting.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sun Apr 10, 2016 12:10 am
by Roktaal
Emmote wrote:Heya,

Keep getting an error when trying to flip a blueprint that contains only Concrete/Stone flooring.

"Error while running the event handler:
__blueprint_flipper__/contol.lua:7: attempt to get length of local 'ents' (a nil value)"

I'm sure it's because when getting a blueprint of flooring, you cannot have any entities otherwise it copies them and not the flooring.
Any possibility of adding a way to cope with floor-only blueprints?
Thanks for the report.
Version 0.1.3 out with the fix. Now it's possible to flip blueprints with tiles.
zytukin wrote:
Roktaal wrote:
zytukin wrote:Sorry for taking so long.
I had forgotten about this topic after making that first post then wasn't in that area of my factory for quite a while

Exported the blueprint via Foreman
http://www.tuwr.net/~factorio/Wires.blueprint
Doesn't appear to be a problem with this mod. I managed, using your blueprint, to flip it horizontally, place it, building it till I ran out of components, waiting for ghosts to run out and then placing the blueprint again on top of half built factory, without problems. Really don't know what is the problem at your side.
Maybe it was just a random bug then.
I figured it was because the first half of poles that were placed got lines placed between them and then trying to place the 2nd one over top resulted in the lines conflicting.
Don't think lines and poles were the problem. When I tried I also had some poles connected

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sun Apr 10, 2016 8:08 am
by Emmote
Roktaal wrote:Thanks for the report.
Version 0.1.3 out with the fix. Now it's possible to flip blueprints with tiles.
Awesome! Thanks for the quick fix. :)

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sun Apr 10, 2016 1:00 pm
by BlakeMW
There's a long running bug I've been meaning to report:

Flipping a blueprint with storage tanks in it does not correctly rotate the tanks, it appears tanks are not rotated at all when the blueprint is flipped. This causes the tanks to no longer connect with pipes/other components in a flipped blueprint. I believe the solution is as simple as always rotating tanks when a blueprint is flipped since I can always fix the setup by manually rotating each tank. The issue is probably related to the only two rotation states of tanks.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Sun Apr 10, 2016 3:24 pm
by Roktaal
BlakeMW wrote:There's a long running bug I've been meaning to report:

Flipping a blueprint with storage tanks in it does not correctly rotate the tanks, it appears tanks are not rotated at all when the blueprint is flipped. This causes the tanks to no longer connect with pipes/other components in a flipped blueprint. I believe the solution is as simple as always rotating tanks when a blueprint is flipped since I can always fix the setup by manually rotating each tank. The issue is probably related to the only two rotation states of tanks.
Thanks for the report.
Version 0.1.4 out with the fix.

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 11, 2016 2:48 am
by Arumba
Hey, I recently updated to the newest version of the mod from an older version, and the mod works great for new maps, but on my existing save I get this:

http://imgur.com/BWVquf5

The normal buttons work, but there are extra buttons in text for flipping vertically and horizontally. Is there a way to migrate or something to use this mod with an existing save without the extra buttons?

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Mon Apr 11, 2016 6:50 am
by Roktaal
Arumba wrote:Hey, I recently updated to the newest version of the mod from an older version, and the mod works great for new maps, but on my existing save I get this:

http://imgur.com/BWVquf5

The normal buttons work, but there are extra buttons in text for flipping vertically and horizontally. Is there a way to migrate or something to use this mod with an existing save without the extra buttons?
I'll put it on a "to do" list for the next update since it's not game breaking.
Meanwhile you can:
Method 1: Remove the mod, open your save game and save it again and then put back the mod.
Method 2: Type in console

Code: Select all

/c game.players[1].gui.top.blueprint_flipper_flow.destroy()

Re: [MOD 0.12.x] Blueprint Flipper - mirror your blueprints!

Posted: Wed May 04, 2016 10:35 pm
by 401
Can you hide the gui until you have researched "automated-construction" please?