Modding:Maps: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>CaptainTechnicality54384
(Created page with "Category:Modding ==.rpm files== RPM files are stores of static map content. They are a simple xml format. RPM files can be overriden from your mod folder. The in-game map...")
 
imported>CaptainTechnicality54384
No edit summary
Line 11: Line 11:


'''Example Joppa.RMP from Two Ctesiphus tutorial mod'''
'''Example Joppa.RMP from Two Ctesiphus tutorial mod'''
<?xml version="1.0" encoding="utf-8"?>
<syntaxhighlight lang="xml">
<Map
<?xml version="1.0" encoding="utf-8"?>
  Width="80"
<Map
  Height="25" Load="Merge">
  Width="80"
  <cell
  Height="25" Load="Merge">
    X="41"
  <cell
    Y="7">
    X="41"
    <object Name="Ctesiphus"></object>
    Y="7">
  </cell>
    <object Name="Ctesiphus"></object>
</Map>
  </cell>
</Map>
</syntaxhighlight>

Revision as of 15:57, 23 May 2019

.rpm files

RPM files are stores of static map content. They are a simple xml format. RPM files can be overriden from your mod folder.

The in-game map editor loads and saves the .rpm xml format.

In the following example only a single cell is merged with the existing contents of Joppa.RPM. If Load="Merge" is not supplied, the contents are replaced instead.

The in-game map editor doesn't support cutting a section of the map out for saving, so if you'd like to replace only a subsection you'll have to edit the .rpm by hand.


Example Joppa.RMP from Two Ctesiphus tutorial mod

<?xml version="1.0" encoding="utf-8"?>
<Map
  Width="80"
  Height="25" Load="Merge">
  <cell
    X="41"
    Y="7">
    <object Name="Ctesiphus"></object>
  </cell>
</Map>