Changing signal trigger distances?

Veristek

New member
Hi all.

I was wondering if it's possible to reduce the signal trigger distance so that signals don't go "Signal ahead is within overlap distance"? As far as I know, the overlap distance is approximately 45 meters or so, but some of my junctions and such are between 20 - 40 meters especially in the maintainence + storage yard I'm building.

Is there a way to make the "overlap" distance reduce to like 20 meters instead of 45? If yes, then how?

Also, what are the effects if I do reduce the signal overlap distance? Will AI trains stop sooner, or will they "lag" more (or overshoot further) when they try to stop at signals?
 
Not quite sure what it is you are after. The signal reads the track ahead as far as the next signal. If the junction is set against that track it sees the junction as end of line and shows red. If you are refering to the distance the train sees the signal then that is set for the whole sim in the trainzoption file. The later a train sees the signal the more chance of it passing at red.
 
There are about 2 lines in the signal script that need to be changed, if you are making the signals yourself and not using someone else's signals then I can change the script and send it to you with instructions on how to add it to the config (2 added lines)
 
I'm using a few built-in signals (Signal 3 Gantry and the US 2-04 + US 2 04-05). What are the lines of code that I need to make those signals work?

More specifically, how do I get those signals to have shorter trigger radius for inside yards and terminus stations (all those switches) while keeping their original trigger radius for the rest of the layout (mainlines and long sidings)?
 
  1. Clone the signals you want to change
  2. Open the clone in explorer
  3. Open the config.txt file in notepad
  4. Edit the line that starts with username, this is the name that shows in the surveyor list
  5. Add these 2 lines
    Code:
    script                                  "MySignal"
    class                                   "MySignal"
  6. Save and close config.txt
  7. Create a new file named MySignal.gs and put in the following code, replace <overlap_dist> with the distance you want in meters, NUMBER ONLY
    Code:
    include "signal.gs"
    
    class MySignal isclass Signal
    {
    	public float GetOverlap(void) {
    		return <overlap_dist>;
    	}
    };
 
  1. Clone the signals you want to change
  2. Open the clone in explorer
  3. Open the config.txt file in notepad
  4. Edit the line that starts with username, this is the name that shows in the surveyor list
  5. Add these 2 lines
    Code:
    script                                  "MySignal"
    class                                   "MySignal"
  6. Save and close config.txt
  7. Create a new file named MySignal.gs and put in the following code, replace <overlap_dist> with the distance you want in meters, NUMBER ONLY
    Code:
    include "signal.gs"
    
    class MySignal isclass Signal
    {
        public float GetOverlap(void) {
            return <overlap_dist>;
        }
    };
Will this script work as-is in 06, or just 2010?
Thanx
 
Back
Top