RiverTileData Tags

Has anyone figured out exactly what the values in the RiverTileData (shown below) tags mean?  I know the first two are the X Y coordinates.  I assume the third is the Z or altitude coordinate.  The rest, determine the graphic I'm sure but what do they mean?

    <RiverTileData>43,39,74,0,2,0,1</RiverTileData>

3,696 views 5 replies
Reply #1 Top

Could be anything. I'm not using those in the rivermod, they are hardcoded to a single type of river - the water river.

 

Reply #2 Top

I'm 100% positive the first two values are the X Y and I'm about 80% sure the next value is the Z.  But I'll be danged if I can figure out those last 4 values.  Each one can be a value between 0 and 2.  I've looked at them every way I can think of and I can't spot the pattern.  There has to be something I'm missing.

Reply #4 Top

Ok, the third value is the river identifier number.  Each contiguous river has its own unique number.  If you start and stop in the middle of drawing a river in Map Editor, the unique identifier can change and cause the rivers not to join. 

Also, those of you have have played around with making maps and end up with these strange black squares on your map, those are unattached river squares.  You can edit the XML to remove them.  Just look for a river tile with those coordinates and delete it or change the Unique Identifier to match the river it belongs to.

I still have not decoded those last 4 but I can now place or fix a river by looking for another river tile going in the same direction and copying it then matching the Unique Identifier.

Reply #5 Top

Quoting Capn, reply 3
You need rotation as well.

Yes, there are three different types of river tile: straight, left curve and right curve.  The rest appears to be handled through rotation, but I've been unable to puzzle out precisely what the last 4 values actually do.