Modding:Maps: Difference between revisions

Update JoppaWorld's rpm map
m (-currently)
(Update JoppaWorld's rpm map)
 
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
The in-game map editor loads and saves files in the .rpm XML format. It supports saving complete maps with all of the 80x25 cells included in the XML.
The in-game map editor loads and saves files in the .rpm XML format. It supports saving complete maps with all of the 80x25 cells included in the XML.


RPM files can represent a particular zone (such as the Grit Gate complex), but an RPM file is also used for the world map (<code>JoppaWorldNew4.rpm</code>), which is generated in similar fashion to other zones.
RPM files can represent a particular zone (such as the Grit Gate complex), but an RPM file is also used for the world map (<code>JoppaWorldNew8.rpm</code>{{File Reference|file=Worlds|note=world <code>JoppaWorld</code>'s <code>Map</code> value}}), which is generated in similar fashion to other zones.


===Adding something to an existing map===
===Adding something to an existing map===
Line 35: Line 35:
<Map
<Map
   Width="80"
   Width="80"
   Hight="25">
   Height="25">
   <cell
   <cell
     X="12"
     X="12"
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 lang="xml">
Example of edited <code>ObjectBlueprints.xml</code>:
 
<syntaxhighlight lang="xml">
<objects>
<objects>
 
   <object Name="My_TerrainEastJoppa" Inherits="Terrain">
   <object Name="My_TerrainEastJoppa" Inherits="Terrain">
  <part Name="Render"  
    <part Name="Render"  
        DisplayName="your display name here"  
      DisplayName="your display name here"  
        Tile="Terrain/yourcustomtile.png"   
      Tile="Terrain/yourcustomtile.png"   
        ColorString="&amp;G^k"   
      ColorString="&amp;G^k"   
        DetailColor="r"> <!-- sets a number or attributes such as the location of your custom tile (in a sub folder of your mod folder) and the colours to be applied to it -->
      DetailColor="r"> <!-- sets a number or attributes such as the location of your custom tile (in a sub folder of your mod folder) and the colours to be applied to it -->
  </part>
    </part>
  <part Name="Description" Short="your description here"></part>
    <part Name="Description" Short="your description here"></part>
  <tag Name="NoBiomes" Value="1"></tag>
    <tag Name="NoBiomes" Value="1"></tag>
  <tag Name="OverlayColor" Value="&amp;W"></tag>
    <tag Name="OverlayColor" Value="&amp;W"></tag>
    
   </object>
</object>
</objects>
</syntaxhighlight>Example of edited <code>Worlds.xml</code><syntaxhighlight lang="xml">
</syntaxhighlight>
 
Example of edited <code>Worlds.xml</code><syntaxhighlight lang="xml">:
<worlds>
<worlds>
   <world Name="JoppaWorld" Load="Merge">
   <world Name="JoppaWorld" Load="Merge">
Line 104: Line 107:
* Alt+click to select an existing item on the map
* Alt+click to select an existing item on the map
* Click and drag to move the map around.
* Click and drag to move the map around.
* Shift+click to flood fill
* Shift+drag+click to select areas
When an area is selected, it will display the tiles in the selected area. Click the X button to delete all tiles of that type, and the yellow double-circle button to replace all tiles of that type with the tile on the palette.
Hold ctrl while hovering over a tile in the sidebar to show its full XML. (If this popup happens when you are trying to edit the map, hold ctrl and run your mouse over some entries in the sidebar; this usually fixes it for me.)


== Examples ==
== Examples ==