• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RME: Is there a way to automatically add smooth borders between terrains?

overdriven

Active Member
Joined
Mar 10, 2020
Messages
70
Solutions
1
Reaction score
42
Hi, I'm totally new to RME, so forgive me if it was asked before but I could not find an answer.

I don't think anyone manually corrects borders on every single tile, so how does one fixes it automatically?
I'm using RME v.3.6.1 on Windows. I know there is an "Automagic" function which I can toggle but it doesn't seem to do anything here.

1601226098854.png
 
Solution
Solution:

in RME/data/760/border.xml add:
XML:
<border id="58" group="1"> -- Water border --
        --     s
        --  e [  ] w
        --     n
        <borderitem edge="n"   item="578"/>
        <borderitem edge="e"   item="581"/>
        <borderitem edge="s"   item="579"/>
        <borderitem edge="w"   item="580"/>

        --  cse    csw
        --     [  ]
        --  cne   cnw
        <borderitem edge="cnw" item="586"/>
        <borderitem edge="cne" item="587"/>
        <borderitem edge="csw" item="589"/>
        <borderitem edge="cse" item="588"/>

        --        dsw
        --  dne  [  ]  dse
        --        dnw
        <borderitem edge="dnw" item="582"/>
        <borderitem edge="dne" item="583"/>
        <borderitem...
The function of automating borders, will work with some ids (those that are already registered).

Several new (or old) floors are without this function, so you will have to do it manually or add the border to the file: borders.xml (inside your version folder).
 
But it doesn't work for me on any tile types and I have plenty of borders defined in data/740/borders.xml
XML:
<border id="2" group="1"> -- grass border --
        <borderitem edge="n"   item="4542"/>
        <borderitem edge="e"   item="4543"/>
        <borderitem edge="s"   item="4544"/>
        <borderitem edge="w"   item="4545"/>
        <borderitem edge="cnw" item="4546"/>
        <borderitem edge="cne" item="4547"/>
        <borderitem edge="csw" item="4548"/>
        <borderitem edge="cse" item="4549"/>
        <borderitem edge="dnw" item="4550"/>
        <borderitem edge="dne" item="4551"/>
        <borderitem edge="dsw" item="4552"/>
        <borderitem edge="dse" item="4553"/>
    </border>

I see it works on 8.10, but I have no idea how to enable it on 7.4. Can anyone share a supported borders.xml file for 7.4?
 
Last edited:
But it doesn't work for me on any tile types and I have plenty of borders defined in data/740/borders.xml
XML:
<border id="2" group="1"> -- grass border --
        <borderitem edge="n"   item="4542"/>
        <borderitem edge="e"   item="4543"/>
        <borderitem edge="s"   item="4544"/>
        <borderitem edge="w"   item="4545"/>
        <borderitem edge="cnw" item="4546"/>
        <borderitem edge="cne" item="4547"/>
        <borderitem edge="csw" item="4548"/>
        <borderitem edge="cse" item="4549"/>
        <borderitem edge="dnw" item="4550"/>
        <borderitem edge="dne" item="4551"/>
        <borderitem edge="dsw" item="4552"/>
        <borderitem edge="dse" item="4553"/>
    </border>

I see it works on 8.10, but I have no idea how to enable it on 7.4. Can anyone share a supported borders.xml file for 7.4?

Check the border is added to the tile in grounds.xml
 
Solution:

in RME/data/760/border.xml add:
XML:
<border id="58" group="1"> -- Water border --
        --     s
        --  e [  ] w
        --     n
        <borderitem edge="n"   item="578"/>
        <borderitem edge="e"   item="581"/>
        <borderitem edge="s"   item="579"/>
        <borderitem edge="w"   item="580"/>

        --  cse    csw
        --     [  ]
        --  cne   cnw
        <borderitem edge="cnw" item="586"/>
        <borderitem edge="cne" item="587"/>
        <borderitem edge="csw" item="589"/>
        <borderitem edge="cse" item="588"/>

        --        dsw
        --  dne  [  ]  dse
        --        dnw
        <borderitem edge="dnw" item="582"/>
        <borderitem edge="dne" item="583"/>
        <borderitem edge="dsw" item="585"/>
        <borderitem edge="dse" item="584"/>
    </border>

58 - is the last available border ID + 1
Border tiles should match according to the directions in comments, i.e. "n" means 578 sprite borders with land tile from north, so it's actually south from the land tile.

In RME/data/760/grounds.xml add:

XML:
<brush name="water" type="border" server_lookid="490" z-order="6000">
        <item id="490" chance="3"/>
        <item id="491" chance="1"/>
        <item id="492" chance="1"/>
 
        <border align="inner" to="grass" id="58" />
    </brush>

Notice that border id should match with id added in borders.xml.

Adding grass land into water will work now. But adding old 7.4 water inside land won't, because it has no groundbrush.

To fix it one also has to add:
XML:
<brush name="water"/>

to data/760/tilesets.xml inside:
XML:
    <tileset name="Nature">
        <terrain>
            <brush name="water"/>

Before editing land remember to always right click on tiles and choose "Select Groundbrush" to create borders automatically.
 
Last edited:
Solution
Back
Top