User Tools

Site Tools


editplan-en

Differences

This shows you the differences between two versions of the page.


editplan-en [2019/11/13 11:22] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Editing the track plan XML======
 +[[:english#rocrail|{{  :server.png}}]][[:english|{{  :rocrail-logo-32.png}}]]
 +[[:english | Content ]] -> [[:english#rocrail|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:
 +<code xml>
 +<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>
 +</code>
 +After edit:
 +<code xml>
 +<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>
 +</code>
 + \\
 +===== 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 [[rocrailini-router-en#clean_basic_problems_on_all_items|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:
 +<code xml>
 +<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>
 +</code>
 +After edit:
 +<code xml>
 +<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>
 +</code>
 +
 +Note: zlevel node definitions may apper anywhere in the plan file, mostly near the head or tail.