Upcoming Games

No games to display

Full list
Add a game

Upcoming Events

No events to display

Loader XML TT Format

You are here: Home > Forum > General > Timetabling > Loader XML TT Format

Page 1 of 1

Loader XML TT Format 12/12/2014 at 09:29 #66506
Danny252
Avatar
1461 posts
Would it be possible to get a listing of valid XML tags and attributes for the loader Timetable format, and (if someone's feeling generous!) the effect they have? The majority are quite self explanatory (a lovely feature of XML), but there's a lot of features which would require some pretty exhaustive clicking of every option to force the tags to be created.

Also, a couple of queries, after poking around last night:

Some trains, but not all, have entries relating to Up/Down direction at locations. Are these entries important, or can they be ignored?

The TT for each train duplicates the Train Category settings (Max Speed and so on) - is it required that these are copied across, despite the reference to the relevant Train Category ID within each TT?

Last edited: 12/12/2014 at 09:31 by Danny252
Log in to reply
Loader XML TT Format 12/12/2014 at 12:03 #66510
Finger
Avatar
220 posts
Disclaimer: I do not know the official spec of the XML schema. Only been poking as you did.

Quote:
Some trains, but not all, have entries relating to Up/Down direction at locations. Are these entries important, or can they be ignored?
Can be ignored.

Quote:
The TT for each train duplicates the Train Category settings (Max Speed and so on) - is it required that these are copied across, despite the reference to the relevant Train Category ID within each TT?
Not 100% sure, but IMHO yes (what's easier than checking by deleting them in an existing timetable?). Actually I think the sim never uses the train category entries (when running), it's just an aid for timetable writers.

Quote:
there's a lot of features which would require some pretty exhaustive clicking of every option to force the tags to be created.
Not really.

Log in to reply
Loader XML TT Format 12/12/2014 at 20:51 #66548
MikeW
Avatar
65 posts
Personally, I'd rather welcome some documentation on the representation of stored delays. I've been trying to write myself a timetable cleaner using FreeBasic and it's become apparent that it's not as simple a matter as just deleting lines with a <Delay> tag in them.

On that topic, is there any chance of the 'clean' function already available to developer users being released to us lesser mortals?!

Mike

Log in to reply
Loader XML TT Format 12/12/2014 at 21:23 #66551
postal
Avatar
5189 posts
" said:
Personally, I'd rather welcome some documentation on the representation of stored delays. I've been trying to write myself a timetable cleaner using FreeBasic and it's become apparent that it's not as simple a matter as just deleting lines with a <Delay> tag in them.

On that topic, is there any chance of the 'clean' function already available to developer users being released to us lesser mortals?!

Mike
If I have understood correctly, the latest version of the loader now resets the TT to Day Zero when loading and then adds in any delays as appropriate to the level of difficulty selected (i.e. even if there are any delays embedded in the TT from a previous run, these are discounted when the TT is re-loaded and a new set entered if required). Removes the need for the "clean" function.

If I've got that right, you should get a clean TT if you load up using the Perfect scenario or as near to it as the sim offers and then immediately save the TT.

However, it's all a bit technical for me (Geoff needed a hammer and chisel to get the message through to my limited thinking resources) so I could have misunderstood.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Last edited: 12/12/2014 at 21:23 by postal
Reason: spelling

Log in to reply
Loader XML TT Format 12/12/2014 at 22:00 #66555
GeoffM
Avatar
6274 posts
Some of the things saved in a timetable aren't necessary for just a timetable but this same data gets embedded in a saved game. As people have already said, delay, up/down direction, and the contents of the train category aren't required (but do no harm either). Cleaning is not required as the delays are reset.

Will get a schema up at some point but it needs explanation, not just pasting it up here.

SimSig Boss
Log in to reply
Loader XML TT Format 13/12/2014 at 12:36 #66591
Danny252
Avatar
1461 posts
" said:
Some of the things saved in a timetable aren't necessary for just a timetable but this same data gets embedded in a saved game.
Ah, that explains a few things - thanks for that.

Log in to reply
Loader XML TT Format 19/12/2014 at 23:08 #66855
peterb
Avatar
451 posts
Since my old thread has been dug up, would it be possible please to get a response to this delay-related issue, specifically why in clean developer modes trains still repeatedly enter one minute late (not sim specific)

Thanks.

Log in to reply
Loader XML TT Format 20/12/2014 at 08:55 #66856
Peter Bennet
Avatar
5354 posts
" said:
Since my old thread has been dug up, would it be possible please to get a response to this delay-related issue, specifically why in clean developer modes trains still repeatedly enter one minute late (not sim specific)

Thanks.
That's something I've noticed when testing Sims I'm building. Start a Sim paused and write a timetable with entry time 00.00 then unpause - the train will enter late with DLY=1. If you save an reload the Timetable says no delay initially but then the train is delayed and DLY=1 appears in the box. I've taken it to be an issue with 00.00 and a mild irritant but not explored it any further than that.

Just retried with the entry time set as 00.00H and the train entered just after 00.01, so around 1/2 a minute late and nothing recorded in the DLY box.

If I timetable the train to enter at 00.01 it enters at 00.01. but if I start the Sim at 00.00.30 the 00.01 train enters around 00.01.30 but with no DLY shown.

Prima-facie it looks like it does not like trains that enter within the first minute after launch.

I'll report it on the bug board and see what transpires. (12191)

Peter

I identify as half man half biscuit - crumbs!
Last edited: 20/12/2014 at 09:14 by Peter Bennet
Log in to reply
Loader XML TT Format 26/12/2014 at 01:19 #67040
Danny252
Avatar
1461 posts
" said:
the contents of the train category aren't required (but do no harm either).
It appears that this is actually required - if I don't copy over the (non-default) values, the sim assumes a train of zero length and zero max speed, which leads to some intriguing errors! It appears that the train category ID is only used to read the name of the train category, leading to the train category page showing the correct name but a default set of values.

Last edited: 26/12/2014 at 01:20 by Danny252
Log in to reply
Loader XML TT Format 26/12/2014 at 15:41 #67059
Finger
Avatar
220 posts
" said:
" said:
the contents of the train category aren't required (but do no harm either).
It appears that this is actually required - if I don't copy over the (non-default) values, the sim assumes a train of zero length and zero max speed, which leads to some intriguing errors! It appears that the train category ID is only used to read the name of the train category, leading to the train category page showing the correct name but a default set of values.

There must have been a misunderstanding - this is exactly what I (and I'm sure Geoff too) meant. To clarify,
[table]
[tr]
[td]//Timetable/MaxSpeed and others[/td]
[td]is used by the sim, if not present, 0/empty is used[/td]
[/tr]
[tr]
[td]//Timetable/Category[/td]
[td]isn't used in game, irrelevant[/td]
[/tr]
[tr]
[td]//TrainCategory/*[/td]
[td]isn't used in game, irrelevant[/td]
[/tr]
[/table]

Log in to reply