Max blueprint string length to paste into import?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
travvo
Inserter
Inserter
Posts: 38
Joined: Fri Jan 31, 2025 10:41 pm
Contact:

Max blueprint string length to paste into import?

Post by travvo »

I'm working on something that involves creating blueprint strings with python, exporting into .txt files to be copied into Factorio. The thing is...these strings are rather large. On the order of 6 or 7 million characters, ~6 or 7 mb in size. Based on my testing, it seems that there's an upper limit to the length of string you can paste into the import blueprint string window. I can paste in 250,000 characters, but not 300,000. Meanwhile I am able to copy and paste 1,000,000 character strings between different text editors just fine (Linux Mint). I also happen to know that I can create and use blueprints of this size within the game, I simply can't import them.

Has anyone dealt with this issue? Is there a way to increase the blueprint character limit cap? Should I be making a thread in requests?
travvo
Inserter
Inserter
Posts: 38
Joined: Fri Jan 31, 2025 10:41 pm
Contact:

Re: Max blueprint string length to paste into import?

Post by travvo »

For further context: I am working on a color image printer, which prints items onto belts to render the image. The printer itself prints images just over 2 megapixels (3000 x 720). The images are stored as signal values in banks of combinators, 720 combinators with up to 750 distinct signals each.

I've confirmed that Factorio is able to import a blueprint string that's millions of lines long. I had to break the string into 17 pieces (250000 each) and copy them each in individually, but then it worked as intended. I simply can't copy in the entire string in one go:
screenshot-tick-47880051.png
screenshot-tick-47880051.png (31.06 MiB) Viewed 471 times
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2506
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Max blueprint string length to paste into import?

Post by Jap2.0 »

There are 10 types of people: those who get this joke and those who don't.
travvo
Inserter
Inserter
Posts: 38
Joined: Fri Jan 31, 2025 10:41 pm
Contact:

Re: Max blueprint string length to paste into import?

Post by travvo »

Jap2.0 wrote: Sun Mar 30, 2025 6:23 am 116367

Thank you! Unfortunately, switching to Wayland did not resolve this issue for me. I have an AMD graphics card and the game appears to be running fine post-switch, but I still can't paste large strings :(. Restarted my machine and everything.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2506
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Max blueprint string length to paste into import?

Post by Jap2.0 »

travvo wrote: Sun Mar 30, 2025 1:49 pm
Jap2.0 wrote: Sun Mar 30, 2025 6:23 am 116367

Thank you! Unfortunately, switching to Wayland did not resolve this issue for me. I have an AMD graphics card and the game appears to be running fine post-switch, but I still can't paste large strings :(. Restarted my machine and everything.
Huh, that might be worth another report (or post in that thread)? Or on X dragging and dropping a file containing the string should work.
There are 10 types of people: those who get this joke and those who don't.
travvo
Inserter
Inserter
Posts: 38
Joined: Fri Jan 31, 2025 10:41 pm
Contact:

Re: Max blueprint string length to paste into import?

Post by travvo »

Jap2.0 wrote: Sun Mar 30, 2025 4:51 pm
travvo wrote: Sun Mar 30, 2025 1:49 pm
Jap2.0 wrote: Sun Mar 30, 2025 6:23 am 116367

Thank you! Unfortunately, switching to Wayland did not resolve this issue for me. I have an AMD graphics card and the game appears to be running fine post-switch, but I still can't paste large strings :(. Restarted my machine and everything.
Huh, that might be worth another report (or post in that thread)? Or on X dragging and dropping a file containing the string should work.
Dragging and dropping the .txt file into the import window in Factorio totally worked! Just did it with a blueprint that was 5.8 mb. Thank you so much!
Post Reply

Return to “Technical Help”