Page 1 of 1

[0.15] Allow tile array for "transition_merges_with_tile"

Posted: Tue Apr 25, 2017 8:42 pm
by Arcitos
Dear devs,

For me one of the most appreciated 0.15-features is the new possibility for tiles to merge transitions with specified neigbors ("transition_merges_with_tile"). This is really cool! I am going to use this for smoother tile transitions in my asphalt roads mod.

Unfortunately, "transition_merges_with_tile" accepts only one specific string parameter is at any given time, but in my case there are about 20 different tiles that may share their transitions. Using only one tile is just not enough in this case. Therefore i suggest a modification of "transition_merges_with_tile" to allow handing over an array of tiles, thus allowing tile transitions with any number of different tiles.

Is this proposal feasible?

Greetings,
Arcitos

Re: [0.15] Allow tile array for "transition_merges_with_tile"

Posted: Thu Apr 27, 2017 11:18 pm
by ssilk
No idea, what you are talking about, but I move it to the right board. :)

Re: [0.15] Allow tile array for "transition_merges_with_tile"

Posted: Sun Apr 30, 2017 12:18 pm
by Arcitos
Thanks ssilk, i wasn't sure about the right board ;)

The new lua parameter specifying the merging of transitions of two different kinds of tiles was initially mentioned in fff-179. Currently, this parameter accepts only one single string (The name of the tile with which the transitions are merged). My suggestion is to permit handing over of a string array to this parameter. This will allow merging of transitions with not only one but any kind of tiles (this would be especially good for mods with a lot of different tiles).

Greetings,
Arcitos

Re: [0.15] Allow tile array for "transition_merges_with_tile"

Posted: Sun Apr 30, 2017 1:07 pm
by posila
Hi, transition_merges_with_tile is a hack to solve particular problem our artists had, and it is more likely it will be replaced by some proper solution than extended upon.

Perhaps, the name of the property is misleading. When transitions are being resolved for rendering, all tiles that have transition_merges_with_tile set, are substituted for the tile they should merge with. As a result hazard-concrete-left merges with hazard-concrete-right even if there is no normal concrete between them or around them. So if you have tile A, B, C, D, E and you want them all to merge transitions, that is already possible. If you want to merge {A, B}, {D, E}, and {B, C, D} that is not possible.

Re: [0.15] Allow tile array for "transition_merges_with_tile"

Posted: Sun Apr 30, 2017 2:28 pm
by Arcitos
Hi posila,

thanks for your explanations!

That helps me alot, as it was my intention to merge transitions of a set of tiles.