Workers & Resources: Soviet Republic

Workers & Resources: Soviet Republic

View Stats:
Introduce a check before spawning trains
Sometimes, when trains are spawned by endstations, customs, RCOs, they end up blocking a train that is jsut approaching on the same track.
This problem could be reduced to an minimum by applying a simple check that is already in the game:
Wait with the spawning when a chain signal in the position where the vehicle is to spawn would stop it from moving in the direction the vehicle is about to go.

(This problem often arises when a train engine is ordered for a Depot and happens to spawn in a customs that has only one track and is currently approached by another train. IT results in both trains facing off at the last signal before the station/RCO. and blocking each other)
< >
Showing 1-15 of 20 comments
Could you show your signalling/rail setup when/where this happens?
I don't think I've ever run into that issue myself.
I can start a map build it and provoke it, sure...
https://steamcommunity.com/sharedfiles/filedetails/?id=3800437751

Here you go, this is a case where I have provoked it, but it is something that happens accidentally on realistic mode.

The problem here is that when a train is bought for the depot (and the player views the area where the depot is) it spawns at a customs station if/when there is a free track.
But if there is only one free track - which happens, especially when there is only one track at the customs to begin with - and an aproaching train has already passed the last point where it trains can pass each other they get stuck.
In this case the blue train was already in the orange section when the train engine was bought, the other tracks are blocked by trains in the process of loading ressouces.

There are other examples of this but most of them are not as easy to provoke or take up more space and thus are harder to see on a screenshot.
Well in your screenshot I see some issues with signalisation but in this case your problem is also that you've made your intersection segment far too long and for what it is trying to do, there really is no reason for it to be this long.

https://imgur.com/a/aoyqJeD
This is, assuming i interpreted your setup correctly, a version which should fix the issue with fixed signalisation and an intersection segment made smaller.

Do remember you don't need mixed signals if there is only 1 path for a train to go a certain way. In the case above, there are 3 lanes out the customs house, but they all can only go 1 way, so no need for a mixed signals.

If you must insist on having more lanes out the customs station or elsewhere, you have to give yourself enough space for the train to exit the station segment before deciding to engage in the intersection and subsequently you have to keep the intersection as short as possible and properly signaled.

Looking at your screenshot your intersection looks to be over 150m long, which would be well enough time for a train to specifically enter and confuse the game with mechanisms spawning during that time.
Originally posted by Kaia:
Well in your screenshot I see some issues with signalisation but in this case your problem is also that you've made your intersection segment far too long and for what it is trying to do, there really is no reason for it to be this long.

https://imgur.com/a/aoyqJeD
This is, assuming i interpreted your setup correctly, a version which should fix the issue with fixed signalisation and an intersection segment made smaller.

Do remember you don't need mixed signals if there is only 1 path for a train to go a certain way. In the case above, there are 3 lanes out the customs house, but they all can only go 1 way, so no need for a mixed signals.

If you must insist on having more lanes out the customs station or elsewhere, you have to give yourself enough space for the train to exit the station segment before deciding to engage in the intersection and subsequently you have to keep the intersection as short as possible and properly signaled.

Looking at your screenshot your intersection looks to be over 150m long, which would be well enough time for a train to specifically enter and confuse the game with mechanisms spawning during that time.
This is was a demonstration, optimized for clarity in a game I started just to produce it, I do not require help designing intersections.

The signaling is fine and ideal. (Also, your placement is hideous asthetically and only marginally better.)
The track with mixed signals at the top is for the RCO.
Since this is realistic mode and I didn't want to waste time it had to be closeby.

Making the intersection shorter causes the problem to occur a little less often (reducing the length by 1/3 reduces the chance by 1/3; but since this was for demonstration I wanted a longer intersection to make it easier to provoke it), it does not solve the problem.

Edit: I don't want to forget thanking you for confirming that you are aware of the problem itself, that makes two of us already :P
You seem to have gotten needlessly upset at my comment on the signalization there. Anyways i don't know where you're pulling those numbers from; Reducing an intersection length right outside a station from 150+ range to the 50 range makes it so that the issue almost never occurs.

This should tell you that this is a user error, and if you are designing intersection segments which are located right outside a station trains enter and exit from, you ought to keep it very short specifically for that purpose.

As for end stations, those are pass-through, you ought to design them as a one way pass through station anyway and have them enter and exit on an adjacent lane going the same way so as to create a non blocking junction.

So sorry about upsetting you, but this feels like user error and you're requesting a check be introduced even though my understanding is that would change nothing given that once the train enters the intersection and commits to a path, it's too late anyway, check or no check.
Originally posted by Kaia:
Reducing an intersection right outside a station from 150+ range to the 50 range makes it so that the issue almost never occurs.
No, it makes it so that it occurs only 1/3 (50/150=1/3) as often, which is still too much for buildings that continously spawn (and despawn) trains.
Originally posted by Kaia:
As for end stations, those are pass-through, you ought to design them as a one way pass through station anyway and have them enter and exit on an adjacent lane going the same way so as to create a non blocking junction.
I know, but if you use them as pass through the signal at the entrance somtimes does not switch back to green.
Originally posted by Kaia:
So sorry about upsetting you, but this feels like user error and you're requesting a check be introduced even though my understanding is that would change nothing given that once the train enters the intersection and commits to a path, it's too late anyway, check or no check.
The check would in fact make this problem (almost) nonexistent, because it would just hold of with the spawning until it is save to do so.
I do know that the game sometimes still has hiccups at chain signals, but those are really rare and mostly occur with very, very short vehicles (from mods).

Currently the game uses the check from normal signals to make sure no train spawns in an occupied block unless the train goes away and into another track (no signals and switch setup), changing this to the check from chain signals would prevent the problem in almost all cases.

Edit: the check is not for the approaching train, but for the spawning one. When the approaching train has entered the intersection it is too late to spawn the new train and it has to wait until the track is clear again.
Originally posted by Kaia:
You seem to have gotten needlessly upset at my comment on the signalization there. Anyways i don't know where you're pulling those numbers from; Reducing an intersection length right outside a station from 150+ range to the 50 range makes it so that the issue almost never occurs.

This should tell you that this is a user error...
He is right, though. The issue cannot be mitigated by better signalling. Yes, making intersections shorter helps to prevent frequency (less change of triggering it), but is never zero and it scales linearly.


Originally posted by Erion:
No, it makes it so that it occurs only 1/3 (50/150=1/3) as often, which is still too much for buildings that continously spawn (and despawn) trains.
Originally posted by Erion:
The problem here is that when a train is bought for the depot (and the player views the area where the depot is) it spawns at a customs station if/when there is a free track.
But if there is only one free track - which happens, especially when there is only one track at the customs to begin with - and an aproaching train has already passed the last point where it trains can pass each other they get stuck.
There is a second way of dealing with this stuff, as CH does NOT continuosly "spawn" and "despawn" trains. Trains keep their current track no matter what besides depots, home buildings and endstations. In customs and other stations they never "jump" from one track to another.

A "workaround" or, in better words, solution is to order locos the same way as vagons. You have a (preferrably long) depot some distance away from customs and use a shunter loco to go pick up the new stuff and bring it to the depot to compile together. You need this for vagons, anyway, so start including locos as well. Whenever I want to buy a locomotive or any rail vehicle, I go to CH window, make my full order and then assign my shunter to get them picked up. This way they always "spawn" at the right track and also can get delivered much faster to a depot, as they occupy only one signal block and not 8 :)
Yes, that workaround is what I use for customs. But we really shouldn't have to have different workarounds for each building with the same problem.
But this also happens with RDOs and RCOs as well as endstations - basically everything that spawns trains.
It is not really gamebreaking (you can reload if it killed your city because you didn't pay attention), but a frequent annoyance nonetheless.

Still, they recently improved train logic again (thanks!), maybe they can take a look at this, too.
It is one of two remaining annoyances concerning trains in this game.
The other one is the reason I use endstations to begin with: Some steam trains insist the next fuelling station has "problems", but when I sent them right next to it with fuel (cheat) and a waypoint they suddenly change their mind and refuel.
(I'd really like to force them to refuel by making the fuel station a stop in their line...)
With "forced refueling" I agree. With RCO, RDO and enstations I usually have one-way signal for each track directions, anyway, so it stopped being a genuine problem for me.
Originally posted by Sirius Czech:
With "forced refueling" I agree. With RCO, RDO and enstations I usually have one-way signal for each track directions, anyway, so it stopped being a genuine problem for me.
Yes, there are workarounds (unless there is only one track in the building), still, it feels like a holdout that was simply forgotten when signals evolved.
And it should be possible to switch the check that occurs before spawning - which is basically the one normal signals use - with the chain-signal one.

As I said before: It is not game breaking, but is unintuitive and unrealistic behaviour that forces us to use several different bandaids.
Originally posted by Erion:
... (unless there is only one track in the building) ...
If there is only one track in the building, your signalling should account for that and the rail into it should be a part of the nearest junction area (one in colour block if speaking about visual clues).

Tbf lots of rail problems with this game (I would say 95% of all) is due to bad layouts and/or bad signalling, both of which is easy to blame players for.

But my "curse" is that I kinda know how a real life signalling a safety features of railways work and that the game simplifies stuff, but also forces players to behave a lot like real reail designers, of which the game pretty lacks lessons and tooltips for players not knowing that much.

And that results in some of us seeing stuff with "of course it behaves like that" while other players go "nuts, this is not working, devs to be blamed!". Which, in itself, is also part of the truth :)
I'm aware, but I had the impression that the last update somehow improved on how signaling works. Big junctions seem to work much more efficiently.

The tip with including one track buildings that spawn trains in the nearest junction is good and I sometimes do this, but it elimates some realistic layouts that should be possible to preproduce ingame.

This concerns realistic early start expecially, fuelling is a bit off in this game.
Steam fuelling happened in the stations much of the time, and having trains suddenly turn around leave their line and go to some fuelling station is the opposite of what you'd expect from a game that has such a focus on lines.
And using endstations as pass through sometimes (often) causes the entrance signal to be left stuck on red when the train despawns in the station (yes you can just put a bypass in the same block as the station to get around this).

Also, personally, I think this game forces too many lights around tracks.
I'd love traditional signals, and I'd think a lot of the normal signals (those that are at the exit of juctions*) should just be invisible in the world when the ui is invisible, so I'd love to place some signals that behave like normal signals but without the ability to stop trains and without lights.

*Those should never stop a train, because the chain signal at the entrance should only let a train enter when this one wont stop it, thus their lights are effectively clutter in many cases.
< >
Showing 1-15 of 20 comments
Per page: 1530 50