Upcoming Games


Full list
Add a game

Activity codes

You are here: Home > Forum > General > Timetabling > Activity codes

Page 1 of 1

Activity codes 21/01/2020 at 18:00 #122970
postal
Avatar
4000 posts
The SimSig wtt file is basically a zip file containing two XML files, SavedTimetable.xml and TimetableHeader.xml. The SavedTimetable file contains all of the data used in the timetable in XML format. Each train timetable is held as a block of data within the XML file. Included in this block are any actions like divides or joins. These show in the XML as <Activity>n</Activity> where n is a code number to identify which action is to take place.

Does anyone have a cross-reference of the code numbers and activities to save me some hard labour in working out which code refers to which action. I am asking because I want to search for specific actions within the XML file?

"No question is too stupid, there are just some stupid answers" - Dr. Michael Reece, 12/08/1927 - 03/06/2019. Electrical engineer and inventor
Last edited: 21/01/2020 at 18:03 by postal
Reason: None given

Log in to reply
Activity codes 21/01/2020 at 18:15 #122971
GeoffM
Avatar
4727 posts
Online
TTimetableActivityKind = (takNext, takDividesRear, takDividesFront, takJoins,
takDetachesRear, takDetachesFront, takDropsRear, takDropsFront,
takJoins2, takPlatformShare, takCrewChange);
takNext is zero, takDividesRear is 1, etc up to 10 for crew change, if I've counted correctly.

SimSig Boss
Log in to reply
The following users said thank you: postal, Lyn-Greenwood
Activity codes 23/01/2020 at 15:28 #122993
Lyn-Greenwood
Avatar
180 posts
GeoffM in post 122971 said:
TTimetableActivityKind = (takNext, takDividesRear, takDividesFront, takJoins,
takDetachesRear, takDetachesFront, takDropsRear, takDropsFront,
takJoins2, takPlatformShare, takCrewChange);
takNext is zero, takDividesRear is 1, etc up to 10 for crew change, if I've counted correctly.
Does 'takDetachesRear' mean 'Detach Loco (new Rear)'? Also, what is 'takJoins2'?

Log in to reply
Activity codes 23/01/2020 at 15:57 #122994
bfcmik
Avatar
82 posts
Lyn-Greenwood in post 122993 said:
GeoffM in post 122971 said:
TTimetableActivityKind = (takNext, takDividesRear, takDividesFront, takJoins,
takDetachesRear, takDetachesFront, takDropsRear, takDropsFront,
takJoins2, takPlatformShare, takCrewChange);
takNext is zero, takDividesRear is 1, etc up to 10 for crew change, if I've counted correctly.
Does 'takDetachesRear' mean 'Detach Loco (new Rear)'? Also, what is 'takJoins2'?
It means detach whatever train is described in the timetable. Usually a loco but it could be a set of coaches, a DMU or a even a parcel van or three in the historic timetables

Log in to reply
Activity codes 23/01/2020 at 16:35 #122995
headshot119
Avatar
3398 posts
Online
Lyn-Greenwood in post 122993 said:
GeoffM in post 122971 said:
TTimetableActivityKind = (takNext, takDividesRear, takDividesFront, takJoins,
takDetachesRear, takDetachesFront, takDropsRear, takDropsFront,
takJoins2, takPlatformShare, takCrewChange);
takNext is zero, takDividesRear is 1, etc up to 10 for crew change, if I've counted correctly.
Does 'takDetachesRear' mean 'Detach Loco (new Rear)'? Also, what is 'takJoins2'?
takDetachesRear = Detach engine (new rear)
takJoins2 = Isn't used for anything

I've documented the actual number usage on the wiki here.

"CHECK Do you stop at Capenhurst?" - Opinions are my own and not those of my employer
Log in to reply
The following user said thank you: postal
Activity codes 23/01/2020 at 16:39 #122996
headshot119
Avatar
3398 posts
Online
bfcmik in post 122994 said:
It means detach whatever train is described in the timetable. Usually a loco but it could be a set of coaches, a DMU or a even a parcel van or three in the historic timetables
You wouldn't use detach engine for "a set of coaches, a DMU or a even a parcel van" as the bit of the train left that should have the loco on it won't, and your banana vans will be able to move on there own accord!

"CHECK Do you stop at Capenhurst?" - Opinions are my own and not those of my employer
Log in to reply
Activity codes 23/01/2020 at 16:50 #122997
GeoffM
Avatar
4727 posts
Online
headshot119 in post 122995 said:
Lyn-Greenwood in post 122993 said:
Also, what is 'takJoins2'?
takJoins2 = Isn't used for anything
Yes, only used internally; not relevant for timetablers.

SimSig Boss
Log in to reply
Activity codes 23/01/2020 at 16:51 #122999
clive
Avatar
2014 posts
Online
Divide: both halfs are trains with traction.
Drops: the new train is unpowered ("drops coaches/wagons")
Detaches: this train becomes unpowered ("loco detaches")

From memory, takJoins2 was an idea that didn't work.

Log in to reply
Activity codes 24/01/2020 at 13:44 #123016
bfcmik
Avatar
82 posts
headshot119 in post 122996 said:
bfcmik in post 122994 said:
It means detach whatever train is described in the timetable. Usually a loco but it could be a set of coaches, a DMU or a even a parcel van or three in the historic timetables
You wouldn't use detach engine for "a set of coaches, a DMU or a even a parcel van" as the bit of the train left that should have the loco on it won't, and your banana vans will be able to move on there own accord!
It isn't detach engine - it is detach whatever is at the rear. Example being that a train pulls into a platform with mail coaches at the back. Detach rear allows those coaches to be detached whilst the main train remains powered and proceeds on it's merry way. A station pilot then gets attached to the remainder and moves them wherever they are scheduled.

Log in to reply
Activity codes 24/01/2020 at 14:05 #123019
Dick
Avatar
248 posts
I'm not a timetable writer but you appear to have failed to notice the subtle difference between 'detach' and 'drop'.
Log in to reply
The following user said thank you: bfcmik