Field(s) to determine tile variation

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
rolaca11
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu Dec 10, 2020 4:28 pm
Contact:

Field(s) to determine tile variation

Post 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
20210119141353_1.jpg (937.08 KiB) Viewed 1139 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.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Field(s) to determine tile variation

Post 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".
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

rolaca11
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu Dec 10, 2020 4:28 pm
Contact:

Re: Field(s) to determine tile variation

Post 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

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Field(s) to determine tile variation

Post 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.)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Koub
Global Moderator
Global Moderator
Posts: 7226
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Field(s) to determine tile variation

Post by Koub »

[Koub] Moved to modding interface requests.
Koub - Please consider English is not my native language.

Post Reply

Return to “Modding interface requests”