activities

General discussions

Moderators: senjer, Tom

activities

Postby emil84 » 22 Feb 2017, 11:29

how can i do change an activity from manual start to AI start? so i can drive also other trains and not necessarily the train assigned for the activity
emil84
 
Posts: 33
Joined: 14 Dec 2016, 11:08

Re: activities

Postby Sjoerd » 22 Feb 2017, 11:43

In Rijndam this is already the standard; (nearly) all activities run on AI, and you can turn it off for your own train (or any other, if you want to drive another train in the network).

In Simvliet this is not the case. To change that, you have do make modifications to the ACT files.

1) Open the ACT file of the activity you want to modify in this way.
2) Find out which service you are driving.

For example; "Morning Line C.act" in Simvliet; in the player duty list (the list that becomes visible on the right side in your screen when you move the mouse there during the simulation) this is mentioned at some point: "Drive train 1213LT". So; you are driving service 121.

3) Now look for this service in the services list below in the ACT file. Look for this: <train code="121">
4) At every codeline below, add ai="true".

For example:

You have this:

Code: Select all
 
<train code="121">
   <duty code="121-3" number="121#LT" route="C-LT"  time="05:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="06:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="06:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="07:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="07:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="08:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="08:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="09:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="09:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="10:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="10:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="11:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="11:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="12:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="12:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="13:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="13:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="14:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="14:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="15:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="15:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="16:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="16:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="17:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="17:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="18:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="18:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="19:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="19:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="20:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="20:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="21:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="21:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="22:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="22:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="23:04:30"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="23:35:00"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="24:04:30"/>
   <duty code="121-3" number="121#LY" route="X-LY"  time="24:31:00"/>
  </train>


Change it to this:
Code: Select all
 
<train code="121">
   <duty code="121-3" number="121#LT" route="C-LT"  time="05:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="06:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="06:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="07:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="07:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="08:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="08:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="09:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="09:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="10:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="10:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="11:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="11:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="12:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="12:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="13:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="13:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="14:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="14:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="15:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="15:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="16:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="16:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="17:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="17:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="18:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="18:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="19:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="19:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="20:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="20:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="21:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="21:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="22:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="22:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="23:04:30" ai="true"/>
   <duty code="121-3" number="121#LT" route="C-LT"  time="23:35:00" ai="true"/>
   <duty code="121-3" number="121#TL" route="C-TL"  time="24:04:30" ai="true"/>
   <duty code="121-3" number="121#LY" route="X-LY"  time="24:31:00" ai="true"/>
  </train>


5) The playerduty list also said "shunt to station" at the beginning. So, find the codeline which tells your service (121) to leave the depot. Which is:

Code: Select all
    <depart code="121" train="1213LT" target="LEL" time="05:30:00" track="OPK4" direction="1" units="3" signnumber="21" signdest="c-sap"/>


6) Change it to:

Code: Select all
    <depart code="121" train="1213LT" target="LEL" time="05:30:00" ai="true"  track="OPK4" direction="1" units="3" signnumber="21" signdest="c-sap"/>


7) Do the same for the return to the depot;

Code: Select all
    <arrive code="121" train="1213LY" target="LEL" time="24:32:00" track="OPK4" direction="-1" units="3" stop="6"/>


Needs to become:

Code: Select all
    <arrive code="121" train="1213LY" target="LEL" time="24:32:00"  ai="true" track="OPK4" direction="-1" units="3" stop="6"/>



Good luck! :D ;)
User avatar
Sjoerd
 
Posts: 1452
Joined: 26 Dec 2014, 21:14
Location: Leiden

Re: activities

Postby emil84 » 22 Feb 2017, 13:05

thanks :)
emil84
 
Posts: 33
Joined: 14 Dec 2016, 11:08


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests