Factorio

Factorio

View Stats:
Tile placement / Blueprint generation
I was wondering if there is some mod thats like a tileplacer.
I "insert" a given String and the mod places tiles according to the string:
lets say that 0 represents normal concrete and 1 normal stone path.
So I could feed "011010001000100" etc. and I, in return I either get a Blueprint or the mod places the given tilepattern for me.
If there is no such mod, I would love to know on how blueprints are created so I may be able to make a programm myself that creates blueprints out of the input string.
And I don't want to place all the tiles myself as the pattern I hold in my hand contains 15.2k tiles.
Thanks in advance!
< >
Showing 1-15 of 19 comments
Nailfoot Mar 22, 2021 @ 9:38am 
Originally posted by Tom:
I was wondering if there is some mod thats like a tileplacer.
I "insert" a given String and the mod places tiles according to the string:
lets say that 0 represents normal concrete and 1 normal stone path.
So I could feed "011010001000100" etc. and I, in return I either get a Blueprint or the mod places the given tilepattern for me.
If there is no such mod, I would love to know on how blueprints are created so I may be able to make a programm myself that creates blueprints out of the input string.
And I don't want to place all the tiles myself as the pattern I hold in my hand contains 15.2k tiles.
Thanks in advance!

I have a BP that is over 100K tiles of concrete, stone, and hazard concrete. It was VERY EASY to make it in game.

You can make a BP from tiles that are not actually built yet. So, I placed some, then copied them to make the area bigger. Then copied THAT to make the area even bigger. After just a few steps, you will have a big enough "brush" to easily lay down your BP.

Probably faster than programming something, too.

Then you simply take a BP of the finished product. It does NOT have to actually be built.
Last edited by Nailfoot; Mar 22, 2021 @ 9:39am
オルゴール Mar 22, 2021 @ 9:56am 
I would agree with you, if all it was were lines / diagonals / etc.
But I am talking about triangles with an angle of 39 degrees. The specifics are irrelevant in this topic tho xD
Or have I misunderstood you?
Nailfoot Mar 22, 2021 @ 10:02am 
Originally posted by Tom:
I would agree with you, if all it was were lines / diagonals / etc.
But I am talking about triangles with an angle of 39 degrees. The specifics are irrelevant in this topic tho xD
Or have I misunderstood you?

No, you have understood me just fine. I just made this triangle BP in 19 seconds. I timed myself.

What would stop you from doing the same?

https://steamcommunity.com/sharedfiles/filedetails/?id=2432598992
オルゴール Mar 22, 2021 @ 10:05am 
I thought you manually adjust the size with each iteration?
How have you made it in 19sec?
Nailfoot Mar 22, 2021 @ 10:14am 
Originally posted by Tom:
I thought you manually adjust the size with each iteration?
How have you made it in 19sec?

I guess I could record a video of it. All I did was hold concrete in my hand, and place it while running diagonally.

I copied that using CTRL-C. I then ran right, holding the BP in my hand, and placed it while running. Then I hit "R" to flip it, and made the opposite side of the triangle. I filled in the rest by taking a new CTRL-C of a small rectangular section.

Then I took a BP of the whole thing. Quite simply, really.

If you want a 39 degree triangle instead of a 45 degree one, it will take more time but still easier than writing a mod and program to do so.
Last edited by Nailfoot; Mar 22, 2021 @ 10:15am
オルゴール Mar 22, 2021 @ 10:21am 
Originally posted by Nailfoot:
Originally posted by Tom:
I thought you manually adjust the size with each iteration?
How have you made it in 19sec?

I guess I could record a video of it. All I did was hold concrete in my hand, and place it while running diagonally.

I copied that using CTRL-C. I then ran right, holding the BP in my hand, and placed it while running. Then I hit "R" to flip it, and made the opposite side of the triangle. I filled in the rest by taking a new CTRL-C of a small rectangular section.

Then I took a BP of the whole thing. Quite simply, really.

If you want a 39 degree triangle instead of a 45 degree one, it will take more time but still easier than writing a mod and program to do so.
Ouh... yea.. With diagonals its not that hard I guess.
But I have the following series:
for 1 right place 1 up
for 1 right place 2 up
for 1 right place 2 up
for 1 right place 3 up
for 1 right place 2 up
for 1 right place 2 up
for 1 right place 3 up
for 1 right place 2 up
for 1 right place 2 up
for 1 right place 2 up
for 1 right place 3 up

Thats hard to make with just normal running :/
Nailfoot Mar 22, 2021 @ 10:42am 
So make 1 section, ctrl-c it, and paste it. Then copy THAT, and do it again.

