Water troughs

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
longbow
Very Active Forum Member
Posts: 3608
Joined: Mon Mar 18, 2002 12:00 am
Location: Noosa, Australia
Contact:

Water troughs

Post by longbow »

I'm just looking at Hertsbob's water troughs (UKTS 24035) and wondering whether 1) troughs could be made functional ie into a water point 2) they could be made to trigger a water spray effect around a suitably adapted loco tender.
User avatar
ChrisBarnes
Very Active Forum Member
Posts: 1494
Joined: Sat Jul 25, 2009 3:45 pm
Location: North Yorkshire

Re: Water troughs

Post by ChrisBarnes »

For suggestion one, I don't think it's possible although I'd love it if someone could demonstrate that it does work. As for suggestion two, yes, should be very possible.

Chris
Just Trains BR 4, 5, 6, 7 and LNER K4 & V2 script and simulation author
User avatar
MGD11
Been on the forums for a while
Posts: 111
Joined: Thu Jan 14, 2010 7:52 pm
Location: Solihull
Contact:

Re: Water troughs

Post by MGD11 »

The latter might be doable with a function key (perhaps it could be used as a form of wiper animation?) but the former would require not only extra coding but also a new form of transfer point, as all transfer points in-game are static, and hence do not move - a water trough, by definition, is not a static transfer point. :-?
GatwickSpotting
Been on the forums for a while
Posts: 232
Joined: Thu Jul 14, 2011 11:36 pm

Re: Water troughs

Post by GatwickSpotting »

MGD11 wrote:The latter might be doable with a function key (perhaps it could be used as a form of wiper animation?) but the former would require not only extra coding but also a new form of transfer point, as all transfer points in-game are static, and hence do not move - a water trough, by definition, is not a static transfer point. :-?
It could always be coded onto the loco instead. I.e when water-pickupthingy is down, emit particles from XYZ location. And to those who say, "but what about if its down and not over a water trough?", I'd suggest only using it when you have somewhere to put it.
User avatar
ChrisBarnes
Very Active Forum Member
Posts: 1494
Joined: Sat Jul 25, 2009 3:45 pm
Location: North Yorkshire

Re: Water troughs

Post by ChrisBarnes »

That's easier and probably more sensible than what I had in mind, Jordi. :D I was thinking along the lines of using track markers at the beginning or end of the trough and then sending a custom signal message to the tender script of whichever loco to emit the particles, but I guess that's unnecessary when you could just turn the effect on/off depending on whether the scoop was up or down. :) And if you drop the scoop down into the 4 foot instead of a trough, then I guess the effect you'd still see would be the ballast being flung up and out! :o

Chris
Just Trains BR 4, 5, 6, 7 and LNER K4 & V2 script and simulation author
User avatar
longbow
Very Active Forum Member
Posts: 3608
Joined: Mon Mar 18, 2002 12:00 am
Location: Noosa, Australia
Contact:

Re: Water troughs

Post by longbow »

Does the loco have to be static to transfer water? If not, could a water trough be coded as a transfer point with a very large outlet? Alternatively there could just be an instant fill as the loco passes - not so realistic but still worth doing.
User avatar
hertsbob
Very Active Forum Member
Posts: 4055
Joined: Fri Oct 19, 2007 6:11 pm

Re: Water troughs

Post by hertsbob »

I'm afraid it does. So the closest we're likely to get at the moment is some kind of graphical effect which won't actually affect the water in the tender, as has previously been discussed. :(

One of these days/years we'll be able to do it.

Cheers

Bob
"Smoke me a kipper, I'll be back for breakfast!"
Commander Arnold Judas Rimmer


Things have finally happened!
http://dereksiddle.blogspot.co.uk/
User avatar
Stanlow
Been on the forums for a while
Posts: 201
Joined: Fri Mar 01, 2013 9:42 pm
Location: East Lancs expat now working in Dewsbury

Re: Water troughs

Post by Stanlow »

hertsbob wrote:I'm afraid it does. So the closest we're likely to get at the moment is some kind of graphical effect which won't actually affect the water in the tender, as has previously been discussed. :(

One of these days/years we'll be able to do it.

Cheers

Bob
It may look incredibly shonky in action, but I'm just wondering if there'd be a way to stop the consist for a split second while over the trough (set all values to 0 perhaps), instantly increase the water level, and then return speed values etc back to what they were? Unfortunately I don't know enough about scripting in game to do this, or if it's even possible to affect the train/consist speed when the script is attached to a track infrastructure item.
User avatar
MGD11
Been on the forums for a while
Posts: 111
Joined: Thu Jan 14, 2010 7:52 pm
Location: Solihull
Contact:

Re: Water troughs

Post by MGD11 »

GatwickSpotting wrote:It could always be coded onto the loco instead. I.e when water-pickupthingy is down, emit particles from XYZ location. And to those who say, "but what about if its down and not over a water trough?", I'd suggest only using it when you have somewhere to put it.
True, but bear in mind that, generally speaking, only large tank engines and tender locos were fitted with troughs - and while tank engines (as per your suggestion) are easily doable, tender engines could be a problem; tying it to the loco means it wouldn't look right on curves (not all water troughs were straight; some were fitted to track with extremely gentle curves) and also some locos had different tender types, but tying it to the tender means you'd have to add extra coding to the tender (and also mean a new transfer point) to cope with it, though.

However, I do find it strange that the coding for water scoops is actually coded into the .bin files for steam (and some) diesel locos - maybe a feature that Kuju wanted to implement but could never duplicate like they did for MSTS? :-?
See the example from the Kuju "default" Black 5 below, from the actual loco (not tender) bin file:
<cControlContainerBlueprint-cControlValue d:id="71088128">
<ControlName d:type="cDeltaString">WaterScoopRaiseLower</ControlName>
<DefaultValue d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</DefaultValue>
<MinimumValue d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</MinimumValue>
<MaximumValue d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</MaximumValue>
<BriefDescription d:type="cDeltaString">Lower and Raise Water Scoop</BriefDescription>
<DetailedDescription d:type="cDeltaString">Lower and Raise Water Scoop</DetailedDescription>
<ApplyToConsist d:type="cDeltaString">eFalse</ApplyToConsist>
<InterfaceElements>
<cControlContainerBlueprint-cInteriorLever d:id="71090432">
<ElementName d:type="cDeltaString">Water ScoopRaiseLower</ElementName>
<DifficultyType d:type="cDeltaString">Expert</DifficultyType>
<PickTransformName d:type="cDeltaString"></PickTransformName>
<MovementType d:type="cDeltaString">MoveLeftRight</MovementType>
<AnalogInputSensitivity d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</AnalogInputSensitivity>
<DigitalInputSensitivity d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</DigitalInputSensitivity>
<AnimationName d:type="cDeltaString"></AnimationName>
</cControlContainerBlueprint-cInteriorLever>
</InterfaceElements>
</cControlContainerBlueprint-cControlValue>
EDIT: On a side note, the "moving transfer point" idea is coded it might allow for on the move mail bag transfers! :D ...though this means it'd also have to be code-able into rolling stock. :oops:
Locked

Return to “[TS] General Discussion”