The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Patches/pull requests for consideration => Topic started by: Ranran on August 21, 2021, 01:26:50 AM

Title: Display the signal reservation block on the route bar
Post by: Ranran on August 21, 2021, 01:26:50 AM
Hello train lovers. (´・ω・`)

Here is Ranran's playful experimental patch.
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/routebar-kai


This patch colors the reserved signal section behind the route bar in the convoy info dialog.
You can keep track of how much of the distance is reserved for the train to reach the next station. If there is no reservation indication, the train may be stopped by a signal or running in a dangerous condition without blockage. On the other hand, if the reserved section is shown, the train will at least run safely through that section. This may slightly help the Japanese yutori-guy who is complaining that the Extended signal system is too difficult. You may also be able to learn about anomalies related to the reservation from the convoy info dialog without displaying the signal reservation section by pressing the key.
However very unfortunately, the signal reservation section display in the main view is red, and red display does not match such a bar. (´・ω・`)
This is because in railroad operations, red is the color that indicates the occurrence of an abnormal situation, which means that the train must stop. For this reason, the naked general was often berated when he walked along the tracks with his trademark red umbrella.
Thus I could not find an answer in terms of consistency.

I came up with an idea to color code this based on the signal working method, but still had no idea about a good color coding. And the project was stucked.

I'd like to hear your thoughts on this patch. Thank you.
Title: Re: Display the signal reservation block on the route bar
Post by: Sirius on August 21, 2021, 10:13:16 AM
I cannot run this at the moment and I am not sure if I understand the purpose correctly.
Could you show a little image to demonstrate?
Title: Re: Display the signal reservation block on the route bar
Post by: jamespetts on August 23, 2021, 09:34:21 PM
Thank you for this. Before testing this, can I confirm which specific dialogue I should be looking at - is this the convoy information dialogue or something else? As Freahk says, a screenshot would be helpful.
Thank you again.
Title: Re: Display the signal reservation block on the route bar
Post by: Ranran on August 23, 2021, 10:30:41 PM
The display of the signal reserved section on the route bar is like this.
(https://i.imgur.com/xWLptv2.png)
If we want to use a common color with the main view, it will be red...
I racked my brains over this.
Title: Re: Display the signal reservation block on the route bar
Post by: jamespetts on August 28, 2021, 10:11:13 PM
That is very interesting, thank you. In my tests, the reservation was always shown as blue; is that intended?

I should be interested in others' views on this, but may I suggest white? This is commonly used in modern UK signalling practice to signify a reserved route as in this example from "Simsig", a highly realistic railway signalling simulation:

(https://live.staticflickr.com/8207/8187303980_458d3a2027_c.jpg) (https://flic.kr/p/dtu5es)SimSig - Fun at Fairwater (https://flic.kr/p/dtu5es) by Tim Squires (https://www.flickr.com/photos/transporttim/), on Flickr

Here is a photograph of a real life IECC (Integrated Electronic Control Centre), showing the same UI:

(https://live.staticflickr.com/860/42804299395_ee44fb93d4_b.jpg) (https://flic.kr/p/28dtdVZ)York IECC (https://flic.kr/p/28dtdVZ) by Bill Wright (https://www.flickr.com/photos/barkingbill/), on Flickr

This dates from when track circuits being active (showing a train in section) were indicated on old hardware panels with rows of white lights:

(https://live.staticflickr.com/1676/24690184225_73cd05315a_b.jpg) (https://flic.kr/p/DBMDzt)Hunts Cross 4 (https://flic.kr/p/DBMDzt) by John Illingworth (https://www.flickr.com/photos/43709405@N07/), on Flickr
Title: Re: Display the signal reservation block on the route bar
Post by: Ranran on August 29, 2021, 10:44:52 AM
Quotethe reservation was always shown as blue; is that intended?
I'm sorry, the patch was made two months ago and I forgot some things, so I didn't explain myself well.

I checked the code again, and it is experimentally color-coded according to the working method as follows


time_intervaldark yellow
time_interval_with_telegraphyellow
absolute_blockorange
token_blockblue
track_circuit_blockbright blue
cab_signallingceleste blue
moving_blockpink
one_train_staffbrown
other(default)dark red

Please note that this is an experimental attempt.

QuoteI should be interested in others' views on this, but may I suggest white?
Monitoring screens like the one you introduced are also common in Japan.
However, I am skeptical about whether white is appropriate for simutrans, which often have light backgrounds as opposed to black backgrounds.
(https://i.imgur.com/cZU5SqJ.png)

If we proceed with this plan, we may need to take some measures.
For example,
(1) Make the reservation color configurable in the theme.
(2) Modify the design of the route bar slightly to add a frame.
(https://i.imgur.com/0UYOrev.png)
Title: Re: Display the signal reservation block on the route bar
Post by: Sirius on August 29, 2021, 11:34:21 AM
Those colors are locale specific.
The color scheme in simutrans should rather aim for presenting the simutrans relevant information instead of sticking to real-world signaling centers of a specific country.

(https://www.estw-simulator.de/not/not_l1.gif)

Edit: theme specific colors might be a good idea.