Page 1 of 1
Field(s) to determine tile variation
Posted: Tue Jan 19, 2021 1:51 pm
by rolaca11
TL;DR
Field(s) in LuaTile that returns which variation the given tile belongs to.
What ?
With a couple of LUA commands, I can collect all the charted and visible chunks on the map and tiles in those chunks. I can also gather which type the tile belongs to. The missing part is to know which variation it belongs to.

- 20210119141353_1.jpg (937.08 KiB) Viewed 1391 times
I'd like to have a way to gather the data about the red boxes and blue/green text on the attachment above
Why ?
We are creating an online map viewer for factorio. The concept works without this information, but the result is quite ugly. Unfortunately, this is a server-side script, which means that
take_screenshot is out of scope.
Re: Field(s) to determine tile variation
Posted: Tue Jan 19, 2021 6:09 pm
by eradicator
@Moderation: Imho this is an interface request.
Just the variation isn't sufficient though. You'd also need to know the coordinates of the other tiles that belong to the same "square".
Re: Field(s) to determine tile variation
Posted: Tue Jan 19, 2021 8:22 pm
by rolaca11
eradicator wrote: Tue Jan 19, 2021 6:09 pm
@Moderation: Imho this is an interface request.
Sorry, didn't find the topic
eradicator wrote: Tue Jan 19, 2021 6:09 pm
Just the variation isn't sufficient though. You'd also need to know the coordinates of the other tiles that belong to the same "square".
That's what I meant by the "red boxes and blue/green numbers" part
Re: Field(s) to determine tile variation
Posted: Tue Jan 19, 2021 8:42 pm
by eradicator
rolaca11 wrote: Tue Jan 19, 2021 8:22 pm
eradicator wrote: Tue Jan 19, 2021 6:09 pm
Just the variation isn't sufficient though. You'd also need to know the coordinates of the other tiles that belong to the same "square".
That's what I meant by the "red boxes and blue/green numbers" part
Just saying that it's insufficient for your goal to have the texture variation information of each ONE tile because that doesn't tell you in which direction multi-tile textures expand. Call me Captain Obvious if you want ;).
(Also "told'cha so". I remember the thread where you originally asked for a solution and i said there wasn't one :P.)
Re: Field(s) to determine tile variation
Posted: Tue Jan 19, 2021 10:02 pm
by Koub
[Koub] Moved to modding interface requests.