User Tools

Site Tools


editplan-en

Editing the track plan XML

Content Rocrail Server

  • Editing the Track plan XML



Moving levels

The order of the zlevel nodes in the plan is used in Rocview for the Tab order.
To change this order the plan XML must be manually edited.

Example

Move "Kieswerk" to the first Tab position:
Before edit:

<plan title="Demo.xml" name="Demo.xml" >
  <zlevel title="Bahnhof" z="0" modviewx="0" modviewy="0" active="true"/>
  <zlevel title="Bergstrecke" z="1" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Kieswerk" z="2" active="false" modviewx="0" modviewy="0"/>
  ...
</plan>

After edit:

<plan title="Demo.xml" name="Demo.xml" >
  <zlevel title="Kieswerk" z="2" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Bahnhof" z="0" modviewx="0" modviewy="0" active="true"/>
  <zlevel title="Bergstrecke" z="1" active="false" modviewx="0" modviewy="0"/>
  ...
</plan>


Cleaning levels

After trying to rename/delete/recreate plans there might be multiple zlevel definitions for the same level.
To clean this you can use the extended plan clean feature or edit the plan XML manually.

Example

There are multiple zlevel nodes with the same level index z="<ABC>" (<ABC> is a number)
For every level <ABC> you should delete all except the first (!) line containig that z="<ABC>" entry.
Before edit:

<plan title="Demo.xml" name="Demo.xml" >
  <zlevel title="Kieswerk" z="2" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Bahnhof" z="0" modviewx="0" modviewy="0" active="true"/>
  <zlevel title="Bahn" z="0" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Bergstrecke" z="1" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Kies" z="0" active="false"/>
  <zlevel title="Berg" z="1"/>
  ...
</plan>

After edit:

<plan title="Demo.xml" name="Demo.xml" >
  <zlevel title="Kieswerk" z="2" active="false" modviewx="0" modviewy="0"/>
  <zlevel title="Bahnhof" z="0" modviewx="0" modviewy="0" active="true"/>
  <zlevel title="Bergstrecke" z="1" active="false" modviewx="0" modviewy="0"/>
  ...
</plan>

Note: zlevel node definitions may apper anywhere in the plan file, mostly near the head or tail.

editplan-en.txt · Last modified: 2019/11/13 11:22 by rjversluis