Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

Live Departure Boards (SimSig)

You are here: Home > Forum > Customising SimSig > Interface Gateway > Live Departure Boards (SimSig)

Page 3 of 3

Live Departure Boards (SimSig) 23/01/2022 at 12:56 #143778
jonathanp
Avatar
10 posts
Release v.0.2.0 - User Interface Update/TIPLOC Translation

I have released a new version which replaces the command line interface with a standard graphical one. Where possible, the 7 digit location codes are now translated into a name. There are various other visual changes based on feedback from this thread.

Download is here.
Please note that the entire zip file must be extracted before running it - you cannot run the Application directly from the zip file.

---

The codes previously used on the Location List came from the WTT Timing Points and are only in TIPLOC form. However, with the use of Network Rail data around 90% can be translated into a full name. Some, as mentioned by Geoff, exist only in SimSig so cannot be translated.
Unsurprisingly given that this data is presumably extracted from the punched card-era TOPS system, just like the punched cards it is ALL UPPERCASE and my program has to guess at the capitalisation, hence why some look slightly odd.

Timetables with a TIPLOC Origin and Destination for every train seem to be quite rare, but "Carlisle GH Day" is one, in this case these are also all translated where possible.

If anyone wants to add SimSig-specific codes to the translation table I can provide instructions on how to do so.

GeoffM in post 143671 said:
No promises but if you need something else through the Gateway directly, post it here and we'll see if it can be done.
Thanks! I don't know if it's a really a good idea since the timetable can be modified during play, but for this programme it would be useful if the path to the timetable loaded at startup could be retrieved. A way to request a snapshot dump of current delay and last passed timing point of all trains in the simulation would be helpful too.

It's far from an essential part of the data provided by the Gateway, but it seems like the platform in train_location messages is not always correct. For instance, in the Peterborough "Peterborough 2009-10-15 SX" timetable, 1P37 is reported as using Platform 1 even through it is in Platform 3. I'm also pretty sure I saw a report of a departure from Preston Park Platform 6 at some point!

Last edited: 23/01/2022 at 12:57 by jonathanp
Reason: None given

Log in to reply
The following users said thank you: tjtbcork, headshot119, ElectrostarJudge
Live Departure Boards (SimSig) 25/01/2022 at 16:52 #143814
i26
Avatar
306 posts
jonathanp in post 143778 said:
Release v.0.2.0 - User Interface Update/TIPLOC Translation

I have released a new version which replaces the command line interface with a standard graphical one. Where possible, the 7 digit location codes are now translated into a name. There are various other visual changes based on feedback from this thread.

Download is here.
Please note that the entire zip file must be extracted before running it - you cannot run the Application directly from the zip file.

---

The codes previously used on the Location List came from the WTT Timing Points and are only in TIPLOC form. However, with the use of Network Rail data around 90% can be translated into a full name. Some, as mentioned by Geoff, exist only in SimSig so cannot be translated.
Unsurprisingly given that this data is presumably extracted from the punched card-era TOPS system, just like the punched cards it is ALL UPPERCASE and my program has to guess at the capitalisation, hence why some look slightly odd.

Timetables with a TIPLOC Origin and Destination for every train seem to be quite rare, but "Carlisle GH Day" is one, in this case these are also all translated where possible.

If anyone wants to add SimSig-specific codes to the translation table I can provide instructions on how to do so.

GeoffM in post 143671 said:
No promises but if you need something else through the Gateway directly, post it here and we'll see if it can be done.
Thanks! I don't know if it's a really a good idea since the timetable can be modified during play, but for this programme it would be useful if the path to the timetable loaded at startup could be retrieved. A way to request a snapshot dump of current delay and last passed timing point of all trains in the simulation would be helpful too.

It's far from an essential part of the data provided by the Gateway, but it seems like the platform in train_location messages is not always correct. For instance, in the Peterborough "Peterborough 2009-10-15 SX" timetable, 1P37 is reported as using Platform 1 even through it is in Platform 3. I'm also pretty sure I saw a report of a departure from Preston Park Platform 6 at some point!
Loving the update. Is it possible for a train to show delayed if it doesn't enter the sim on time? Also is it possible that if we select the train to pass in the timetable that it can show as cancelled?


