Wahazar wrote:What I need is proper orientation against coast line. This waterlock can be located only on coast, I don't want it to allow access deeply inland due to gameplay balance.
Rivers have river_outlet sprites, how to assign it to the waterlock?
And is it possible to have background and foreground image for feature, which is not classified as a 'base' ?
River and 3Layer are in the same namespace as RoadAllCombined (i.e. "style" in the [extra] section). so you have to choose one and only one for each type of extra. I can see no indication that style is related to the extra type as defined in the ruleset
(base, road, mine, irrigation, etc.).
Using caz's suggestion I think you would need a heap of tags in the spec file which connect all 'cardinal' combinations which in the case of hex is all connections (= 64 same as RoadAllCombined for hex) PLUS 6 more for the outlet sprites. The latter may be exactly what you want. If you require no actual inland connections, the former (=64) could be compacted to just a single central sprite in the png that then connects to all possible combinations of the 6 "sea" connections, making a total of 7 sprites. Look at tileset spec file for the conventions on naming suffixes for the 64 plus 6. The first 64: <tag>_s_<direction_combo>; the next 6: <tag>_connection_<simple_direction>. While there appears to be well defined rules defining the suffixes that are added
for each extra "style", the prefix system <prefix>.<tag> is still mysterious to me. Mostly it looks like they are optional (in matching between ruleset
), but this may be about to change because "road.<roadtype>" is now used in both. In any event the prefixes used within
the tileset must be consistently used - as I read it.
caz may be able to sort out these details for both of us.
As for foreground/ background sprites (with 3layer) the three suffixes used are _fg, _mg, _bg and therefore only three sprites (max). It is fairly clear that this affects the layering when rendered by the GUI. Once again I find some of this layering stuff poorly defined so someone who knows may be able to help.