Weatherhill tender loader loco question

AntonyVW

Active member
Hi guys Ive been taking a look at what's on the http://settleandcarlisle.co.uk/ On there, there is a tender loader with animations and full industry. My question is what locos are suitable to use with it? Now I know it needs tender locos but the one I tried with it just showed me the staith refilling. But the pictures on the webpage show it with the digger next to the tender. So which locos can use this to its best?
 
The loader will accept deliveries of coal from wagons, and load coal into loco tenders. However unless the loco tender you have used has a small script included, the loader will see it as a delivery of coal to the staithe and unload it. Needless to say all the S&C locos included in the pack work correctly with the weatherhill loader.

The script required looks like this
Code:
// steamtender.gs

// prevents unloading of coal at industries
// ©Wulf_9, Sept '04

include "vehicle.gs"

class Steam_Tender isclass Vehicle {

  bool UnloadProduct(LoadingReport report) {
    bool UnloadFlag = false;
    return UnloadFlag;
  }

};
 
Thanks Stovepipe. Now next question. Ive never done any scirpting before so where would I put that script?
 
Open notepad, copy and paste the script above.
Save as "steamtender.gs" - you must change the filename extension from .txt to .gs.
Open for edit the tender you wish to use
Put your script file into the tender folder, at same level as the config.txt file.
open config.txt file and put these new lines in anywhere

script "steamtender"
class "Steam_Tender"


Save config.txt
Commit tender asset in content manager.
Test

If this doesn't work you will need to tell us which tender you are using. It will only show an animation if the tender you are using has an animated load. Some older tenders don't.
 
Hello Stovepipe. I hope you will be able to help me. On my layout, many of the tenders are very low on coal. The Black Five indeed shows me a completely empty tender. Each time I go to coaling industry and tell it to load, the locomotive always moves ahead as if to load non-existent container trucks and no coal goes into the tender. I've checked the tender and it tells me:
Load Coal..Max load 15000. Load Water...Max load 26000. What am I missing? For information, I am eighty years old and completely computer thick. Thank you. Yours aye. Peter Feiler
 
Feiler, to get a helpful response we'd need to know the KUIDs of the "coaling industry" (it's unclear whether you are using the Weatherill tender loader that is the subject of this thread) and of the tender you are attempting to coal. Are you testing this in TRS2006 or TRS2009?
 
Good morning. I am using something called Trainz Simulator 2099, Build 41844. The Coal Stage I am trying to load coal from is UK Branch Line Flint's COAL STAGE <kuid:187596:28157>. The tender I am trying to load with coal is <kuid:177548:98626>.
I regret I know nothing about the Weatherill tender loader which you mentioned, nor how to get it. I'm sorry my question has come up in the wrong place - I just don't understand completely how things are managed. Yours aye Peter Feiler
 
Neither of these assets are available in my TRS installations and I can't find either of them on the DLS. Is the tender payware from Paulz Trainz? If so, the vendor would probably be the best person to ask about your problem.
If a thread has been opened that concerns a particular asset, if you want help concerning another asset, you'd best open a new thread and identify the assets, the version of Trainz you are using and explain the problem. If the assets are not on the Trainz DLS, then it would be helpful if you explained their source.
 
Thank you for your very kind and prompt reply. I will make further enquiries with Paulz Trainz. Yours aye Peter Feiler
 
Hello,

I recently downloaded the Weatherill Tender Loader asset and tried using it in a route. I'm trying to use it with K&L Trainz steam locomotives in Trainz Mac 2 (which from what I understand is essentially Trainz 2012 SP1). Originally when I tried using this, it would unload the coal from the tenders. I've added the Script file noted above and the noted tags to the Tender Config file. Once I made the changes, to be safe, I removed the locomotive and tender from the route, re-saved the route and the re-added them again before trying it out.

Now it no longer unloads the tender (the script prevented that) but the asset still does not load the tender even though it definitely needs more than double the 1500 kg shovel size (the amount that is loaded per "scoop" of the loader, another thread about the asset notes that the coal must be below a certain threshold or it will not attempt to load.) I tried loading the "Message Window" but it is not giving me any messages at all, let alone why it might be failing to load.

