Shut down diesel engines in TRS06?

whyfly2

New member
In TRS 2006, is there a way to shut down individual diesel engines so there's no engine noise?

If so, can that action be saved so the engines that have been shut down are still quiet when the program is reopened?

Thanks for your help.

Art
 
There is a Start/Shut Down All Fuel Consuming Loco's script
That's what it says but I think it only works with PhilC's diesels that have a custom enscripted script that among other things makes them fuel consuming diesels. At the time his were the only diesel locos that consumed fuel hence the description.

There are a few locos out there that use a script that I wrote that makes them consume fuel and stop running when they run out but I don't think his script works with it. My script also doesn't have its own startup or shut down capability although you can enable or disable the feature in Surveyor depending on how the script was set up.

Bob Pearson
 
Hello Bob Pearson,

Scripts are beyond me. My best programming days were behind me since I gave away my Commodore 64 with its built-in DOS.

If you can, I'd appreciate help with another issue I'm having, as I posted in this forum. I'm running TRS2009 on another computer, and when I open Edit Session in Surveyor, the Properties screens all have thin, black fonts on dark blue backgrounds, making them unreadable.

A few years ago, someone told me where to find the code and how to change the colors. I must have restored a c: partition image that had an uncorrected version of TRS09, because it's like it was before fixing it.

Any ideas how to access that function?

Thanks for your reply.

Art
 
Art right off I don't. I can remember a discussion on this subject in the TS9 beta days. I think Andi06 complained about this - said he got tired of changing the code with every new edition of Trainz and I think Chris told him how to fix it so he didn't. Unfortuantely they pulled the plug on those forums and we lost a lot of good stuff.

It is possible to turn the physics off for individual traincars using scripting. This is a temporary solution that might be close to what you're looking for. I think wolf9 had a script that did this but I don't remember how you activated this condition or got out of it other that coupling the loco or consist up to another loco which activates the physics automatically. I think his script had to be added to each loco you wanted to be able to "turn off". I would think that it might be possible to script it as a rule that handled any diesel on the map.

I don't know of anyone writing one other than Phil and it's still a driver command. Phil's locos have a user interface that works with it IIRC. By the way the script linked to in an above post is a built-in rule for most versions of Trainz including and since TRS2006. But CM won't even let you look at the files or config. Unfortuately his scripts are all encripted and he hasn't passed on the secret of how he handles it to anyone else. His locos appear dead until you go thru the startup proceedure but IIRC they will still provide power even in the "dead" state if coupled to a train with another running loco. Edit: now that I tried his loco out and thought about it a bit the way I handled it my script might not be too different than his way to "disable" the loco. I was always hoping there was a more elgant way to do it and I was never too impressed with what I did though it represented many hours of trying things out in the game. Maybe Auran could give us a function in the API that would handle it someday.

Bob Pearson
 
Last edited:
Yes I remember the conversations. I believe I asked Chris to set up a variable for the default HTML text colour rather than hard coding it in a thousand different places. It never happened.
 
Back
Top