Table of Contents

15/10/2012 4:00:28 PM

Turn Display XML

Setup

  1. Unzip the files and make sure you preserve the directory structure
    • Directory structure:
    • crews - where you store the crew list. Each list of crewmembers needs a unique name.
    • setup - blank files, backups in case you want to start from the beginning again.
    • ships - where you store your ships. Each ship needs a unique name.
    • turns - where you store your turns. Each turn should have a unique name, but it doesn't need to follow any particular naming scheme.
    • xsl - this is where all the processing happens, the XSL and CSS files are here - don't change anything unless you're familiar with who XML and CSS works.
  2. Upload all these files, with the directory structure to your website.

Creating your Campaign

First thing you need to do before you start issuing turn reports to your players, is to setup the ship they are in (and optionally any ships they may board) and the list of who is in their crew.

Creating Ships

In the \ships\ directory create a new file and give it a unique name with the extension “.xml”. This file must be text, must be lowercase, and must not contain any spaces or punctuation in its name. You need to enter information between the tags.

An empty ship file

<?xml version="1.0" encoding="UTF-8"?>
<ship>
  <name></name>
   <registry></registry>
  <size></size>
  <map>
    <type></type>
    <orientation></orientation>
    <enhancement></enhancement>
    <location>
      <x></x>
      <y></y>
    </location>
  </map>
</ship>

Creating Crew Lists

In the \crews\ directory create a new file and give it a unique name with the extension .xml“. This file must be text, must be lowercase, and must not contain any spaces or punctuation in its name.” You need to enter information between the tags.

An empty crewlist file

<?xml version="1.0" encoding="UTF-8"?>
<crew>    
  <crewmember>
    <image></image>
    <name></name>
    <race></race>
    <class></class>
    <player></player>
  </crewmember>
</crew>

Writing a Turn File

Now that you've made those two files, you can make as many turn files as you like. They should all be stored in your \turns\ directory. This file must be text, and must not contain any spaces or punctuation in its name.

An empty crewlist file

<?xml version=1.0" encoding="UTF-8"?>"
<turn>
  <number></number>
  <playership>
    <name></name>    
  </playership>    
  <playercrew>
    <crewlist></crewlist>
    <character>
      <name></name>
      <location>
        <x></x>
        <y></y>
      </location>
    </character>        
  </playercrew>
</turn>

And you're done.

Have fun.

Make sure to direct your players to the correct turn XML file.