Auxilliary tenders?

transitguard

workin' away.......
Just a question, has anyone figured out a way to get the water from an AUX. tender to the engine (or even to the engines main tender)? It would be interesting if someone could get it to work.
 
Yes there is a script that Wulf9 wrote for this. It transfers the water from the aux tender to the main one. I don't have a source for it at the moment but it's available. There are a couple of aux tenders that use it if that's all you need.

Bob Pearson
 
Okay, thanks! It's good to know that something is out there...do you happen to know where I could get an aux tender that uses it?
 
Sorry to double post, but in defiance of the people making a big deal out of this.


W8-1.gif


I can't seem to find the script anywhere...
 
Last edited:
Sorry for the post and run but I don't have much time to spend on Trainz or the forums anymore. I think I can dig up a version of Wulf's script and if you can describe the problems you're having maybe we can help you out.

Bob Pearson
 
Last edited:
Transitguard,
I posted the script in your other tread. I went back and tested it in 06. For me it does not work. I get no errors, but no water transfers to the main tender.
The problem is that there is an error in cmp with the config for the script.
Code:
Error: The tag 'update_delay' is not permitted within this container. (Container type 'traincar')
I suspect this why it is not working. I have tried it without the update delay tag and still no love.
I unfortunately know nothing about scripting.
My best suggestion would be to see if you can get a hold of Wulf_9 and see if he can be any help.
Kenny.:)
Ps. Sorry for taking so long to get back with you. I um forgot about this.
 
Update-delay and it's value will need to be put under the extensions tag (or whatever you call it) in the config file for the script to find it.
Code:
extensions {
         update-delay                                        xx
}
Norm
 
Update:
I loaded trs2004 on my sons comp. Tried the tender in 04 and it works. Transfers water to the train tender.
This was with after the above edit to the config file.
Came back to 06 and still no luck.
Kenny
 
The proposed fix won't work in TRS2006 because the script will have to be edited to find the new tag in the config soup. I'm not sure why it worked after the fix in TRS4. The change required to the script is minimal. But the editing must be made with an editor that keeps the file as a straight ascii text file or the in-game compiler won't be able to read it properly.

The following change to the script should fix it so it will work with the extensions container though I haven't tested it out. This will allow the script to find the new tag in the extensions container soup. Find the "public void Init(void)" method in the script and make the change indicated in red below:
Code:
[FONT=Courier New]public void Init(void) {[/FONT]
[FONT=Courier New]inherited();[/FONT]
[FONT=Courier New]if (GetAsset().LookupKUIDTable("water")) waterAsset = GetAsset().FindAsset("water");[/FONT]
[FONT=Courier New]rsd = (float)GetAsset().GetConfigSoup().[COLOR=red]GetNamedSoup("extensions")[/COLOR].GetNamedTagAsInt("update_delay", 300);[/FONT]
[FONT=Courier New]AddHandler(me, "Vehicle", "Coupled", "UpdateTrain");[/FONT]
[FONT=Courier New]AddHandler(me, "Vehicle", "BadCouple", "UpdateTrain");[/FONT]
[FONT=Courier New]AddHandler(me, "Vehicle", "Decoupled", "UpdateTrain");[/FONT]
[FONT=Courier New]AddHandler(me, "SLW_ATWG", "ReBalance", "UpdateTrain");[/FONT]
[FONT=Courier New]AddHandler(me, "World", "ModuleInit", "InitStart");[/FONT]
[FONT=Courier New]}[/FONT]


Edit - I tried this out in TRS2006 and it didn't seem to transfer water to the main tender. If I get time later today I'll set up a test script a bit more simplified that wulf's and see if I can get something to work.

Bob Pearson
 
Last edited:
Back
Top