Some additional info: The K&L Trainz Tenders do not have animated Coal Loads, I assumed they would "load" I would just not see an animation but so far no luck. Originally the Assets had a "category-class" of 'XF' which from what I could find online is a Flatcar, I've since changed them to AS which is a steam loco and tender (not sure that made any difference) but I'd like to get this to load the coal to the tenders.

Any help or suggestions anyone might have would be very much appreciated.

Regards and thanks,
Mark Cole
 
Last edited:
Please paste the text of the config file of a typical K&L tender asset into a post in this thread. I can't comment on whether or not the problem entails the use of the tender coal loader in Mac 2. I can only test in TS12.
 
Please paste the text of the config file of a typical K&L tender asset into a post in this thread. I can't comment on whether or not the problem entails the use of the tender coal loader in Mac 2. I can only test in TS12.

Thanks for the response!

Here is the contents of the config file of one of the tenders:



origin "US"
real-engine 0
mass 32817
category-class "AS"
enginespec <kuid:-1:42004201>
bogey <kuid:68926:122328>
bogey-1 <kuid:68926:122328>
hornsound <kuid:68926:122307>
description ""
name "PRR D16sb Tender Stripes"
asset-filename "PRR D16sb Tender Stripes"
category-region-0 "US"
category-era-0 "1900s"
trainz-build 2.4
script "steamtender"
class "Steam_Tender"


mesh-table
{
default
{
mesh "Textures/LOD.lm"
auto-create 1

effects
{
0
{
kind "corona"
att "a.corona0"
texture-kuid <kuid:-3:10112>
object-size 0.1
}

1
{
kind "corona"
att "a.corona1"
texture-kuid <kuid:-3:10112>
object-size 0.1
}
}
}

shadow
{
mesh "shadow/shadow.im"
}
}


smoke0
{
attachment "a.whistle"
mode "time"
color 255,255,255,255
rate 50
velocity 6
lifetime 1
minsize 0.6
maxsize 2
texture <kuid:68926:100001>
accel 0,0.1
}


queues
{
load-coal
{
size 11800
initial-count 8000
product-kuid <kuid:44179:60013>
}

load-water
{
size 21168
initial-count 21000
product-kuid <kuid:-3:10004>
}
}
kuid <kuid:68926:122321>
username "PRR D16sb Tender Post Stripes"
author "Steve Lerro"
organisation "K&L Trainz"
contact-email "steve.lerro@gmail.com"
contact-website "www.KLtrainz.com"
license "Not authorized to redistribute"
kind "traincar"


kuid-table
{
0 <kuid:-1:42004201>
1 <kuid:68926:122328>
2 <kuid:-3:10112>
3 <kuid:44179:60013>
4 <kuid:-3:10004>
5 <kuid:68926:122307>
6 <kuid:68926:100001>
}
 
As a first step, change the config file tag "real-engine 0" to "engine 0".
If this doesn't fix the problem, then I'll suggest a couple of script edits to assist with diagnostics.
 
As a first step, change the config file tag "real-engine 0" to "engine 0".
If this doesn't fix the problem, then I'll suggest a couple of script edits to assist with diagnostics.

Ok, so I tried that. Unfortunately it didn't fix the problem, the tender is still not being loaded. Also, after making the change you recommended, the tender headlight no longer works (usually it comes on when I "Reverse Train Facing" in the game so that I'm running "Forward" in reverse) With that change in place, it doesn't come on at all when I change the train facing. I've tried turning headlight off/on repeatedly and reversing train facing repeatedly. No luck.
 