Log in to reply
Live Departure Boards (SimSig) 25/01/2022 at 22:52 #143818
Albert
Avatar
1313 posts
jonathanp in post 143778 said:

Thanks! I don't know if it's a really a good idea since the timetable can be modified during play, but for this programme it would be useful if the path to the timetable loaded at startup could be retrieved. A way to request a snapshot dump of current delay and last passed timing point of all trains in the simulation would be helpful too.

As gateway ports can be forwarded just like the ports for multiplayer games, they can potentially be accessed from across the internet. This means that you need to be careful passing 'internal' information from the host system for security reasons. Hence I'm not sure passing full paths is a good idea (they wouldn't even work if the client runs on a different computer); it might be better to use file names and then look for that file in the SimSig timetables folder on the client system.

AJP in games
Log in to reply
Live Departure Boards (SimSig) 27/01/2022 at 12:30 #143838
pavittl
Avatar
34 posts
HI guys this is great and adds some realness to the Sim... Just one question.... Im reloading a game that i have previously saved but it doesnt seem to want to work. any ideas?
Log in to reply
Live Departure Boards (SimSig) 27/01/2022 at 18:20 #144837
simple68
Avatar
80 posts
Albert in post 143818 said:
jonathanp in post 143778 said:

Thanks! I don't know if it's a really a good idea since the timetable can be modified during play, but for this programme it would be useful if the path to the timetable loaded at startup could be retrieved. A way to request a snapshot dump of current delay and last passed timing point of all trains in the simulation would be helpful too.

As gateway ports can be forwarded just like the ports for multiplayer games, they can potentially be accessed from across the internet. This means that you need to be careful passing 'internal' information from the host system for security reasons. Hence I'm not sure passing full paths is a good idea (they wouldn't even work if the client runs on a different computer); it might be better to use file names and then look for that file in the SimSig timetables folder on the client system.
There is no need to do this. if the host runs the departure board.exe. and opens port 8090 on their router the clients can open a web page and type the Hosts ip address xyz.xyz.xyz.xyz:8090 that will take you to the Station select page for the sim running departure board. DO NOT TYPE THE ADDRESS IN GOOGLE, IT MUST GO IN THE ADDRESS BAR AT THE TOP OF THE WEB PAGE. I will be doing it on Sunday for the Yorkshire chain

Si
PS This is a fantastic addition, well done Jonathanp.

Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 14:03 #144865
Trainmad091
Avatar
89 posts
Thanks for this amazing feature - I've just done a little test on Kings Cross, if a train has not moved for more than 5 minutes it comes up showing it as cancelled. And then when it moves off past next reporting location it stays as cancelled until it arrives into Kings Cross where it just drops off the board.

Also if you do a platform alteration and bring a train into a different platform - the inward pick up as an alteration but it doesn't do anything to its next working on the departure board.

Likewise if you did a set swap, swapping two trains to run as the other one, it doesn't pick that up as an alteration and just drops off the board when departed

Thanks again,
Kyle

Log in to reply
The following user said thank you: jonathanp
Live Departure Boards (SimSig) 28/01/2022 at 16:33 #144866
ajax103
Avatar
1104 posts
Now the tool has a graphical interface, it's more user friendly and I can actually get it to work fully with the payware sims, I also see that the clock has been fixed but one tiny comment and I'm not sure if it's possible but the actual SimSig clock in the sims shows hours:minutes:seconds - can the tool do the same please?
Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 18:07 #144872
jonathanp
Avatar
10 posts
i26 in post 143814 said:

Loving the update. Is it possible for a train to show delayed if it doesn't enter the sim on time? Also is it possible that if we select the train to pass in the timetable that it can show as cancelled?
Thanks!
Neither of those are trivial, unfortunately. The tool relies on the train running reports from SimSig, and as far as I know if the train isn't in the sim area there are no reports. Information on the timetable comes only from the timetable file, there's no way to find out about changes made within the simulation.

