Basic Activity Guide: Difference between revisions

From MetroSim Wiki
Jump to navigation Jump to search
m (.cdt -> .ctd)
Line 36: Line 36:
  '''Can be read as:'''
  '''Can be read as:'''
  <consist start="(Station or place of placing">
  <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)">
   <train pack="(trainpack like RET or London)" file="(traintype like 5200 or 5600).xml" number="(pre-selected number for train like 5217 or 5602)">
     <cab id="(0 or 1)" enabled="(true or false)" ai="(Train code)"/>
     <cab id="(0 or 1)" enabled="(true or false)" ai="(Train code)"/>
     <pantographs raised="(true or false)"/> (Like this rule there are more options possible see below)
     <pantographs raised="(true or false)"/> (Like this rule there are more options possible see below)

Revision as of 20:58, 20 March 2020

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

Making the standard

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

<activity name="JOUW NAAM" mappack="Custom" mapfile="beta3bonus.map" time="19:59:30">
<activity name="URNAME"    mappack="Rijndam"mapfile="Rijndam1.map"  time="1:00:50">


Next, you will find this next line. Here you can load the .ctd file with all the sectionmarkers. (You can edit the .ctd file as well)

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


Now we start with the train codes. Be sure the times are possible. (times are visible in the .ctd 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"/>


Then 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="(trainpack like RET or London)" file="(traintype like 5200 or 5600).xml" number="(pre-selected number for train like 5217 or 5602)">
   <cab id="(0 or 1)" 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.

Selecting the scrollsign is possible with this command. Scrollsign1 is the rifi and scrollsign2 is the dutycounter.

<car id="0" scrollsign1="7.0" scrollsign2="51"/>
<car id="1" scrollsign1="4.0" scrollsign2="51"/>

Destination codes

Main Article: Destination Codes