trainz won't stop at passenger station

ffccnn

Member
I can't figure out why the train doesn't stop in front of the passenger station.
The stations I am using are
TUME-Station-E-110x7m-101,<kuid2:82412:5000071:1> and
TUME-Station-E-110x7m-201,<kuid2:82412:5000072:1>

I tried many different consists, I replase those stations with Brick Station small,<kuid:-3:10211>
and every thing works as expected.

what could be wrong? there are not many options to configure: I tried small, standard and large station setting as well as morning, evening and double peak to no avail.

http://youtu.be/8S_DKJmwZv4

thanks for any help :'(
 
I got it!
It was the bloody script. This is my new script:

Code:
bool TriggerSupportsMassStoppedLoad(Vehicle vehicle, string triggerName) {
  bool vehicleToTrain = vehicle.GetFacingRelativeToTrain();

  if (triggerName == "trigger_track_0_a" or triggerName == "trigger_track_0_c") 
  {
   int direction = vehicle.GetRelationToTrack(me, "track_0");
   if (!vehicleToTrain) 
    direction = -direction;
   if (direction == Vehicle.DIRECTION_BACKWARD and triggerName == "trigger_track_0_c") 
    return true;
   if (direction == Vehicle.DIRECTION_FORWARD and triggerName == "trigger_track_0_a")  
    return true;
  }
  
  if (triggerName == "trigger_track_0_a" or triggerName == "trigger_track_0_b" or triggerName == "trigger_track_0_c") 
  {
   if (vehicle.GetMyTrain().IsStopped()) 
    return true;
  }
  return false;
}

My train has 4 passangers cars. With the new script 3 cars are in front of the station. I think that tweeking the trigger radious will alllow the train to move a little more to enter the 4th car in the station.

what a pain, the whole weekend trying to solve this problem :D
 
Last edited:
yes, my first try to set a new trigger radius improves a lot moving the train to almost a perfect position:
It is a big improvement. Now the radius settings are 4,50 and 4.



Uploaded with ImageShack.us
 
Back
Top