Creating an activity
Posted: 16 Oct 2022, 13:47
Hi guys, after years of using the game activities I finally decided to create my own activity.
Activity on line D (Simvliet 2020) between Strandboulevard and Simvliet Centraal with a 15 min interval between trains to start with
I took inspiration from the "Morning line D" activity to make the code lines and of course from the activity guide
I think I have succeeded in starting (start time and program of my train), placing the 4 trains in station (including mine from Sim Central) but I am stuck on some points: the programming of the other trains, I can't understand a line of code that I saw in an activity + lines of code that I don't really understand
Thank you for clarifying this for me.
What is this line of code and do I need it?
<controldata system="0" pack="Simvliet2020" file="Routes.ctd">
<trains pack="Simvliet2020" file="Activities/TimetableWeekA.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekB.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekC.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekD.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTrain.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramCentrum.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramStadhuis.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramLightrail.xml"/>
<yard pack="Simvliet" file="sbv-metro.cty" departures="auto" arrivals="auto">
<shedule name="morning" time="05:00:00" autodepartures="05:20:00" autoarrivals="08:30:00">
<arrive code="408" train="4082EV" target="SBV" time="08:48:30" ai="true" track="SBVp2" direction="-1" units="2" stop="6"/>
<arrive code="409" train="4092EV" target="SBV" time="08:58:30" ai="true" track="SBVp2" direction="-1" units="2" stop="4"/>
<arrive code="411" train="4112EV" target="SBV" time="09:08:30" ai="true" track="SBVp2" direction="-1" units="2" stop="2"/>
<arrive code="413" train="4132EV" target="SBV" time="09:38:30" ai="true" track="SBVp1" direction="-1" units="2" stop="4"/>
</shedule>
<shedule name="evening" time="14:00:00" autodepartures="15:30:00" autoarrivals="17:30:00">
<depart code="415" train="4152VE" target="SBV" time="15:59:45" ai="true" track="SBVp1" direction="1" units="2" signnumber="15" signdest="d-scs"/>
<depart code="417" train="4172VE" target="SBV" time="16:09:45" ai="true" track="SBVp2" direction="1" units="2" signnumber="17" signdest="d-scs"/>
<depart code="418" train="4182VE" target="SBV" time="16:19:45" ai="true" track="SBVp2" direction="1" units="2" signnumber="18" signdest="d-scs"/>
<depart code="419" train="4192VE" target="SBV" time="16:29:45" ai="true" track="SBVp1" direction="1" units="2" signnumber="19" signdest="d-scs"/>
I have the impression that these lines of code correspond to the schedule for the departure and arrival of the depot, if this is the case. What do the lines of code correspond to for the schedule of the other 3 trains?
Activity on line D (Simvliet 2020) between Strandboulevard and Simvliet Centraal with a 15 min interval between trains to start with
I took inspiration from the "Morning line D" activity to make the code lines and of course from the activity guide
I think I have succeeded in starting (start time and program of my train), placing the 4 trains in station (including mine from Sim Central) but I am stuck on some points: the programming of the other trains, I can't understand a line of code that I saw in an activity + lines of code that I don't really understand
Thank you for clarifying this for me.
What is this line of code and do I need it?
<controldata system="0" pack="Simvliet2020" file="Routes.ctd">
<trains pack="Simvliet2020" file="Activities/TimetableWeekA.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekB.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekC.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekD.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTrain.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramCentrum.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramStadhuis.xml"/>
<trains pack="Simvliet2020" file="Activities/TimetableWeekTramLightrail.xml"/>
<yard pack="Simvliet" file="sbv-metro.cty" departures="auto" arrivals="auto">
<shedule name="morning" time="05:00:00" autodepartures="05:20:00" autoarrivals="08:30:00">
<arrive code="408" train="4082EV" target="SBV" time="08:48:30" ai="true" track="SBVp2" direction="-1" units="2" stop="6"/>
<arrive code="409" train="4092EV" target="SBV" time="08:58:30" ai="true" track="SBVp2" direction="-1" units="2" stop="4"/>
<arrive code="411" train="4112EV" target="SBV" time="09:08:30" ai="true" track="SBVp2" direction="-1" units="2" stop="2"/>
<arrive code="413" train="4132EV" target="SBV" time="09:38:30" ai="true" track="SBVp1" direction="-1" units="2" stop="4"/>
</shedule>
<shedule name="evening" time="14:00:00" autodepartures="15:30:00" autoarrivals="17:30:00">
<depart code="415" train="4152VE" target="SBV" time="15:59:45" ai="true" track="SBVp1" direction="1" units="2" signnumber="15" signdest="d-scs"/>
<depart code="417" train="4172VE" target="SBV" time="16:09:45" ai="true" track="SBVp2" direction="1" units="2" signnumber="17" signdest="d-scs"/>
<depart code="418" train="4182VE" target="SBV" time="16:19:45" ai="true" track="SBVp2" direction="1" units="2" signnumber="18" signdest="d-scs"/>
<depart code="419" train="4192VE" target="SBV" time="16:29:45" ai="true" track="SBVp1" direction="1" units="2" signnumber="19" signdest="d-scs"/>
I have the impression that these lines of code correspond to the schedule for the departure and arrival of the depot, if this is the case. What do the lines of code correspond to for the schedule of the other 3 trains?