Basic Activity Guide

From MetroSim Wiki
Revision as of 15:16, 18 June 2013 by Senjer (talk | contribs)
Jump to navigation Jump to search

On this page you can learn how to make your own activity.

Making the standard

First you see this line, here can you give your activity name and the starting time of the activity.

<activity name="JOUW NAAM" mappack="Custom" mapfile="beta3bonus.map" time="19:59:30">


Next see you the next line, here can you load the .ctd file with all the sectionmarkers. (You can edit the .cdt file as well)

<controldata system="0" pack="Custom" file="beta3b-routes.ctd">


Now we start with the train codes. Be sure the times are possible. (times are visible in the .cdt file)

<train code="735">
  <duty code="735-1" number="735#PS" route="A-PS"  time="19:57:30" ai="true"/>
  <duty code="735-1" number="735#SP" route="A-SP"  time="20:05:00" ai="true"/>
  <duty code="735-1" number="735#PS" route="A-PS"  time="20:12:30" ai="true"/>
  <duty code="735-1" number="735#SP" route="A-SP"  time="20:20:00" ai="true"/>
 </train>
Can be read as:
<train code="(Train shift number)">
  <duty code="(Train code - number of trains)" number="(Train code#Start and end station)" route="A-PS"  time="19:57:30" ai="true"/>
  <duty code="(Train code - number of trains)" number="(Train code#Start and end station)" route="A-SP"  time="20:05:00" ai="true"/>
  <duty code="(Train code - number of trains)" number="(Train code#Start and end station)" route="A-PS"  time="20:12:30" ai="true"/>
  <duty code="(Train code - number of trains)" number="(Train code#Start and end station)" route="A-SP"  time="20:20:00" ai="true"/>
 </train>


When you have inserted all the trains like above you can number the trains you placed(explained further in this tutorial) to the right train code. The first placed train gets F10001 and the second one F10002 etc.

<trainnumber old="F10001" new="7351PS" timetable="735"/>


At least place the trains itself like below.

<consist start="VRW1">
  <train pack="RET" file="5500.xml" number="5505">
   <cab id="1" enabled="true" ai="735"/>
   <pantographs raised="true"/>
  </train>
 </consist>
Can be read as:
<consist start="(Station or place of placing">
  <train pack="RET" file="(traintype like 5200 or 5600).xml" number="(pre-selected number for train like 5217 or 5602)">
   <cab id="(1 or 2)" enabled="(true or false)" ai="(Train code)"/>
   <pantographs raised="(true or false)"/> (Like this rule there are more options possible see below)
  </train>
 </consist>

pantographs raised="true": Pantograph is raised when placed. shoes raised="true": The thirdrail shoes are up. doorsleft/doorsright open="true": The doors on the selected side are open. pantographs broken="true": Simulate a broken pantograph.