Request for a Script...

Travlar

Member
Hello all,

I am looking for a script like smileyman's "bellz" which lets you turn on and off a loco bell within Driver Setup. Another example would be "Hornz."

I have attempted to create this myself to share with the community, but alas, I can not get it to work.

I would like to request a "ditch-light" script that will allow me to issue a command from within driver setup to turn on or off the ditch-lights.

I would also like to request a version that could be used as a trackside object so when the trains cross the object, it will turn on the ditch-lights if they are off, and turn them off if they are on.

I want to place a trackside horn and trackside ditch-light so when AI trains are at a grade crossing, they will blow the horn and turn on the ditch-lights. This would also allow a more realistic approach as a train entered a station with the ditch-lights and bell on.

If anyone can create a script and/or a trackside object, I would greatly appreciate it.

Thanks
 
Does anyone know if this is at least doable? If so, how about some suggestions on where a developer could go. I don't mind putting in the work to make this, but I have had a heck of a time finding any information on Trainz.
 
I can't help with the ditch lights but I can with the horn's at crossings. Download my xing ahead signs and place them on the track.
 
I can't help with the ditch lights but I can with the horn's at crossings. Download my xing ahead signs and place them on the track.

Thank you. I actually already use those... and not to mention most of all your other creations. And since I have your attention, please let me thank you very much for all your time and effort with Trainz. I can truly say that without your support, we would not be as rich of a community.

Travlar
 
Thank you. I actually already use those... and not to mention most of all your other creations. And since I have your attention, please let me thank you very much for all your time and effort with Trainz. I can truly say that without your support, we would not be as rich of a community.

Travlar

Well thank you for the compliment, that just inspires me to create more.
 
I also recently have been playing with your Xing ahead signs (awesome work) and was wondering....

Can they also be made to sound the horn for a longer period of time, instead of a short blast?

Secondly, if the above is possible, can a combination of short, long, and pause be defined and played?

I would imagine a few different types would need to be made....

I think you see where I am going...

Thanks for listening!

Hack
 
I also recently have been playing with your Xing ahead signs (awesome work) and was wondering....

Can they also be made to sound the horn for a longer period of time, instead of a short blast?

Secondly, if the above is possible, can a combination of short, long, and pause be defined and played?

I would imagine a few different types would need to be made....

I think you see where I am going...

Thanks for listening!

Hack

Excellent question! I have always wondered if a sequence of blasts could be performed. BNSF50, I would really like to know if you have the answer to this question also.

Thanks
 
Excellent question! I have always wondered if a sequence of blasts could be performed. BNSF50, I would really like to know if you have the answer to this question also.

Thanks
http://forums.auran.com/trainz/showthread.php?t=79513 I found great info on this post that can change the typical short toot into the LONG_LONG_SHRT_LONG hornsound. the draw back is if you decide to do this, I found it ALWAYS does the LLSL by either hitting the sound whistle sign or a mere tap of the horn botton or even the H key. and it changed the type of horn sound used. (though it sounded really good to me.)
 
Customizing.

On my old hard drive, before it crashed and I lost everything, I had something similar to what you are looking for. I had the bell ringing and a horn pattern blaring, that was the easy part, but I also had the ditch lights flashing at one point, though I cannot remember how. The bell can be done by adding a send bell message and I had the horn pattern hard-coded into the script. I am now looking into a non hard-coded way of doing it with environmental variable speed, and loops. I should have bnsf50 before engaging in this quest although I do not plan to post any of it. I will continue to look into the ditch lights though.
 
On my old hard drive, before it crashed and I lost everything, I had something similar to what you are looking for. I had the bell ringing and a horn pattern blaring, that was the easy part, but I also had the ditch lights flashing at one point, though I cannot remember how. The bell can be done by adding a send bell message and I had the horn pattern hard-coded into the script. I am now looking into a non hard-coded way of doing it with environmental variable speed, and loops. I should have bnsf50 before engaging in this quest although I do not plan to post any of it. I will continue to look into the ditch lights though.

It is good to hear that it can be done. I was actually also looking at one of the Amtrak engines. The strobes come on when you are under 25 mph. I think that would be great to work into a script also, so that the ditch lights came on under a certain speed.

If anyone knows where I can get documentation, I would appreciate it. I would write these myself, but I can't find docs.
 
Last edited:
API

I also have the documentation on my comp but don't remember where I got it. You have to execute a program inside your bin folder and redirect it into a file (for easier reading) but I can't remember the command, I'm looking. Note this API may not be complete and is not very detailed.

edit - Found it. It's inside Trainz Util. You have to run TrainzUtil.exe with the -d flag. And its more for generic gamescript programming so I don't know if it will be much help for this task.
 
Last edited:
Back
Top