Quote:
Im reloading a game that i have previously saved but it doesnt seem to want to work. any ideas?
It's hard to react to a report without any information about which step doesn't work, but bear in mind:
a) Load the timetable into the Departure Board tool, not the saved game.
b) You still need to enable the Interface Gateway
c) The tool only sees what has happenned in the current simulation session, not the state from the saved game

Quote:

Thanks for this amazing feature - I've just done a little test on Kings Cross, if a train has not moved for more than 5 minutes it comes up showing it as cancelled. And then when it moves off past next reporting location it stays as cancelled until it arrives into Kings Cross where it just drops off the board.
Thankyou for the detailed report. It looks like there is something wrong in the status logic - the idea was a train should never show as cancelled if it has entered the simulation.
Showing platform alterations for trains which terminate and change headcode should be possible with a bit of extra logic, but it's not feasible to detect set swaps because there is no way to access timetable changes made within the sim.

Quote:
I also see that the clock has been fixed but one tiny comment and I'm not sure if it's possible but the actual SimSig clock in the sims shows hours:minutes:seconds - can the tool do the same please?
For various reasons to do with how SimSig and the tool works, this would be a lot of work to do in a way that was accurate and I do not plan on it. For one thing, the sim does not share what the current speed setting is.

Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 18:17 #144873
Dionysusnu
Avatar
575 posts
jonathanp in post 144872 said:
i26 in post 143814 said:

Loving the update. Is it possible for a train to show delayed if it doesn't enter the sim on time? Also is it possible that if we select the train to pass in the timetable that it can show as cancelled?
Thanks!
Neither of those are trivial, unfortunately. The tool relies on the train running reports from SimSig, and as far as I know if the train isn't in the sim area there are no reports. Information on the timetable comes only from the timetable file, there's no way to find out about changes made within the simulation.
Couldn't you check the timetable file for the planned entry time of the train, and if it's past that, show the train as delayed by that amount? Granted, it wouldn't work if the train has been intentionally made to enter later, or has a high dwell time en-route before the station, but that could be seen as true to real life.

Last edited: 28/01/2022 at 18:17 by Dionysusnu
Reason: None given

Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 18:50 #144874
jonathanp
Avatar
10 posts
Here's a quick update to try and prevent overzealous cancellation:
SimSig Departure Board v0.2.1

If it makes things worse, please go back to the previous version :)

Quote:
Couldn't you check the timetable file for the planned entry time of the train, and if it's past that, show the train as delayed by that amount? Granted, it wouldn't work if the train has been intentionally made to enter later, or has a high dwell time en-route before the station, but that could be seen as true to real life.
That's a nice idea. My original vision was just to display exactly what SimSig reports in terms of train running. Certainly it would be possible, as they do in real life to add logic to make an educated guess of the actual delay, but I don't want to make it too complicated.

Last edited: 28/01/2022 at 18:59 by jonathanp
Reason: None given

Log in to reply
The following user said thank you: CarrotPie
Live Departure Boards (SimSig) 28/01/2022 at 19:35 #144875
postal
Avatar
5190 posts
jonathanp in post 144874 said:
Here's a quick update to try and prevent overzealous cancellation:
SimSig Departure Board v0.2.1

If it makes things worse, please go back to the previous version :)

Quote:
Couldn't you check the timetable file for the planned entry time of the train, and if it's past that, show the train as delayed by that amount? Granted, it wouldn't work if the train has been intentionally made to enter later, or has a high dwell time en-route before the station, but that could be seen as true to real life.
That's a nice idea. My original vision was just to display exactly what SimSig reports in terms of train running. Certainly it would be possible, as they do in real life to add logic to make an educated guess of the actual delay, but I don't want to make it too complicated.
There is a "Delay" box on the front tab of the train's TT showing the delay before entry randomly added by the core code. Can you read through from that?

“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
Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 19:52 #144876
Steamer
Avatar
3920 posts
postal in post 144875 said:
jonathanp in post 144874 said:
Here's a quick update to try and prevent overzealous cancellation:
SimSig Departure Board v0.2.1

If it makes things worse, please go back to the previous version :)

