News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

electric train can find partially electrified platform at choose-signal

Started by poppo, December 21, 2025, 09:34:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

poppo

When at choose-signal, electric train can not find other platform which is not fully electrified
cannot_ennter.png
So, I make patch for fix this bug.electrification_check_in_choose_signal_update.patch
can_enter.png

prissi

It should not find the platform at all. Trains are supposed to go to the end of the platform.

Anyway, I applied your patch in r11822  but noted that the electric driving criteria was bonkers. Renovated that too. No a mixed engien train can still go on non-electrified track but with non-electric pwoer only (but both maintenance).

Octavius

It's complicated.
In the screenshots, both platforms could be treated as 3 tile platforms for non-electric trains and 2 tile platforms for electric trains. It is (in real life) common for trains not to run to the end of the platform. But then, many electric trains these days are electric multiple units (EMUs), which have their current collectors not (only) at the front end. Some have two current collectors in the middle, others one at each end, and all motors can receive current from either collector (of which usually only one is used at a time), so a 3 tile EMU could use this 3 tile platform with only 2 electrified tiles. A 3 tile push-pull train with two electric locomotives could too, but the locomotive at the non-electrified end couldn't provide power on departure. So you not only have to take into account where the current collectors are, but also which couplings transmit traction power. (Note that the French TGVs, with all their power in two powerheads that carry no passengers, are normally considered EMUs and can power both powerheads from a single pantograph.)
But then, in real life partially electrified platform tracks are pretty rare. I'm aware of one example in my country (Oldenzaal, Netherlands), but that is normally used as two tracks (1a and 1b) with a set of points between them; only exceptionally trains use the full length of track 1 there.

Andarix

If they're making such a distinction, Simutrans has a more fundamental problem.

Electrification limits the speed of non-electric vehicles.

There is now an option for trains that are shorter than the platform to only travel as far as the stop marker in the timetable. This makes it possible for trains to arrive at the same platform simultaneously from both directions, provided the platform is long enough and the stop markers are positioned accordingly.

Quote# stop_halt_as_scheduled=1, trains stop at the scheduled tile (or advance until they fits)
# stop_halt_as_scheduled=0 (default) trains will advance always to the end of a platform
stop_halt_as_scheduled = 1

poppo

Thank you for concidering my suggestion!
Now, I have some questions.

First, in my understanding, Simutrans find the end of the platform with can_enter or not.
So, Electric car find the end of the platform where catenary is end, and find only 2 tile length platform in above figure.
Why should not they do similar way with choose-signal?

In addition, the same flag as stop_halt_as_scheduled is already introduced in OTRPatch, but the name is different:
#if advance_to_end=1, convoy advances to end of the platform same as original standard. if 0, stop the tile set in schedule when platform length is enough.
advance_to_end=1
It is already written in simuconf.tab for OTRPatch. So I would like the setting name in simuconf.tab to be the same.