Difference between revisions of "Info.xml"

From Serious Sam's Bogus Detour
Jump to: navigation, search
Line 13: Line 13:
 
** <code>header</code> <code>text="X" tooltip="X" multiplayer="X"</code>
 
** <code>header</code> <code>text="X" tooltip="X" multiplayer="X"</code>
 
* <code>start</code>
 
* <code>start</code>
** <code>level</code>
+
** <code>level</code> <code>name="X" lvl="X"</code>
 
* <code>classmaps</code>
 
* <code>classmaps</code>
 
** <code>behavior</code> <code>from="X" to="X"</code>
 
** <code>behavior</code> <code>from="X" to="X"</code>

Revision as of 13:39, 20 June 2017

This XML file describes a scenario. All tags listed below must be within an <info></info> block.

Tags

  • name The name of the scenario that will show up in the scenario list.
  • description The full description of the scenario that will show up when selecting the scenario in the scenario list.
  • tag A short tagline description of the scenario, which is shown above the description.
  • multiplayer Whether the scenario is multiplayer-only or not. Either true or false. (Default: false)
  • saving The save mode to use. Either none where there are no saves at all, current where the current level is saved, or all which is like Hammerwatch, where you can go back to older levels without their progress getting reset. (Default: current)
  • players min="X" max="X" The amount of players allowed to play in multiplayer. (Default: unlimited)
  • modifiers
    • modifier forced="X" id="X" name="X" tooltip="X" locked-by="X" default-on="X" radio="X" multiplayer="X"
    • separator multiplayer="X"
    • header text="X" tooltip="X" multiplayer="X"
  • start
    • level name="X" lvl="X"
  • classmaps
    • behavior from="X" to="X"
    • script from="X" to="X"
    • gamemode from="X" to="X"
  • disable-include
  • includes
    • include modifiers="X" levels="X" classmaps="X" final="X"

Example

Below is the info.xml file for the Payload gamemode on the Workshop:

<info>
  <name>Payload</name>
  <description>Bring the payload to the other side.</description>
  <multiplayer>true</multiplayer>

  <players min="2" max="12" />

  <start>
    <level name="Over the Mountain" lvl="levels/payload01.lvl" />
    <level name="That belongs in a Museum" lvl="levels/payload02.lvl" />
  </start>

  <modifiers>
    <modifier forced="true" id="VERSUS" />
    <modifier forced="true" id="PICKUP_RESPAWN" />
  </modifiers>
</info>