Callback on reversing train

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Callback on reversing train

Post 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.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

What is that callback supposed to do? What would its return value be?
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post 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:
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

That was actually pretty easy. Bit 0 of variable FF will do that from beta 2 on.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Post 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
Image
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post 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.
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post by nilsi »

I am working on it for my A.T. 3
:-)
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Post by michael blunck »

Et voilà:

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

regards
Michael
Attachments
.. push.
.. push.
SCR316.png (11.94 KiB) Viewed 8002 times
Pull ...
Pull ...
SCR315.png (11.81 KiB) Viewed 8006 times
Image
User avatar
Dave
Moderator
Moderator
Posts: 17243
Joined: 26 Dec 2005 20:19
Location: North London

Post 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!
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

But...
But...
But...
...
That's impossible. You can't do that!

:shock:
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post by nilsi »

You see the benefits now? ;)
I am still working on my own grf.
User avatar
khamura
Traffic Manager
Traffic Manager
Posts: 218
Joined: 27 May 2005 21:50
Location: Tourian, Planet Zebes, Orion Arm, Milky Way
Contact:

Post 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:
Graduate of the LeRoy Funkified Badass School of Soul
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

I'll have to point this out in the Japanset.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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* :)
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Post 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
Image
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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...
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

It's not real common in any case, is it? Even less so that ordinary push/pull services.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Post 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
Attachments
141pp.png
141pp.png (6.82 KiB) Viewed 7814 times
Image
Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 27 guests