Continue ad nauseam.
オルゴール Mar 22, 2021 @ 10:57am 
But thats just it.... The pattern is irrational, it doesnt repeat ^^....
Danub Mar 22, 2021 @ 11:25am 
Your best bet is a script to generate the BP from a pattern string or function or whatnot.
https://wiki.factorio.com/Blueprint_string_format documents the BP string format.

Might be worth waiting a bit until you decide to give that a go, though. I imagine someone already made/knows of such a script and might share/point you in the right direction if they see the thread.
Last edited by Danub; Mar 22, 2021 @ 11:26am
Warlord Mar 22, 2021 @ 12:06pm 
*Microsoft Clippy appears*
Sounds like you want to want to essentially make a black and white image using concrete and non-concrete, and take the raw bit data in a string to generate the precise placement of concrete in-game. Would you like some help with that? ;)

Unfortunately, I do not know how myself. The best bet would be to learn how blueprints are generated from blueprint strings, and make a program that converts from the image-string data into a format the blueprint string takes and paste it in that-a-way.
Last edited by Warlord; Mar 22, 2021 @ 12:07pm
Nailfoot Mar 22, 2021 @ 12:30pm 
Originally posted by Tom:
But thats just it.... The pattern is irrational, it doesnt repeat ^^....


Uhhgggg. What is it you are trying to build? Would another angle work?
オルゴール Mar 22, 2021 @ 2:20pm 
Originally posted by Warlord:
*Microsoft Clippy appears*
Sounds like you want to want to essentially make a black and white image using concrete and non-concrete, and take the raw bit data in a string to generate the precise placement of concrete in-game. Would you like some help with that? ;)

Unfortunately, I do not know how myself. The best bet would be to learn how blueprints are generated from blueprint strings, and make a program that converts from the image-string data into a format the blueprint string takes and paste it in that-a-way.

I would not say no to help, and why just limit yourself to black and white images? Im using a mod like dectorio and maybe in future I want to expand it :p, so it should be versatile.
I already made a programm that "mimics" my movement and places tiles that way but as I dont really know really know how lua works I havent had any luck on making a direct mod.
Only problem with mimicing the movement is, that I cant get an accurate enough movement... When you move for 1 tick in a direction you move like 0.167456 blocks or something like that xd...
And with some leg combinations I got it to 1.004... But that stil isnt 1
オルゴール Mar 22, 2021 @ 2:21pm 
Originally posted by Nailfoot:
Originally posted by Tom:
But thats just it.... The pattern is irrational, it doesnt repeat ^^....


Uhhgggg. What is it you are trying to build? Would another angle work?

I want to expand in a more "beautiful" way. Im using a specific aperiodic tiling...
Warlord Mar 22, 2021 @ 3:22pm 
Originally posted by Tom:
I would not say no to help, and why just limit yourself to black and white images? Im using a mod like dectorio and maybe in future I want to expand it :p, so it should be versatile.
I already made a programm that "mimics" my movement and places tiles that way but as I dont really know really know how lua works I havent had any luck on making a direct mod.
Only problem with mimicing the movement is, that I cant get an accurate enough movement... When you move for 1 tick in a direction you move like 0.167456 blocks or something like that xd...
And with some leg combinations I got it to 1.004... But that stil isnt 1

Hah, thought so. yeah, I used black and white image as an example, mostly because I tend to think in terms of vanilla gameplay, which really has only a handful of tile placements. I figured if I said it that way people'd get the idea that you either have an idea on how to paint and want help automating it, or you had perhaps the data in an image file (.png? .jpg?) and wanted to automate the conversion of THAT into blueprint data.
オルゴール Mar 23, 2021 @ 6:01am 
Originally posted by Warlord:
Originally posted by Tom:
I would not say no to help, and why just limit yourself to black and white images? Im using a mod like dectorio and maybe in future I want to expand it :p, so it should be versatile.
I already made a programm that "mimics" my movement and places tiles that way but as I dont really know really know how lua works I havent had any luck on making a direct mod.
Only problem with mimicing the movement is, that I cant get an accurate enough movement... When you move for 1 tick in a direction you move like 0.167456 blocks or something like that xd...
And with some leg combinations I got it to 1.004... But that stil isnt 1

Hah, thought so. yeah, I used black and white image as an example, mostly because I tend to think in terms of vanilla gameplay, which really has only a handful of tile placements. I figured if I said it that way people'd get the idea that you either have an idea on how to paint and want help automating it, or you had perhaps the data in an image file (.png? .jpg?) and wanted to automate the conversion of THAT into blueprint data.

well the raw data is... Well I have it on multiple formats...
I have the raw data (0s, 1s), I have it as a png... I have it as a table...
and yes I would love to automatically convert it into blueprint data
< >
Showing 1-15 of 19 comments
Per page: 1530 50

Date Posted: Mar 22, 2021 @ 6:07am
Posts: 19