Modding:Maps: Difference between revisions
→Replace a Terrain Tile in World Map: minor fix
(→Adding something to an existing map: I added some sample code for modifying worlds.xml and objectblueprints.xml as i got stuck here) |
(→Replace a Terrain Tile in World Map: minor fix) |
||
Line 46: | Line 46: | ||
<code>My_TerrainEastJoppa</code> would be an object you define in the object blueprints to render the cell however you want, and you can then define your own "sub zone" within <code>Worlds.xml</code> attached to that Terrain tile via <code><cell ApplyTo="My_TerrainEastJoppa"></code> | <code>My_TerrainEastJoppa</code> would be an object you define in the object blueprints to render the cell however you want, and you can then define your own "sub zone" within <code>Worlds.xml</code> attached to that Terrain tile via <code><cell ApplyTo="My_TerrainEastJoppa"></code> | ||
Example of edited <code>ObjectBlueprints.xml</code><syntaxhighlight> | Example of edited <code>ObjectBlueprints.xml</code><syntaxhighlight lang="xml"> | ||
<objects> | <objects> | ||
Line 52: | Line 52: | ||
<part Name="Render" | <part Name="Render" | ||
DisplayName="your display name here" | DisplayName="your display name here" | ||
Tile="Terrain/yourcustomtile.png" <!-- put in a subfolder of your mod folder --> | Tile="Terrain/yourcustomtile.png" <!-- put in a subfolder of your mod folder --> | ||
ColorString="&G^k" <!-- colour of the tile --> | ColorString="&G^k" <!-- colour of the tile --> | ||
DetailColor="r"> <!-- highlight colour of the tile --> | DetailColor="r"> <!-- highlight colour of the tile --> | ||
Line 61: | Line 61: | ||
</object> | </object> | ||
</syntaxhighlight>Example of edited <code>Worlds.xml</code><syntaxhighlight> | </syntaxhighlight>Example of edited <code>Worlds.xml</code><syntaxhighlight lang="xml"> | ||
<worlds> | <worlds> | ||
<world Name="JoppaWorld" Load="Merge"> | <world Name="JoppaWorld" Load="Merge"> |