Terrain join json
Posted: Sat Aug 25, 2018 9:52 am
This is only highlight topic of what is in the json, the actual how to set is written in the sample topics
In the json you can define
1. Autotileing (set which tile to put if the surrounding tiles are in given order eg: grass-water shore transitions)
- road autotileing walktrough:
viewtopic.php?f=217&t=6040
viewtopic.php?f=217&t=6042
1.a: Autotileing Ext: Also there is an extended autotileing version written here: viewtopic.php?f=217&t=12083
2. Block set definitions: like the megabig 2x2 Mountain or the "Colisseum"
- Block definitions: viewtopic.php?f=217&t=6048&p=71301#p71301
3. Alternative appearances - like the pinetree that is on every click has a random which tile will be put (true for flood filling tool too)
- this one is in this topic below
Alternative appearances
Under the terrain_join.json file tileAlternativesString tag you can set alternative appearance for a tile
example from AOS in 2010
where a line means a rule with this format:
meanind the selected tile will be repaced with "percent" chance to one of chosen tiles (among these tiles same probability)
different probabilities for same selected tile:
You can define different probabilities for different "chosen" tiles (to-tile) by defining 2 lines for same tile eg:
meaning:
- tile 349 with 10% chance it will be 288 or 304 or 287
- tile 349 with 30% chance it will be 302 or 303
- if non of the above chances occur it will reamin tile 349
In the json you can define
1. Autotileing (set which tile to put if the surrounding tiles are in given order eg: grass-water shore transitions)
- road autotileing walktrough:
viewtopic.php?f=217&t=6040
viewtopic.php?f=217&t=6042
1.a: Autotileing Ext: Also there is an extended autotileing version written here: viewtopic.php?f=217&t=12083
2. Block set definitions: like the megabig 2x2 Mountain or the "Colisseum"
- Block definitions: viewtopic.php?f=217&t=6048&p=71301#p71301
3. Alternative appearances - like the pinetree that is on every click has a random which tile will be put (true for flood filling tool too)
- this one is in this topic below
Alternative appearances
Under the terrain_join.json file tileAlternativesString tag you can set alternative appearance for a tile
example from AOS in 2010
Code: Select all
"tileAlternativesString": [
"349-0.1-288,304,303,287",
"301-0.1-283,299,315",
"2064-0.5-2065",
"2062-0.6-2067,2068",
"2069-0.75-2070,2071,2072",
"2063-0.6-2073,2074",
"2096-0.5-2104",
"2099-0.5-2100",
"2102-0.6-2103,2105",
"2096-0.5-2104",
"2106-0.5-2107",
"4155-0.5-4156,4157,4158",
"2300-0.5-2301,2302,2303,2304,2305,2306,2307",
"2320-0.5-2321,2322,2323,2324,2325,2326,2327",
"2340-0.5-2341,2342,2343,2344,2345,2346,2347",
"2360-0.5-2361,2362,2363,2364,2365,2366,2367",
"2380-0.5-2381,2382,2383,2384,2385,2386,2387,2388,2389"
], Code: Select all
"<selected tile>-<percent>-<chosen tile1>,<chosen tile2>,<chosen tile3 and so on>" different probabilities for same selected tile:
You can define different probabilities for different "chosen" tiles (to-tile) by defining 2 lines for same tile eg:
Code: Select all
"349-0.1-288,304,303,287",
"349-0.3-302,303",
- tile 349 with 10% chance it will be 288 or 304 or 287
- tile 349 with 30% chance it will be 302 or 303
- if non of the above chances occur it will reamin tile 349