Problems with making Activitys

General discussions

Moderator: senjer

User avatar
Sjoerd
Posts: 5676
Joined: 26 Dec 2014, 21:14
Location: Alphen aan den Rijn

Re: Problems with making Activitys

Post by Sjoerd »

XML error in line 2317

<train pack="RET" file="5500.xml" number="5503"/>
<cab id="0" enabled="false" ai="102"/>
</train>

Fix that, and the activity appears in the menu.

But that does not solve everything; the simulation crashes to desktop when starting the activity.
.
.
.
.
.
I can't exactly see what the problem is, but if you remove the trains & services of the Airport Shuttleservice (which should be alright as your activity is about line M2), then the activity will start. ;)
CEO of the Rijndam Electrical Transport company :D
Selbout
Posts: 10
Joined: 13 Nov 2019, 15:01

Re: Problems with making Activitys

Post by Selbout »

is there a way to convert a text document into act.file which is a must for custom activity
Last edited by Selbout on 19 Mar 2020, 08:15, edited 1 time in total.
PetttRocket
Posts: 346
Joined: 01 Jan 2020, 21:48

Re: Problems with making Activitys

Post by PetttRocket »

Selbout wrote: 19 Mar 2020, 07:59 is there a way to convert a text document into act.file
Copy all with "Strg + A" and then put it into a new editor file and then save it and name it ???.act
Hi
Selbout
Posts: 10
Joined: 13 Nov 2019, 15:01

Re: Problems with making Activitys

Post by Selbout »

i will try thx
User avatar
Sjoerd
Posts: 5676
Joined: 26 Dec 2014, 21:14
Location: Alphen aan den Rijn

Re: Problems with making Activitys

Post by Sjoerd »

"Strg+A"? Don't you mean Ctrl+A (select all) -> Ctrl+C (Copy) -> Ctrl+V (Paste)?

Just rename the file with .act on the end.
Before you do, make sure that you have the windows-function "hide known file extensions" set to OFF. Otherwise you might just end up with "filename.act.txt", which won't do you any good.
CEO of the Rijndam Electrical Transport company :D
Selbout
Posts: 10
Joined: 13 Nov 2019, 15:01

Re: Problems with making Activitys

Post by Selbout »

Sjoerd wrote: 19 Mar 2020, 09:34 "Strg+A"? Don't you mean Ctrl+A (select all) -> Ctrl+C (Copy) -> Ctrl+V (Paste)?

Just rename the file with .act on the end.
Before you do, make sure that you have the windows-function "hide known file extensions" set to OFF. Otherwise you might just end up with "filename.act.txt", which won't do you any good.
Thanks all i already get it
PetttRocket
Posts: 346
Joined: 01 Jan 2020, 21:48

Re: Problems with making Activitys

Post by PetttRocket »

Sjoerd wrote: 19 Mar 2020, 09:34 "Strg+A"? Don't you mean Ctrl+A (select all) -> Ctrl+C (Copy) -> Ctrl+V (Paste)?

Just rename the file with .act on the end.
Before you do, make sure that you have the windows-function "hide known file extensions" set to OFF. Otherwise you might just end up with "filename.act.txt", which won't do you any good.
Strg is in Germany
Hi
PetttRocket
Posts: 346
Joined: 01 Jan 2020, 21:48

Re: Problems with making Activitys

Post by PetttRocket »

It doesn't work!! :cry:
Attachments
M1 7-8 - Kopie.rar
(8.29 KiB) Downloaded 160 times
Hi
HexxOP
Posts: 89
Joined: 09 Jan 2019, 13:04

Re: Problems with making Activitys

Post by HexxOP »

Hey, I quickly took a look to your file,the error come form the "yard" section.

If I take the first yard :

Code: Select all

  <yard pack="Rijndam2022" file="DM.cty" departures="auto" arrivals="auto">
   <shedule name="AS" time="15:00:00" autodepartures="15:45:00" autoarrivals="18:15:00">
    <depart code="411" train="4113MP" target="MLW" time="05:33:00" ai="true" track="A10" direction="1" units="3" stop="3"/>

    <depart code="101" train="1012MB" target="MLW" time="04:57:00" ai="true" track="A01" direction="1" units="2" signnumber="01"/>
    <depart code="103" train="1032MB" target="MLW" time="05:12:00" ai="true" track="A01" direction="1" units="2" signnumber="03"/>
    <depart code="105" train="1052MB" target="MLW" time="05:27:00" ai="true" track="A01" direction="1" units="2" signnumber="05"/>
    <depart code="107" train="1072MB" target="MLW" time="05:42:00" ai="true" track="A01" direction="1" units="2" signnumber="07"/>
    <depart code="102" train="1022MB" target="MLW" time="06:05:30" ai="true" track="A02" direction="1" units="2" signnumber="02"/>
    <depart code="104" train="1042MB" target="MLW" time="06:20:30" ai="true" track="A02" direction="1" units="2" signnumber="04"/>
    <depart code="106" train="1062MB" target="MLW" time="06:35:30" ai="true" track="A02" direction="1" units="2" signnumber="06"/>
    <depart code="108" train="1082MB" target="MLW" time="06:50:30" ai="true" track="A02" direction="1" units="2" signnumber="08"/>

    <depart code="111" train="1113MP" target="MLW" time="06:30:00" ai="true" track="A04" direction="1" units="3" signnumber="11"/>
    <depart code="112" train="1123MP" target="MLW" time="06:37:00" ai="true" track="A04" direction="1" units="3" signnumber="12"/>
    <depart code="113" train="1133MP" target="MLW" time="06:45:00" ai="true" track="A05" direction="1" units="3" signnumber="13"/>
    <depart code="114" train="1143MP" target="MLW" time="06:52:00" ai="true" track="A05" direction="1" units="3" signnumber="14"/>

    <depart code="301" train="3013MR" target="MLW" time="05:37:00" ai="true" track="A06" direction="1" units="3" signnumber="31"/>
    <depart code="302" train="3022MR" target="MLW" time="05:44:30" ai="true" track="A06" direction="1" units="2" signnumber="32"/>
    <depart code="303" train="3033MR" target="MLW" time="05:52:00" ai="true" track="A06" direction="1" units="3" signnumber="33"/>
    <depart code="304" train="3042MR" target="MLW" time="05:59:30" ai="true" track="A08" direction="1" units="2" signnumber="34"/>
    <depart code="305" train="3052MR" target="MLW" time="06:07:00" ai="true" track="A08" direction="1" units="2" signnumber="35"/>
    <depart code="306" train="3062MR" target="MLW" time="06:14:30" ai="true" track="A08" direction="1" units="2" signnumber="36"/>
   </shedule>
  </yard>

   <shedule name="AS" time="15:00:00" autodepartures="15:45:00" autoarrivals="18:15:00">
    <arrive code="411" train="4113MZ" target="MLW" time="20:47:00" ai="true" track="A10" direction="-1" units="3" stop="3"/>
    <arrive code="101" train="1013MZ" target="MLW" time="24:02:00" ai="true" track="A01" direction="-1" units="2" stop="12"/>
    <arrive code="102" train="1023MZ" target="MLW" time="24:09:30" ai="true" track="A01" direction="-1" units="2" stop="9"/>
    <arrive code="103" train="1033MZ" target="MLW" time="24:17:00" ai="true" track="A01" direction="-1" units="2" stop="6"/>
    <arrive code="104" train="1043MZ" target="MLW" time="23:24:30" ai="true" track="A01" direction="-1" units="2" stop="3"/>
    <arrive code="105" train="1053MZ" target="MLW" time="23:32:00" ai="true" track="A02" direction="-1" units="2" stop="12"/>
    <arrive code="106" train="1063MZ" target="MLW" time="24:39:30" ai="true" track="A02" direction="-1" units="2" stop="9"/>
    <arrive code="107" train="1073MZ" target="MLW" time="24:47:00" ai="true" track="A02" direction="-1" units="2" stop="6"/>
    <arrive code="108" train="1083MZ" target="MLW" time="24:54:30" ai="true" track="A02" direction="-1" units="2" stop="3"/>
   </shedule>
  </yard>
There are 2 errors here :
- First, you open a "Yard" block, and close it two times.
Because of this the game is lost and don't know what to do with the part after the first </yard> and before the second <yard ........>.

- Then, every "shedule" part must refer to a part of the day. Here we have :
<shedule name="AS" time="15:00:00" autodepartures="15:45:00" autoarrivals="18:15:00">

<depart code="411" train="4113MP" target="MLW" time="05:33:00" ai="true" track="A10" direction="1" units="3" stop="3"/>
[All other trains going in or out of this depot for this part of day]
<depart code="306" train="3062MR" target="MLW" time="06:14:30" ai="true" track="A08" direction="1" units="2" signnumber="36"/>

</shedule>
As this part refer to the morning service opening, time; autodepartures and autoarrivals should happen before the first train departure or arrival.
So, after correcting the entire first "yard" block, it comes to something like :
<yard pack="Rijndam2022" file="DM.cty" departures="auto" arrivals="auto">
<shedule name="Morning(It can be whatever name you like but it's probably clearer that "AS")" time="04:56:00" autodepartures="04:56:01" autoarrivals="04:56:01">
<depart code="411" train="4113MP" target="MLW" time="05:33:00" ai="true" track="A10" direction="1" units="3" stop="3"/>

<depart code="101" train="1012MB" target="MLW" time="04:57:00" ai="true" track="A01" direction="1" units="2" signnumber="01"/>
<depart code="103" train="1032MB" target="MLW" time="05:12:00" ai="true" track="A01" direction="1" units="2" signnumber="03"/>
<depart code="105" train="1052MB" target="MLW" time="05:27:00" ai="true" track="A01" direction="1" units="2" signnumber="05"/>
<depart code="107" train="1072MB" target="MLW" time="05:42:00" ai="true" track="A01" direction="1" units="2" signnumber="07"/>
<depart code="102" train="1022MB" target="MLW" time="06:05:30" ai="true" track="A02" direction="1" units="2" signnumber="02"/>
<depart code="104" train="1042MB" target="MLW" time="06:20:30" ai="true" track="A02" direction="1" units="2" signnumber="04"/>
<depart code="106" train="1062MB" target="MLW" time="06:35:30" ai="true" track="A02" direction="1" units="2" signnumber="06"/>
<depart code="108" train="1082MB" target="MLW" time="06:50:30" ai="true" track="A02" direction="1" units="2" signnumber="08"/>

<depart code="111" train="1113MP" target="MLW" time="06:30:00" ai="true" track="A04" direction="1" units="3" signnumber="11"/>
<depart code="112" train="1123MP" target="MLW" time="06:37:00" ai="true" track="A04" direction="1" units="3" signnumber="12"/>
<depart code="113" train="1133MP" target="MLW" time="06:45:00" ai="true" track="A05" direction="1" units="3" signnumber="13"/>
<depart code="114" train="1143MP" target="MLW" time="06:52:00" ai="true" track="A05" direction="1" units="3" signnumber="14"/>

<depart code="301" train="3013MR" target="MLW" time="05:37:00" ai="true" track="A06" direction="1" units="3" signnumber="31"/>
<depart code="302" train="3022MR" target="MLW" time="05:44:30" ai="true" track="A06" direction="1" units="2" signnumber="32"/>
<depart code="303" train="3033MR" target="MLW" time="05:52:00" ai="true" track="A06" direction="1" units="3" signnumber="33"/>
<depart code="304" train="3042MR" target="MLW" time="05:59:30" ai="true" track="A08" direction="1" units="2" signnumber="34"/>
<depart code="305" train="3052MR" target="MLW" time="06:07:00" ai="true" track="A08" direction="1" units="2" signnumber="35"/>
<depart code="306" train="3062MR" target="MLW" time="06:14:30" ai="true" track="A08" direction="1" units="2" signnumber="36"/>
</shedule>
</yard>(Deleting this one as the next shedule is for the same yard)

<shedule name="AS" time="20:00:00" autodepartures="20:00:01" autoarrivals="20:00:01">
<arrive code="411" train="4113MZ" target="MLW" time="20:47:00" ai="true" track="A10" direction="-1" units="3" stop="3"/>
<arrive code="101" train="1013MZ" target="MLW" time="24:02:00" ai="true" track="A01" direction="-1" units="2" stop="12"/>
<arrive code="102" train="1023MZ" target="MLW" time="24:09:30" ai="true" track="A01" direction="-1" units="2" stop="9"/>
<arrive code="103" train="1033MZ" target="MLW" time="24:17:00" ai="true" track="A01" direction="-1" units="2" stop="6"/>
<arrive code="104" train="1043MZ" target="MLW" time="23:24:30" ai="true" track="A01" direction="-1" units="2" stop="3"/>
<arrive code="105" train="1053MZ" target="MLW" time="23:32:00" ai="true" track="A02" direction="-1" units="2" stop="12"/>
<arrive code="106" train="1063MZ" target="MLW" time="24:39:30" ai="true" track="A02" direction="-1" units="2" stop="9"/>
<arrive code="107" train="1073MZ" target="MLW" time="24:47:00" ai="true" track="A02" direction="-1" units="2" stop="6"/>
<arrive code="108" train="1083MZ" target="MLW" time="24:54:30" ai="true" track="A02" direction="-1" units="2" stop="3"/>
</shedule>
</yard>
I swiftly corrected your file, the game open it good, I didn't checked anything else.

If anyone spot something I did wrong, feel free to tell me ;)

Hope that helps :)

-H
Attachments
M1 7-8 - Kopie (corrected).zip
(13.24 KiB) Downloaded 179 times
PetttRocket
Posts: 346
Joined: 01 Jan 2020, 21:48

Re: Problems with making Activitys

Post by PetttRocket »

Thank you.
I was so lost.
Hi
Post Reply