[MOD 0.11.14+] Blueprint String

Topics and discussion about specific mods
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

[MOD 0.11.14+] Blueprint String

Post by DaveMcW »

Image

This mod makes it easy to import and share blueprints.


Installation

1. Download the mod. (0.12 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 the "Blueprint" button to show the panel.
3. Copy a blueprint string from your friend.
4. Paste the blueprint string in the text box.
5. Click "Load String".

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

Image

Code: Select all

H4sIAAAAAAAA/43SUWvDIBDA8a9S+hxHIltfip+kjOL01h7omZ2mdAS/+67bKAsNWV4UxD+/aPRpE5Kz
YXM0I1DBgpDNOJKNYLY2Z4hvAemkonVnJFB62/Qpy7ZEZrwa1T29NJ9Gxlqb3yqCxyEqCOAKo1N9CjCt
9HfU/o3+p54fpZBOmIsQ7gy5KIaPQWbgafjziXoh7EXHC6ie0wX9fD+B361USBn4QWvvWuOR5Qpu6/pe
5mh5Oe2m6W4NqufQ3SpUz6FajooukTyFQ/dqFv8Rkofr7YSHdtXOrta6ZygD0+a4B/JfV+CPvIMCAAA=
Exporting Blueprints

1. Click the "Blueprint" button to show the panel.
2. Click "Save All"
3. Find the blueprint in your "script-output/blueprint-string" folder (located in the same parent directory as "mods/blueprint-string").


Features

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

This mod is tested in single player. I don't have a lot of experience playing multiplayer or modding it, so I appreciate any suggestions on how I can make the mod work better for multiplayer.

Changelog
Attachments
blueprint-string_1.0.1.zip
(44.31 KiB) Downloaded 7677 times
Last edited by DaveMcW on Sat Jul 18, 2015 7:45 pm, edited 27 times in total.

User_Name
Fast Inserter
Fast Inserter
Posts: 142
Joined: Sun May 18, 2014 2:07 pm
Contact:

Re: [0.11.3] Blueprint String

Post by User_Name »

It would benefit everybody if you could agree on the same data format with the author of the Foreman mod.
Attach your blueprints to forum posts with Foreman or Blueprint string.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.3] Blueprint String

Post by DaveMcW »

We both use the same format for uncompressed strings.

User avatar
-root
Filter Inserter
Filter Inserter
Posts: 651
Joined: Tue Jul 01, 2014 11:24 pm
Contact:

Re: [0.11.3] Blueprint String

Post by -root »

This. Is. The. Best.

Thanks Dave.

Tami
Fast Inserter
Fast Inserter
Posts: 157
Joined: Tue Nov 19, 2013 11:29 am
Contact:

Re: [0.11.3] Blueprint String

Post by Tami »

a blueprintmanager by default in the game would be really nice ;)

User avatar
GewaltSam
Filter Inserter
Filter Inserter
Posts: 344
Joined: Thu May 08, 2014 5:42 pm
Contact:

Re: [0.11.3] Blueprint String

Post by GewaltSam »

Does this work in multiplayer at all right now? Then we'll give it a shot I guess. Sounds like a very useful tool indeed!

KrzysD
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Mon Oct 27, 2014 6:49 pm
Contact:

Re: [0.11.3] Blueprint String

Post by KrzysD »

Used the code from https://forums.factorio.com/forum/vie ... =14&t=6516 for the outpost.zip, opened the file with copied with notepad and pasted to compressed it, ran it into Blueprint String, and it created the blueprint fine, placed it and bots started to come to assemble and crashed Compressed code

Code: Select all

Blueprint string https://forums.factorio.com/forum/viewtopic.php?t=6742 H4sIAAAAAAAAA+2d3XLbOpaFX+VUrqMugvgjq8dz1ff9AF1zoSTqHNU4tkeWe+ZUKu8+skWAxEdIcaxF+3SVL1s+nUX88OPGxsLGl9vfrm8/r69/+3T9sLnbbW/2f1vv11ffb9bfNlcf/v6wv7u933/4uLnZb/fbzf3V93+Y/7r6vv/j7vDX/11fX3/4+GW723zeb29vrpqPx//X/f72ZrM6/vV2tz38f9fD35/+mT9uHr592uyuzMfDv719+sv3/7taWfsX//GPq5Uxf/E/fnz8R6vSaaHTljpWpWNPtKc56jiVjjvRnkHHq3Q8dJpSJ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B1+zkI4QcF+W0yHovJcB3ksLIRkfApyXDkIyPIRq8dtRSEaHANdlhJAMDqFa8HYUkrEhwHHZQ0iGhgC/ZQchGRkC3JYIiYLObBnqlW1HJRkbAmva4p3VeS1DvZrtqKSjA+vY4q3VeS0DK9gCREbHB9auxXur81oGVq0FinRey8B6tUCEzmsZ4LXEyj3ovJYBXkskWYLOaxngtUSOJehq1gZ4LZGjCjqvZYDXEom3oPNahpaX9UBJxwiYLZG3DDq3ZYDbEinmoLNbBtotwQid3zLAb4kMfdAZLgMMl9h2CDrHZYDjEts2QWe5DLBcYtcm6DyXAZ5LbLAFneky2OqNPaOSjhFwXVq8uVbHCLguLWikc10GuC7tlBE/Pm4/P1UpfbwFrvgXHy+CO/ywW2+//r5fPV5S9uHHj7/uNvuH3c1vn64fNne77c3+b+v9+q+bmy//Dy6cpej8KwEA
Attachments
Crash Details
Crash Details
Untitled.jpg (108.26 KiB) Viewed 61327 times

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.3] Blueprint String

Post by DaveMcW »

Thanks, it is fixed in version 0.0.4.

Zequez
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Sat May 03, 2014 2:59 am
Contact:

Re: [0.11.3] Blueprint String

Post by Zequez »

This is fantastic! I've been waiting for this! Gonna totally try it this weekend!

Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: [0.11.3] Blueprint String

Post by Nirahiel »

I made myself a nice shell script to compress. (Please make it so your mod stops respawning the readme file, PLEASE)

Code: Select all

compress.sh :

#!/bin/sh
find ~/Library/Application\ Support/factorio/script-output/blueprint-string/. -type f -name '*.txt' -exec sh -c 'gzip < $1 | base64 > ${1%.txt}.b64z' -- {} \;
I "invented" the .b64z extension for the compressed files. On mac, a simple cat in enough to view fie contents, no matter the extension.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.3+] Blueprint String

Post by DaveMcW »

I spent the past week porting gzip to lua.

We now have automatic compression for blueprints!

JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: [0.11.3+] Blueprint String

Post by JamesOFarrell »

DaveMcW wrote:I spent the past week porting gzip to lua.

We now have automatic compression for blueprints!
That is awesome. amazing work DaveMcW.

User_Name
Fast Inserter
Fast Inserter
Posts: 142
Joined: Sun May 18, 2014 2:07 pm
Contact:

Re: [0.11.3+] Blueprint String

Post by User_Name »

DaveMcW wrote:I spent the past week porting gzip to lua.

We now have automatic compression for blueprints!
:o :shock:
Attach your blueprints to forum posts with Foreman or Blueprint string.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.14] Blueprint String

Post by DaveMcW »

Updated for Factorio 0.11.14.

I added support for line breaks in blueprint strings. This allows people to break up long lines of text to get around phpbb's 10,000 character line limit.

I am planning to add line breaks by default, but I will wait a bit to give everyone a chance to upgrade. I also need to figure out the best line length. 80 characters? 200 characters? User-defined?

Jos
Inserter
Inserter
Posts: 30
Joined: Mon Jun 16, 2014 5:07 am
Contact:

Re: [0.11.14] Blueprint String

Post by Jos »

Excellent work!
This is the most stable tool for sharing blueprint!
What's more, it is really simple and clear to use!

NotABiter
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Nov 14, 2014 9:05 am
Contact:

Re: [0.11.14] Blueprint String

Post by NotABiter »

DaveMcW wrote:This mod has strict error checking, so bad strings will not crash your game or mess it up.
But good strings can bring down your whole computer. :lol:

Just posting here to let you know I filed this bug: import "large" blueprints -> computer locks up

In short, something is up with the memory usage. If I import a blueprint with 1,024 items, I see ~38KB of memory used per item (which seems kind of high to me -- 38 bytes would seem more than enough, but whatever - "modern" software is what it is). When I import a blueprint with 2,048 items the per item use goes through the roof (running my machine out of memory when it gets to somewhere around 1MB per item). The massively higher per item memory usage makes it seem that something is broken somewhere, but I have no idea whether the issue is in the blueprint string mod or in Factorio itself.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.14] Blueprint String

Post by DaveMcW »

Thanks, I added a workaround in version 0.0.7.

Using indexes increases blueprint size by up to 50%, but at least it doesn't freeze.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.14] Blueprint String

Post by DaveMcW »

In version 0.0.8, I removed all the indexes and entitynumbers. This cuts blueprint size in half.

Newly generated blueprints require the new import function, so they are not compatible with previous versions.

Jos
Inserter
Inserter
Posts: 30
Joined: Mon Jun 16, 2014 5:07 am
Contact:

Re: [0.11.14] Blueprint String

Post by Jos »

Thank you for your excellent work again! :D

This is my translation text for zh-CN:

Code: Select all

main-button=蓝图代码
save-all=蓝图->代码
load-string=代码->蓝图
textbox-caption=代码:
blueprints-saved=已保存__1__个蓝图的代码至 'script-output/blueprint-string'
blueprints-not-saved=未找到可保存的蓝图.
no-empty-blueprint=没有空蓝图, 无法加载代码.
unknown-format=这不是有效的蓝图代码.
no-string=请将蓝图代码粘贴至代码框.
blueprint-api-error=蓝图错误: __1__
blueprint-icon-error=蓝图图标错误: __1__

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.14+] Blueprint String

Post by DaveMcW »

Thanks, I added the translation in version 0.0.9.

Post Reply

Return to “Mods”