Modding:Maps: Difference between revisions

23 bytes added ,  10:24, 21 April 2020
(→‎Adding something to an existing map: I added some sample code for modifying worlds.xml and objectblueprints.xml as i got stuck here)
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>&lt;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>&lt;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="&amp;G^k"  <!-- colour of the tile -->
         ColorString="&amp;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">
Anonymous user