[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.
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?
Name: Blueprint Flipper
Description: Adds ability to mirror blueprints horizontally and vertically.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Long Description
Long Description
Hold the blueprint, click the button, place the mirrored blueprint. What more explanation do you want from me? Just do it!
Version history
Version history
0.1.4 10.4.2016
- Fixed flipping of storage tanks
0.1.3 10.4.2016:
- Changed the size of the buttons to 36x36 so they match toolbelt buttons
- Fixed a bug with flipping blueprints with tiles
0.1.2 4.4.2016:
- Replaced button texts with icons.
0.1.1 29.1.2016:
- Factorio 0.12.11+ update.
0.1.0 17.8.2015:
- Initial version released into wild for testing by people-who-aren't-me.
Planned Features
Planned Features
None. This mod is perfect exactly as-is. Perfect, says GopherAtl!
Use in Mod Packs
Use in Mod Packs
Go ahead. You don't need to ask. You're free to include it in any mod pack either as-is, or with changed recipes/graphics, or whatever. Comments to this thread linking the mod pack are encouraged/appreciated, as it helps me keep track of who's using the mod, but that's it.
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
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.
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
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
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
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:
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:
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