Page 1 of 2

Callback on reversing train

Posted: 11 Mar 2006 13:08
by nilsi
Would it be possible to add a callback
that is called if a train changes direction,
e.g. at the end of the track or turning at stations and using the
"reverse train" button?

This is less then the "reversing trains" in the todo, but would allow recoloring trains, that have appropriate grf files.

Posted: 11 Mar 2006 17:33
by Patchman
What is that callback supposed to do? What would its return value be?

Posted: 11 Mar 2006 22:28
by nilsi
Ok, I was wrong.
The Engine would need one additional bit of storage,
that is toggled on reversing
and the result can be used to decide what to draw
based on an "VarAction2" like the
curvature info one for tilting trains.

PS: Sorry. :oops:

Posted: 11 Mar 2006 23:43
by Patchman
That was actually pretty easy. Bit 0 of variable FF will do that from beta 2 on.

Posted: 12 Mar 2006 09:36
by michael blunck
Sorry, I don´t see the benefits at all? I think this proposal was aimed at the implementation of "driving trailers" but checking only if a train has been reversed the real engine would still be in front of the train and not at the end, i.e. the "engine" wouldn´t show effects but the driving trailer would.

regards
Michael

Posted: 12 Mar 2006 14:06
by Hyronymus
Having functional driving trailers would be fun (push-pulled trains with not always the engines at front) but I'm lost wether this is what nilsi wants. I don't get the explanations, neither from nilsi nor from patchman.

Posted: 12 Mar 2006 18:22
by nilsi
I am working on it for my A.T. 3
:-)

Posted: 22 May 2006 19:20
by michael blunck
Et voilà:

Push-pull service in its test phase between Runton North and Runton Valley. 8)

regards
Michael

Posted: 22 May 2006 20:30
by ISA
wierd to look :D

Posted: 22 May 2006 20:49
by Dave
Wow!!!! Awesome!!!

I assume the locomotive has to be at the head of the train? Otherwise this could lead to something quite common in the days of British Steam - The Push-Pull Services. A locomotive would be placed in the middle of the train and would both push and pull carriages and wagons - often, in a mixed service of both carriages and wagons, the carriages would go behind the locomotive, while the wagons went in front.

Obviously I'm not saying you must do this, or you must do that. I know that even the pix still show a design and test stage.

And, bloody hell, they look cracking! Very realistic!

Posted: 23 May 2006 01:30
by DaleStan
But...
But...
But...
...
That's impossible. You can't do that!

:shock:

Posted: 23 May 2006 12:08
by nilsi
You see the benefits now? ;)
I am still working on my own grf.

Posted: 23 May 2006 16:31
by khamura
DaleStan wrote:But...
But...
But...
...
That's impossible. You can't do that!

:shock:
This is micheal blunck we're talking about here. :lol:

Posted: 24 May 2006 00:14
by krtaylor
I'll have to point this out in the Japanset.

Posted: 24 May 2006 06:49
by PikkaBird
Niiice... It would be a PITA to code an entire set like that though. And it will still switch any vehicles in between the first and last, so symmetrical trains are definitely the order of the day.

But still... *considers allowing push-pull for certain locomotives in the UKRS* :)

Posted: 24 May 2006 09:20
by michael blunck
> This is micheal blunck we're talking about here.

Well, let´s talk about Josef Drexler in the first place. 8)

> It would be a PITA to code an entire set like that though.

True.

> And it will still switch any vehicles in between the first and last, so
> symmetrical trains are definitely the order of the day.

The "push-pull" feature would need to be integrated into the patch itself which then takes considerations of all those special cases.

> But still... *considers allowing push-pull for certain locomotives in the UKRS*

ATM, there are still a couple of bugs but I think I´ll include one or two engines using this feature as it is now into the DBXL. (Luckily, real push-pull service was pretty uncommon before WW2 in Germany and even in the DB era there was only a handful of locomotives used for this kind of service.)

O/c, something like this
A locomotive would be placed in the middle of the train and would both push and pull carriages and wagons - often, in a mixed service of both carriages and wagons, the carriages would go behind the locomotive, while the wagons went in front.
would need the full patch feature.

regards
Michael

Posted: 24 May 2006 10:32
by PikkaBird
michael blunck wrote:> And it will still switch any vehicles in between the first and last, so
> symmetrical trains are definitely the order of the day.

The "push-pull" feature would need to be integrated into the patch itself which then takes considerations of all those special cases.
Limiting it to particular locomotives, and passenger/mail carriages only, might just work out with variable graphics...

Posted: 25 May 2006 01:54
by krtaylor
It's not real common in any case, is it? Even less so that ordinary push/pull services.

Posted: 25 May 2006 04:33
by PikkaBird
krtaylor wrote:It's not real common in any case, is it? Even less so that ordinary push/pull services.
What isn't real common?

For the UKRS, I'm going to try and allow this for the Saddle Tank, Jinty, Diesel Shunter, and the Class 91.

Posted: 25 May 2006 08:55
by michael blunck
> It's not real common in any case, is it?

Mmh?

As Pikka already pointed out, "limiting it to particular locomotives and passenger/mail carriages only might just work out for the moment".

Moreover, for the special case of the DBXL I really wouldn´t need much more because existing push-pull services ("Wendezüge") have been restricted to a handful of different types of locomotives and carriages (although nearly all of the existing engines have been able to travel backwards as well).

And as I pointed out above, to have TTD´s "real" engine in any position inside a consist would be a different kettle of fish. This would be indeed very much harder to implement.

Here´s another one, a BR141 with "silverfish" coaches and cab car, a combination which has been used throughout the 60s and 70s in Germany:

regards
Michael