Page 1 of 7

[MOD 0.12.11+] Blueprint String

Posted: Sat Jul 18, 2015 7:39 pm
by DaveMcW
Image

This mod makes it easy to import and share blueprints.


Installation

1. Download the mod. (0.13 and 0.14 version here)
2. Move it to your Factorio mods directory.
3. Start Factorio and research Automated Construction.


Importing Blueprints

1. Craft an empty blueprint
2. Click Image to show the panel.
3. Copy a blueprint string from your friend.
4. Paste the blueprint string in the text box.
5. Click Image

Here is a sample blueprint string, for the classic design of 2 assembling machines fed by logistics bots.

Image

Code: Select all

H4sIAAAAAAAA/42R0WrDMAxFfyX0OYImg74Uf0vxbK0V2HImOWHD5N/ndKOsacn2FAjn5lzd+NSE5G
xoTqYgZ8qEakphG9HsrCrG10B8hmjdhRih37VD0oolNuXDwEv7afbz3P4kNFrJQKwoGWXFdle29STo
ri8Pt1xIZ9JMDtwFNcNQzTQhDJIm8usP7e+df7dclYzoaYyAodaQ6hxSwPvA0hS6/531cFV/i71Z3R
yjex5bjSH4PtbnsxV+VdxwPagONUYu8fKniT0uyMaW1fFN9ZvUPB8F8yjcnI7I/gvQdo5aWgIAAA==
Exporting Blueprints

1. Click Image to show the panel.
2. Click Image
3. Find the blueprint in your "script-output/blueprint-string" folder.

To export a single blueprint:
1. Pick up a blueprint.
2. Click Image to show the panel.
3. Click Image
4. Enter a file name in the text box.
5. Click "Save"
6. Find the blueprint in your "script-output/blueprint-string" folder.

If you used the exe installer, your output folder is: %appdata%\Factorio\script-output\blueprint-string


Features
Factorio 0.12.32 broke old blueprints. You can click the Image button while holding a blueprint to fix them. It may take 3 clicks to fix rail blueprints. If you click too many times the blueprint will break again, keep testing until it works.

This mod has strict error checking, so bad strings will not crash your game or mess it up. Please report any strings that do!
Changelog

Re: [MOD 0.12] Blueprint String

Posted: Mon Jul 20, 2015 10:26 am
by oLaudix
Clicking Save All caused this. Image

inventory is no longer viable. Changing it to inventory.valid_for_read fixed it.

Re: [MOD 0.12] Blueprint String

Posted: Tue Jul 21, 2015 12:42 am
by DaveMcW
Thanks, it is fixed in version 2.0.2

Re: [MOD 0.12] Blueprint String

Posted: Tue Jul 21, 2015 5:04 pm
by SKleen75
Hi.
What did i do wrong?
Unbenannt.JPG
Unbenannt.JPG (18.19 KiB) Viewed 85934 times

Re: [MOD 0.12] Blueprint String

Posted: Tue Jul 21, 2015 7:14 pm
by SKleen75
LOL!
Please ignore my last post.

Wrong forum.

:shock: :oops:

Re: [MOD 0.12] Blueprint String

Posted: Wed Jul 22, 2015 12:48 pm
by Pandamonium
DaveMcW wrote:Please report any strings that do!
Trying to place blueprints when the mod is turned on causes the game to crash.

(was trying to place this blue print at the time)
mining station

Re: [MOD 0.12] Blueprint String

Posted: Wed Jul 22, 2015 9:14 pm
by DaveMcW
This bug will be fixed in Factorio 0.12.1: https://forums.factorio.com/forum/vie ... hp?t=13644

In the meantime, don't rotate blueprints with underground belts in them.

Re: [MOD 0.12] Blueprint String

Posted: Sun Aug 16, 2015 10:20 am
by DaveMcW
Version 2.0.3 swaps toolbar and inventory indexes, to match Factorio 0.12.4.

Re: [MOD 0.12] Blueprint String

Posted: Wed Aug 19, 2015 5:23 am
by Rseding91
DaveMcW wrote:Version 2.0.3 swaps toolbar and inventory indexes, to match Factorio 0.12.4.
Properly using defines.inventory.player_quickbar would also fix that :)

Re: [MOD 0.12] Blueprint String

Posted: Wed Aug 19, 2015 7:41 am
by Choumiko
Rseding91 wrote:Properly using defines.inventory.player_quickbar would also fix that :)
Who uses constants/keys ? I know i didn't, all my mods had to be changed :D

Re: [MOD 0.12] Blueprint String

Posted: Wed Aug 19, 2015 5:12 pm
by DaveMcW
Rseding91 wrote:Properly using defines.inventory.player_quickbar would also fix that :)
Please add that to the wiki.

Re: [MOD 0.12] Blueprint String

Posted: Fri Aug 21, 2015 1:08 pm
by Vin
Just out of curiosity, how difficult would it be to program in a toggle for the GUI button by console command? I seem to collect mods that have buttons in the top left corner and it's getting a bit crowded.

Re: [MOD 0.12] Blueprint String

Posted: Sat Aug 22, 2015 2:53 pm
by DaveMcW
Using the console to control the gui just seems wrong. :P Even if it works for one person and one mod, it would be a nightmare trying to keep track of all the commands when you add more mods. Then what happens when you forget the show/hide command?

Ideally someone would write a mod button manager, with a well-documented API, for mod button creators to use. And the show/hide function would also be a gui.

But we already have a gui to do that!

Save Game
Quit Game
Mods -> Blueprint String -> Toggle
Play -> Load Game

Re: [MOD 0.12] Blueprint String

Posted: Sat Aug 29, 2015 6:31 am
by Trollsama
are you meant to unzip the mod before use?
(Most games I mod you just keep the mod as there compressed self, so i never unpacked it.)
I ask because when i try to export blueprints it tells me it was saved to the folder, But when i look for it no such folder exists.


EDIT: I realized shortly after posting how dumb that question was since its literally a 2 second test... and thus i realized that yest it does need to be compressed to work properly since it doesn't show up at all when i unzip it :P.
So I guess my real question now is: Does anyone know why the folder is not there/is not being created?

Re: [MOD 0.12] Blueprint String

Posted: Sat Aug 29, 2015 6:55 am
by Vin
Trollsama wrote:are you meant to unzip the mod before use?
(Most games I mod you just keep the mod as there compressed self, so i never unpacked it.)
I ask because when i try to export blueprints it tells me it was saved to the folder, But when i look for it no such folder exists.


EDIT: I realized shortly after posting how dumb that question was since its literally a 2 second test... and thus i realized that yest it does need to be compressed to work properly since it doesn't show up at all when i unzip it :P.
So I guess my real question now is: Does anyone know why the folder is not there/is not being created?
The folder is in your top level Factorio folder, not in the mods folder. It's called "script-output", then will have a subfolder for blueprint string. It shouldn't matter whether the mod is zipped or not.

Re: [MOD 0.12] Blueprint String

Posted: Sat Aug 29, 2015 7:09 am
by Trollsama
Vin wrote:The folder is in your top level Factorio folder, not in the mods folder. It's called "script-output", then will have a subfolder for blueprint string. It shouldn't matter whether the mod is zipped or not.
well it doesnt show up in my mods list when its unpacked :P but anyway,
Yeah i got it now. Im not too sure if it was a clash with another mod or whatnot, tis my first run at modding this game so i wouldn't be surprised if i derped something up... but alas after i dropped all my mods and whatnot to try and get things going i found it. :D Thanks for the help.... And never mod your game a 3 in the morning >.<

Re: [MOD 0.12] Blueprint String

Posted: Sun Aug 30, 2015 1:36 am
by DaveMcW
Windows "Extract All..." feature does not work, it creates 2 nested folders instead of one.

Re: [MOD 0.12] Blueprint String

Posted: Sun Aug 30, 2015 11:03 pm
by MasterBuilder
DaveMcW wrote:Windows "Extract All..." feature does not work, it creates 2 nested folders instead of one.
Which is only a problem with the way Windows extracts files, there's nothing wrong with the archive or any nesting therein. If you don't like the way Windows does this, either fix the nesting yourself or use a different program to extract stuff. (I recommend 7z.)

Re: [MOD 0.12] Blueprint String

Posted: Thu Sep 03, 2015 12:37 am
by DeamonEngineer
i have created a blueprint in the latest version V2.0.3 and when i try to reload it to check its the correct blueprint it says that it isnt. i think its producing a blueprint to big for it to read it fully here is a dropbox of the file https://www.dropbox.com/s/kz61uda6m9qzp ... 3.txt?dl=0 (it was to big for pastebin)

sidenote anyone that can place this blueprint down in one stamp you can have my hat

Re: [MOD 0.12] Blueprint String

Posted: Thu Sep 03, 2015 1:44 am
by DaveMcW
The blueprint is corrupted, so the error is in the export function somewhere. Can you give me the save file with the blueprint to test?