Elvas Tower: Move Tender Capacities to Tender Wag Files - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Move Tender Capacities to Tender Wag Files Same Loco, Larger Tender Rate Topic: -----

#1 User is offline   Traindude 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 651
  • Joined: 17-November 13
  • Gender:Male
  • Location:Seattle, WA
  • Simulator:Open Rails
  • Country:

Posted 03 January 2021 - 12:57 AM

I was hoping to revisit something I suggested some time ago:

In the steam era, it was a very common for a locomotive to receive two or more different tenders during its operating career. For example, in the US, many locomotives that were delivered with four-axle tenders were given larger, six-axle tenders by the ends of their careers.

However, in MSTS and OR this currently creates a problem since the tender capacities (MaxTenderWaterMass and MaxTenderCoalMass)are specified in the locomotive .eng file instead of the tender .wag file. So in other words, you can couple a larger tender to a pre-existing locomotive in your favorite consist editor, but it won't make any difference in regards to how much water and fuel you have at the start of an activity. Instead, you have to create a duplicate .eng file for the same locomotive, with the water and coal capacity values altered to reflect the larger tender.

Given the successful implementation of auxiliary tenders in OR, we should try to make a system so that the "main" tender capacities can be varied depending on the size of the tender model coupled to the locomotive.

Here's how I imagine such a system working:

1. While the activity loads, OR does a read of the MaxTenderWaterMass and MaxTenderCoalMass values in the locomotive .eng file as usual.
2. Then, OR does a read of the tender .wag file and looks for the presence of any MaxTenderWaterMass and MaxTenderCoalMass parameters:
a. ) If there are MaxTenderWaterMass and MaxTenderCoalMass parameters specified in the tender .wag file, OR compares these values in the tender .wag file with the MaxTenderWaterMass and MaxTenderCoalMass values previously read from the locomotive .eng file. If the tender .wag file's MaxTenderWaterMass and MaxTenderCoalMass values are anything greater or less than those in the locomotive .eng file, the .eng file values are overridden and the tender .wag file values are used instead for the duration of the activity.
b. ) If there aren't any MaxTenderWaterMass and MaxTenderCoalMass parameters specified in the tender .wag file, then OR uses the values previously read from the locomotive .eng file.

What are your thoughts? Vote for this feature on Trello!

#2 User is offline   longiron 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 3,179
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 04 January 2021 - 04:22 AM

Seems reasonable for most typical steam locomotives. What about articulated and Garrett locomotives that may have multiple ENG files but only a single tender WAG file?

#3 User is offline   Traindude 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 651
  • Joined: 17-November 13
  • Gender:Male
  • Location:Seattle, WA
  • Simulator:Open Rails
  • Country:

Posted 04 January 2021 - 06:34 AM

View Postlongiron, on 04 January 2021 - 04:22 AM, said:

Seems reasonable for most typical steam locomotives. What about articulated and Garrett locomotives that may have multiple ENG files but only a single tender WAG file?


I still need to figure that out TBH...

#4 User is offline   copperpen 

  • Executive Vice President
  • Group: Status: Elite Member
  • Posts: 3,143
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 04 January 2021 - 11:27 AM

Garrets are easy, one eng carries the water and the other has the fuel, just as in real life. Most articulated engines as they are currently modelled present a different problem with the current workaround making the lead engine into a tank locomotive. The exceptions are those modelled by Jon Davis, single eng files for the whole locomotive.

#5 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 06 January 2021 - 08:47 PM

View PostTraindude, on 03 January 2021 - 12:57 AM, said:

Given the successful implementation of auxiliary tenders in OR, we should try to make a system so that the "main" tender capacities can be varied depending on the size of the tender model coupled to the locomotive.
Since it appeared to be a trivial coding exercise, I have added your suggested functionality to the latest unstable release version.

It should work along the lines that you described, and uses the following parameters in the tender file:

ORTSTenderWagonCoalMass and ORTSTenderWagonWaterMass

I would not recommend removing the default values in the ENG file, as this may cause some issues.


Changing the tender in mid activity will not change the coal/water mass values.


#6 User is offline   Traindude 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 651
  • Joined: 17-November 13
  • Gender:Male
  • Location:Seattle, WA
  • Simulator:Open Rails
  • Country:

Posted 07 January 2021 - 08:21 PM

View Poststeamer_ctn, on 06 January 2021 - 08:47 PM, said:

Since it appeared to be a trivial coding exercise, I have added your suggested functionality to the latest unstable release version.

It should work along the lines that you described, and uses the following parameters in the tender file:

ORTSTenderWagonCoalMass and ORTSTenderWagonWaterMass

I would not recommend removing the default values in the ENG file, as this may cause some issues.


Changing the tender in mid activity will not change the coal/water mass values.


I'll try it out! Thanks!

EDIT: Works great now!

#7 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,346
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 08 January 2021 - 11:51 AM

I suspect the original (KUJU) thinking was WRT handling tenderless steam locomotives.

IMO the best answer is two part:

  • Move ev erything about the tender currently found in the .eng file to the tender .wag
  • Add an optional block in the .eng file called NoTender(list of other parameters()) or something like that with the same data just moved to the tender .wag


AFAIK that should take care of everything. Perhaps Peter Newall might be interested in doing this.

#8 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 08 January 2021 - 04:53 PM

View PostGenma Saotome, on 08 January 2021 - 11:51 AM, said:

  • Move ev erything about the tender currently found in the .eng file to the tender .wag
  • Add an optional block in the .eng file called NoTender(list of other parameters()) or something like that with the same data just moved to the tender .wag
  • If we lived in a perfect OR world then this might be worth doing, however whilst there is still a requirement to maintain some level of legacy operation with MSTS defined stock, then a system where the tender information is either in the ENG file or the tender file needs to be maintained.

    The patch implemented maintains this approach.

    #9 User is offline   Weter 

    • Member, Board of Directors
    • PipPipPipPipPipPipPipPipPipPip
    • Group: ET Admin
    • Posts: 6,916
    • Joined: 01-June 20
    • Gender:Not Telling
    • Simulator:ORTS
    • Country:

    Post icon  Posted 08 January 2021 - 11:44 PM

    There is a bug with MSTS AE's consist editor, due to that fact, that tenders considered as a freight cars (it likely can't determine their right place in given categortes: engine/freight/coach), but more correct would set the special "tender" type.

    Second: as in MSTS we can specify BarCoupleUniqueType at *.eng/*.wag - files, it would be good for us to have an opportunity of specifying compatible tender types for steam engines, as we know, that it could be more, than one possible variant IRL

    This post has been edited by Weter: 09 January 2021 - 12:30 AM


    Page 1 of 1
    • You cannot start a new topic
    • You cannot reply to this topic

    1 User(s) are reading this topic
    0 members, 1 guests, 0 anonymous users