Quote:
Couldn't you check the timetable file for the planned entry time of the train, and if it's past that, show the train as delayed by that amount? Granted, it wouldn't work if the train has been intentionally made to enter later, or has a high dwell time en-route before the station, but that could be seen as true to real life.
That's a nice idea. My original vision was just to display exactly what SimSig reports in terms of train running. Certainly it would be possible, as they do in real life to add logic to make an educated guess of the actual delay, but I don't want to make it too complicated.
There is a "Delay" box on the front tab of the train's TT showing the delay before entry randomly added by the core code. Can you read through from that?
As the timetable is loaded into the departure board program separately, this won't work. Even if the field is saved, the delay randomisation occurs when the game is started or re-started and won't be saved back into the .WTT file.

"Don't stress/ relax/ let life roll off your backs./ Except for death and paying taxes/ everything in life.../ is only for now." (Avenue Q)
Log in to reply
The following user said thank you: postal
Live Departure Boards (SimSig) 28/01/2022 at 19:59 #144877
ajax103
Avatar
1104 posts
simple68 in post 144837 said:
Albert in post 143818 said:
jonathanp in post 143778 said:

Thanks! I don't know if it's a really a good idea since the timetable can be modified during play, but for this programme it would be useful if the path to the timetable loaded at startup could be retrieved. A way to request a snapshot dump of current delay and last passed timing point of all trains in the simulation would be helpful too.

As gateway ports can be forwarded just like the ports for multiplayer games, they can potentially be accessed from across the internet. This means that you need to be careful passing 'internal' information from the host system for security reasons. Hence I'm not sure passing full paths is a good idea (they wouldn't even work if the client runs on a different computer); it might be better to use file names and then look for that file in the SimSig timetables folder on the client system.
There is no need to do this. if the host runs the departure board.exe. and opens port 8090 on their router the clients can open a web page and type the Hosts ip address xyz.xyz.xyz.xyz:8090 that will take you to the Station select page for the sim running departure board. DO NOT TYPE THE ADDRESS IN GOOGLE, IT MUST GO IN THE ADDRESS BAR AT THE TOP OF THE WEB PAGE. I will be doing it on Sunday for the Yorkshire chain

Si
PS This is a fantastic addition, well done Jonathanp.
Umm I can't get this set up as a host neither can Waucott

Log in to reply
Live Departure Boards (SimSig) 28/01/2022 at 20:41 #144878
Jan
Avatar
889 posts
Steamer in post 144876 said:
As the timetable is loaded into the departure board program separately, this won't work. Even if the field is saved, the delay randomisation occurs when the game is started or re-started and won't be saved back into the .WTT file.

Like I mentioned further upthread, this would require some additional functionality to be added to the interface gateway.

Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply
Live Departure Boards (SimSig) 21/12/2022 at 17:01 #149492
DonRiver
Avatar
151 posts
This is phenomenal. Thanks so much!

On the Wimbledon sim, using the timetable that came with it, Wimbledon station itself is titled "South West". Is this coming from the timetable - or perhaps the sim uses the wrong TIPLOC for the station…?

(named for the one in Tasmania, not in Russia)
Log in to reply
Live Departure Boards (SimSig) 21/12/2022 at 21:53 #149498
headshot119
Avatar
4869 posts
DonRiver in post 149492 said:
This is phenomenal. Thanks so much!

On the Wimbledon sim, using the timetable that came with it, Wimbledon station itself is titled "South West". Is this coming from the timetable - or perhaps the sim uses the wrong TIPLOC for the station…?
The sim uses the correct TIPLOC, and names it Wimbledon so I'm not sure where it would be getting the "South West" from?

"Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer
Log in to reply
Live Departure Boards (SimSig) 22/12/2022 at 10:03 #149510
MrSuttonmann
Avatar
265 posts
@jonathanp, is there a GitHub repo for this, or is it closed source?
(Formerly known as manadude2)
Log in to reply
Live Departure Boards (SimSig) 27/12/2022 at 20:25 #149740
Jan
Avatar
889 posts
https://github.com/jonathanp0/go-SimSig/
Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply