Activities zijn feitelijk XML bestandjes. Je kan hierdoor gewoon online een XML script laten nakijken. Als ik hier beide scripts plak zie ik gelijk de fouten. Misschien een tip voor de volgende keer.Sjoerd wrote:Graag gedaan. Ik weet uit ervaring dat het erg irritant kan zijn als een activiteit ineens niet meer in de lijst verschijnt. Dan moet je alles weer gaan nalopen, omdat er ergens een opdrachtblok open staat zonder afsluiting. Maar tot nu toe heb ik dat altijd kunnen oplossen; ik raad aan zo vaak mogelijk te testen, en niet teveel veranderingen te doen tussen testruns door. Als je na elke paar aanpassingen de simulatie even test, dan kun je het snelst het probleem vinden als het misgaat, want dan weet je nog het beste wat je sinds de vorige test hebt veranderd.wertyton wrote:dank je wel sjoerd nu kan ik weer verder alles werkt nu hij keert bij de molens en rangeer op bpk 11 thanks
(En vergeet niet ook geregeld even backups te maken van het bestand waar je aan werkt!)
act probleem
Moderator: senjer
-
- Posts: 28
- Joined: 13 Mar 2015, 11:37
- Contact:
Re: act probleem
Re: act probleem
ik nu wel deze regel moet je toepassen
<yard pack="Custom" file="beta3b-sap.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:36:00">
<depart code="203" train="2033TA" target="SAP" time="09:36:30" ai="true" track="507" direction="-1" units="3" signnumber="50" signdest="A-ARA"/>
</shedule>
</yard>
<yard pack="Custom" file="beta3b-sap.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:36:00">
<depart code="203" train="2033TA" target="SAP" time="09:36:30" ai="true" track="507" direction="-1" units="3" signnumber="50" signdest="A-ARA"/>
</shedule>
</yard>
Re: act probleem
ik heb er een fout in zitten hier waar ik niet uit kom site check helpt niet
als iemand me kan helpen graag
<activity name="test ai" mappack="Custom" mapfile="simvliet2020.map" time="09:35:00">
<controldata system="0" pack="Simvliet2020" file="Routes.ctd">
<train code="201">
<duty code="201-2" number="201#TL" route="C-TL" time="09:40:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="10:06:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="10:32:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="10:59:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="11:25:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="11:51:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="12:17:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="12:44:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="13:10:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="13:36:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="14:02:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="14:29:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="14:55:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="15:21:45" ai="true"/>
<duty code="201-2" number="201#TU" route="C-TU" time="15:49:45" ai="true"/>
</train>
<train code="202">
<duty code="202-3" number="202#TM" route="B-TM" time="09:39:00" ai="true"/>
<duty code="202-3" number="202#MX" route="B-MX" time="10:04:00" ai="true"/>
</train>
<train code="203">
<duty code="203-2" number="203#XT" route="C-XT" time="09:39:00" ai="true"/>
<duty code="203-2" number="203#TM" route="B-TM" time="09:52:30" ai="true"/>
<duty code="203-2" number="203#MT" route="B-MT" time="10:15:30" ai="true"/>
<duty code="203-2" number="203#TA" route="A-TA" time="10:36:45" ai="true"/>
<duty code="203-2" number="203#AZ" route="X-AZ" time="11:00:00" ai="true"/>
</train>
<timetables title="Timetable">
<timetable title="Timetable Eastbound" sort="BGN">
<route>A-TX</route>
<route>A-TA</route>
<route>A-CX</route>
<route>A-CA</route>
<route>B-TX</route>
<route>B-TM</route>
<route>B-CX</route>
<route>B-CM</route>
<route>C-TX</route>
<route>C-TL</route>
<route>C-CX</route>
<route>C-CL</route>
<route>X-TX</route>
<route>X-CX</route>
<station code="SAP"/>
<station code="WTC" group="SAP"/>
<station code="UNI" group="SAP"/>
<station code="WPK" group="SAP"/>
<station code="SVC"/>
<station code="ADP" group="SVC"/>
<station code="KVL" group="SVC"/>
<station code="BGN"/>
<station code="VMT" group="BGN"/>
<station code="RSL" group="BGN"/>
<station code="SDW"/>
<station code="NPL" group="SDW"/>
<station code="VRW" group="SDW"/>
<station code="SST"/>
<station code="ARA"/>
<station code="TVD"/>
<station code="BLN"/>
<station code="RZP" group="BLN"/>
<station code="WTL" group="BLN"/>
<station code="MLS"/>
<station code="DMW"/>
<station code="EDW" group="DMW"/>
<station code="PLN" group="DMW"/>
<station code="OPK" group="DMW"/>
<station code="LEL"/>
</timetable>
<timetable title="Timetable Westbound" sort="BGN">
<route>A-AX</route>
<route>A-AC</route>
<route>A-AK</route>
<route>A-AT</route>
<route>A-XC</route>
<route>A-XK</route>
<route>A-XT</route>
<route>B-MX</route>
<route>B-MC</route>
<route>B-MK</route>
<route>B-MT</route>
<route>B-XC</route>
<route>B-XK</route>
<route>B-XT</route>
<route>C-LX</route>
<route>C-LC</route>
<route>C-LK</route>
<route>C-LT</route>
<route>C-XC</route>
<route>C-XK</route>
<route>C-XT</route>
<route>X-XC</route>
<route>X-XK</route>
<route>X-XT</route>
<station code="LEL"/>
<station code="OPK" group="LEL"/>
<station code="PLN" group="LEL"/>
<station code="EDW" group="LEL"/>
<station code="DMW" group="LEL"/>
<station code="MLS"/>
<station code="WTL" group="MLS"/>
<station code="RZP" group="MLS"/>
<station code="BLN" group="MLS"/>
<station code="TVD"/>
<station code="ARA"/>
<station code="SST"/>
<station code="VRW" group="SST"/>
<station code="NPL" group="SST"/>
<station code="SDW"/>
<station code="RSL" group="SDW"/>
<station code="VMT" group="SDW"/>
<station code="BGN"/>
<station code="KVL" group="BGN"/>
<station code="ADP" group="BGN"/>
<station code="SVC"/>
<station code="WPK" group="SVC"/>
<station code="UNI" group="SVC"/>
<station code="WTC" group="SVC"/>
<station code="SAP"/>
</timetable>
</timetables>
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
<trainnumber old="F10001" new="2012TL" timetable="201"/>
<trainnumber old="F10002" new="2023TM" timetable="202"/>
<trainnumber old="F10003" new="2032XT" timetable="203"/>
</controldata>
<consists>
<consist start="SAP3">
<train pack="RET" file="5600-2017.xml"><cab id="0" enabled="true" ai="201"/></train>
<train pack="RET" file="5600-2017.xml"/>
</consist>
<consist start="SAP2">
<train pack="RET" file="5600.xml"><cab id="0" enabled="true" ai="202"/></train>
<train pack="RET" file="5600.xml"/>
<train pack="RET" file="5600.xml"/>
</consist>
<consist start="BPK12" position="255">
<train pack="RET" file="5700.xml"/>
<train pack="RET" file="5700.xml"/>
</consist>
</consists>
</activity>
als iemand me kan helpen graag
<activity name="test ai" mappack="Custom" mapfile="simvliet2020.map" time="09:35:00">
<controldata system="0" pack="Simvliet2020" file="Routes.ctd">
<train code="201">
<duty code="201-2" number="201#TL" route="C-TL" time="09:40:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="10:06:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="10:32:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="10:59:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="11:25:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="11:51:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="12:17:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="12:44:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="13:10:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="13:36:45" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="14:02:30" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="14:29:15" ai="true"/>
<duty code="201-2" number="201#TL" route="C-TL" time="14:55:00" ai="true"/>
<duty code="201-2" number="201#LT" route="C-LT" time="15:21:45" ai="true"/>
<duty code="201-2" number="201#TU" route="C-TU" time="15:49:45" ai="true"/>
</train>
<train code="202">
<duty code="202-3" number="202#TM" route="B-TM" time="09:39:00" ai="true"/>
<duty code="202-3" number="202#MX" route="B-MX" time="10:04:00" ai="true"/>
</train>
<train code="203">
<duty code="203-2" number="203#XT" route="C-XT" time="09:39:00" ai="true"/>
<duty code="203-2" number="203#TM" route="B-TM" time="09:52:30" ai="true"/>
<duty code="203-2" number="203#MT" route="B-MT" time="10:15:30" ai="true"/>
<duty code="203-2" number="203#TA" route="A-TA" time="10:36:45" ai="true"/>
<duty code="203-2" number="203#AZ" route="X-AZ" time="11:00:00" ai="true"/>
</train>
<timetables title="Timetable">
<timetable title="Timetable Eastbound" sort="BGN">
<route>A-TX</route>
<route>A-TA</route>
<route>A-CX</route>
<route>A-CA</route>
<route>B-TX</route>
<route>B-TM</route>
<route>B-CX</route>
<route>B-CM</route>
<route>C-TX</route>
<route>C-TL</route>
<route>C-CX</route>
<route>C-CL</route>
<route>X-TX</route>
<route>X-CX</route>
<station code="SAP"/>
<station code="WTC" group="SAP"/>
<station code="UNI" group="SAP"/>
<station code="WPK" group="SAP"/>
<station code="SVC"/>
<station code="ADP" group="SVC"/>
<station code="KVL" group="SVC"/>
<station code="BGN"/>
<station code="VMT" group="BGN"/>
<station code="RSL" group="BGN"/>
<station code="SDW"/>
<station code="NPL" group="SDW"/>
<station code="VRW" group="SDW"/>
<station code="SST"/>
<station code="ARA"/>
<station code="TVD"/>
<station code="BLN"/>
<station code="RZP" group="BLN"/>
<station code="WTL" group="BLN"/>
<station code="MLS"/>
<station code="DMW"/>
<station code="EDW" group="DMW"/>
<station code="PLN" group="DMW"/>
<station code="OPK" group="DMW"/>
<station code="LEL"/>
</timetable>
<timetable title="Timetable Westbound" sort="BGN">
<route>A-AX</route>
<route>A-AC</route>
<route>A-AK</route>
<route>A-AT</route>
<route>A-XC</route>
<route>A-XK</route>
<route>A-XT</route>
<route>B-MX</route>
<route>B-MC</route>
<route>B-MK</route>
<route>B-MT</route>
<route>B-XC</route>
<route>B-XK</route>
<route>B-XT</route>
<route>C-LX</route>
<route>C-LC</route>
<route>C-LK</route>
<route>C-LT</route>
<route>C-XC</route>
<route>C-XK</route>
<route>C-XT</route>
<route>X-XC</route>
<route>X-XK</route>
<route>X-XT</route>
<station code="LEL"/>
<station code="OPK" group="LEL"/>
<station code="PLN" group="LEL"/>
<station code="EDW" group="LEL"/>
<station code="DMW" group="LEL"/>
<station code="MLS"/>
<station code="WTL" group="MLS"/>
<station code="RZP" group="MLS"/>
<station code="BLN" group="MLS"/>
<station code="TVD"/>
<station code="ARA"/>
<station code="SST"/>
<station code="VRW" group="SST"/>
<station code="NPL" group="SST"/>
<station code="SDW"/>
<station code="RSL" group="SDW"/>
<station code="VMT" group="SDW"/>
<station code="BGN"/>
<station code="KVL" group="BGN"/>
<station code="ADP" group="BGN"/>
<station code="SVC"/>
<station code="WPK" group="SVC"/>
<station code="UNI" group="SVC"/>
<station code="WTC" group="SVC"/>
<station code="SAP"/>
</timetable>
</timetables>
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
<trainnumber old="F10001" new="2012TL" timetable="201"/>
<trainnumber old="F10002" new="2023TM" timetable="202"/>
<trainnumber old="F10003" new="2032XT" timetable="203"/>
</controldata>
<consists>
<consist start="SAP3">
<train pack="RET" file="5600-2017.xml"><cab id="0" enabled="true" ai="201"/></train>
<train pack="RET" file="5600-2017.xml"/>
</consist>
<consist start="SAP2">
<train pack="RET" file="5600.xml"><cab id="0" enabled="true" ai="202"/></train>
<train pack="RET" file="5600.xml"/>
<train pack="RET" file="5600.xml"/>
</consist>
<consist start="BPK12" position="255">
<train pack="RET" file="5700.xml"/>
<train pack="RET" file="5700.xml"/>
</consist>
</consists>
</activity>
Re: act probleem
Kun je het probleem wat meer omschrijven? Wat gebeurd er niet wat je wel wilt dat er gebeurd?
CEO of the Rijndam Electrical Transport company
Re: act probleem
met dit komt tie niet in de aktivity lijst te staan
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
maar met dit wel
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:38:00" autodepartures="09:50:00" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
</yard>
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
maar met dit wel
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:38:00" autodepartures="09:50:00" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
</shedule>
</yard>
Re: act probleem
Ik heb (nog) niet veel ervaring met de codes voor in- en uitrukken bij de depots, maar ik zie wel een foutje in de codering; in de code die niet werkt gebruik je twee keer de afsluitregel </shedule>, terwijl je maar één keer een shedule gestart bent.
Probeer het zo eens;
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
Probeer het zo eens;
<yard pack="Custom" file="beta3b-bpk.cty" departures="auto" arrivals="auto">
<shedule name="test ai" time="09:35:00" autodepartures="09:35:30" autoarrivals="10:10:00">
<arrive code="202" train="2023MX" target="BPK41" time="10:17:00" ai="true" track="BPK11" direction="-1" units="3" stop="6"/>
<depart code="203" train="2032XT" target="BPK41" time="09:36:00" ai="true" track="BPK12" direction="1" units="2" signnumber="48" signdest="c-sap"/>
</shedule>
</yard>
CEO of the Rijndam Electrical Transport company
Re: act probleem
thanks sjoerd hij werkt nu weer dus nu kan ik deze regels gewoon toepassen in me activity