Steam locomotive operation

jjanmarine3

Active member
Hi guys.
Please tell me what specs in the config file governs or controls the operation of the injectors and the space bar.
Some of my steam locos , like the QR Garrat, do not respond to these controls lately.
 
These controls are handled by the cab interior and the script it uses. The cab interior is specified by the interior tag in the loco's config.

Bob Pearson
 
If the interior does not have a certain feature as a controllable lever/button/whatever, it will not operate. That is why you cannot operate engines (steam engines, maybe diesels too but I'm not sure as I don't use diesels much) which do not have a cab view or have one that is completely static in Cab Mode.

Azervich and others have written a script that allows interiors without moveable controls to be functional in Cab Mode. The only asset I currently know it's in is my Matchbox Loco 0-4-0 Interior asset. I'm sure that there are other places to retrieve the script.

Kieran.
 
Azervich and others have written a script that allows interiors without moveable controls to be functional in Cab Mode.
Kieran.

I didn't wright a script for controls to work in a steam loco, I wrote a config that simulates working controls using a 2 poly mesh and having them used in the interior config to represent controls, but are in fact invisible.

Cheers.
 
And where is that config available so all togog's wonderfull engines can benefit from this too? ;)

Greetings from cloudy Amsterdam,

Jan
 
And where is that config available so all togog's wonderfull engines can benefit from this too? ;)

Jan

Code:
  default
  {
    mesh                                "interior.im"
    auto-create                         1
  }
  
  regulator
  {
    kind                                "lever"
    mesh                                "mesh.im"
    auto-create                         0
    limits                              0,1
    angles                              -0.785,0.785
    radius                              0.35
    mousespeed                          1
    mousemode                           "exact"
  }
  
  water_injector_0
  {
    mesh                                "mesh.im"
    auto-create                         0
    kind                                "lever"
    mousemode                           "exact"
  }
  
  water_injector_1
  {
    mesh                                "mesh.im"
    auto-create                         0
    kind                                "lever"
    mousemode                           "exact"
  }
  
  blower
  {
    mesh                                "mesh.im"
    auto-create                         0
    kind                                "lever"
    mousemode                           "exact"
  }

  reverser
  {
    mesh                                "mesh.im"
    auto-create                         0
    kind                                "lever"
    limits                              -1,1
    mousespeed                          -1
   }
}

and need to export a 2 poly mesh with the m.notex :)

Cheers.
 
I didn't wright a script for controls to work in a steam loco, I wrote a config that simulates working controls using a 2 poly mesh and having them used in the interior config to represent controls, but are in fact invisible.

Cheers.

Oh........ it's that simple? Thanks for that.
I thought about something like that but dismissed the idea as I thought it would need scripts and a separate invisible mesh for each control.
I assume this would work with an invisible interior and / or outside-visible-from-cabin 1 as well as none animated interior?

I ended up using Bob's scripts, SteamCabinfireman plus SteamLocomotive which seem to work well although various patches to TS12 seem to mess things up a bit, disabling the automatic fireman in the script appears to work in 49922 seems to be OK in 61388 though, I think, haven't really done much testing.

Yes I'm guilty of having none working interiors on my NG stuff on the DLS although I have got them drivable in cab mode here using Bob's scripts. I will get round to updating things at some point. To add I'm crap at animating things, took me a year to get working valve gear!
 
All of my steam cab scripts allow you to use the keyboard to control the loco with or without working controls in the cab.

The auto fireman (provided in my scripts - not the one N3V provides) should be disabled in all version of trainz since TC3. He's designed to work with the older steam physics. I should update those scripts pretty soon I guess as I know enough about the "new" steam physics to make him work with most especs.

A complete rewrite is on my list to do as in it's current setup it is difficult to set up and maintain - and whether a library or another implementation is the way to go. Also there's some baggage in the scripts that needs to get cleaned out.

Bob Pearson
 
Back
Top