I didn't realise that your tender had a headlight. It will need "real-train 0" in order for that to work. However, don't restore the tag until some further testing has been conducted.
Try the following:
a) Take control of the loco when your test session opens and drive it so that it stops when the tender is centred on the 2 wooden posts beside the track between the staithe and the front-end loader. Does loading take place?
b) Open the tender loader asset for editing. Open the script file "coal_fueling_station_v9.gs" in a text editor. Lines 32 and 58 have been commented out ("//" at the beginning of each line). Delete the "//" from each of these lines. Both lines will print information to the message window when the session is run. Save the edits to the script file, exit the text editor, then commit the edit to the asset in Content Manager. Run the test session with the loco under AI control and the message window open. Report what information appears in the window.

By the way, when the loco is under AI control you will need to limit the approach speed to the tender loader. To get the tender to stop centred on the wooden posts I find I need to limit the approach speed for S&C and PLL locos to 8mph in TS12 SP1 HF3. You don't have to add visible speed signs (although this will be quickest for testing purposes). You can use Invisible Speed Signal v2 on the approach tracks and apply a speed limit to Priority 3 trains only. If a loco is to stop for tender loading, set its Priority to 3.
 
Last edited:
I didn't realise that your tender had a headlight. It will need "real-train 0" in order for that to work. However, don't restore the tag until some further testing has been conducted.
Try the following:
a) Take control of the loco when your test session opens and drive it so that it stops when the tender is centred on the 2 wooden posts beside the track between the staithe and the front-end loader. Does loading take place?
b) Open the tender loader asset for editing. Open the script file "coal_fueling_station_v9.gs" in a text editor. Lines 32 and 58 have been commented out ("//" at the beginning of each line). Delete the "//" from each of these lines. Both lines will print information to the message window when the session is run. Save the edits to the script file, exit the text editor, then commit the edit to the asset in Content Manager. Run the test session with the loco under AI control and the message window open. Report what information appears in the window.

By the way, when the loco is under AI control you will need to limit the approach speed to the tender loader. To get the tender to stop centred on the wooden posts I find I need to limit the approach speed for S&C and PLL locos to 8mph in TS12 SP1 HF3. You don't have to add visible speed signs (although this will be quickest for testing purposes). You can use Invisible Speed Signal v2 on the approach tracks and apply a speed limit to Priority 3 trains only. If a loco is to stop for tender loading, set its Priority to 3.

Ok, so I had previously tested by having my tender centered on the two posts and it wasn't loading. After committing the changes to the script file and running the session and moving to the tender loader with tender centered on the two posts, heres the output I see:

Detected trigger is loadcoal2 and Vehicle Type is 0
Detected trigger is loadcoal1 and Vehicle Type is 0
Detected trigger is loadcoal0 and Vehicle Type is 0

I tried this numerous times and the individual messages would be repeated numerous times until it reached the next trigger point or until the locomotive and tender came to a complete halt) Also when it was the "Engine" in position and not the tender, the vehicle type was identified as 5.

Here's a screenshot showing the tender centered on the posts and the output messages. I also viewed the details on the tender to show how much the coal was depleted (of a possible 11800).

 
Here is the legend to some "Vehicle Types" in Trainz:
public define int TYPE_LOCOMOTIVE = 1; //!< Vehicle is a powered engine.
public define int TYPE_TENDER = 2; //!< Vehicle carries fuel for a locomotive (i.e. a tender attached to a steam locomotive).
public define int TYPE_HAS_INTERIOR = 4; //!< Vehicle has interior. Note that a vehicle does not have to be a Locomotive to have an interior.

By default, a vehicle has the type "0", which implies it does not fit into any other category, and is mostly given to non-powered wagons and carriages without interiors. The script I wrote for the Weatherill tender loader ascertains the vehicle type for each vehicle that enters the loading bay triggers. If the vehicle is NOT type "2" (tender), then the vehicle is rejected for loading. Since the K&L tenders are vehicle class "0", they are rejected. My understanding is that a vehicle with a config file with tags "category-class AS" and "engine 0" would be allocated vehicle class "2". Why this is not occurring in the case of the K&L tenders (with the "real-engine" tag temporarily changed to "engine"), I cannot say.
You may ask "Can't the tender's config file or script set the vehicle class directly to '2'?". To my knowledge, the answer is "no".
 
Back
Top