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?
Max blueprint string length to paste into import?
Re: Max blueprint string length to paste into import?
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:
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:
Re: Max blueprint string length to paste into import?
There are 10 types of people: those who get this joke and those who don't.
Re: Max blueprint string length to paste into import?
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.travvo wrote: Sun Mar 30, 2025 1:49 pm
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.
There are 10 types of people: those who get this joke and those who don't.
Re: Max blueprint string length to paste into import?
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!Jap2.0 wrote: Sun Mar 30, 2025 4:51 pmHuh, that might be worth another report (or post in that thread)? Or on X dragging and dropping a file containing the string should work.travvo wrote: Sun Mar 30, 2025 1:49 pm
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.