The International Simutrans Forum

 

Author Topic: Annoying route: (un)wanted behavior?  (Read 2651 times)

0 Members and 1 Guest are viewing this topic.

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Annoying route: (un)wanted behavior?
« on: June 02, 2013, 07:10:23 PM »
I have noticed that some of my trains take one time and another the slowest possible route in some crossings, where curve angle could be higher by selecting a different path. Example can be seen at the picture attached, where the first train always takes the 'red' slow route (30 km/h) while the 'green' one would be far quicker (58 km/h). This happens with RC-11.90001; can't test with RC-11.9006 because I got an exception if I try to load my savegame. I can try to reproduce this in a new game if needed.

Usually I design better and more spacious routes/railways most of the time for station loops (to avoid ugly and slow reversing thing), but in this specific case there's a matter of space, cuz it's at the docks, very near to the downtown and it's difficult to find any place there without bulldozing half of the city :(

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Annoying route: (un)wanted behavior?
« Reply #1 on: June 02, 2013, 08:11:40 PM »
Hmm - I haven't really altered the routing system from Standard - it may well be that it fails to account for the fact that diagonal is better, because, in terms of simply counting numbers of tiles, both routes are equal. As an interim measure, you could just use a waypoint on the diagonal tile.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9595
  • Languages: De,EN,JP
Re: Annoying route: (un)wanted behavior?
« Reply #2 on: June 02, 2013, 08:16:32 PM »
The problem is, that the train is directly in front of the turning tile. As such there is no penalty possible to calculate in the routing, since for simutrans it is either a diagonal start. Thus for the first tile, if it is not the same direction as the engine, and 90 degree curve malus is added. Thus routing would be similar when the train would start one tile in the back.

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: Annoying route: (un)wanted behavior?
« Reply #3 on: June 02, 2013, 08:42:02 PM »
Thank you for your efforts but I'm sorry I don't understand very well your explanation, prissi...
Does that mean that I should add at least one straight tile before the "curve" in order to allow the train to calculate the "best" route?

PS: Ten minutes later, same game, a train entering that same station, see attached pic... that train driver will be fired right away!!!
« Last Edit: June 02, 2013, 09:15:24 PM by Zeno »

Offline isidoro

  • Devotee
  • *
  • Posts: 1130
Re: Annoying route: (un)wanted behavior?
« Reply #4 on: June 02, 2013, 10:04:07 PM »
Can the driver be possibly, let's say, drunk?


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9595
  • Languages: De,EN,JP
Re: Annoying route: (un)wanted behavior?
« Reply #5 on: June 02, 2013, 10:14:56 PM »
Do you play around with your settings for the route searching weights?

Offline Vonjo

  • *
  • Posts: 273
Re: Annoying route: (un)wanted behavior?
« Reply #6 on: June 03, 2013, 08:01:46 AM »
PS: Ten minutes later, same game, a train entering that same station, see attached pic... that train driver will be fired right away!!!
Can the driver be possibly, let's say, drunk?
No, train drivers only follow path provided to them. They can't turn the train left or right. ;)

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: Annoying route: (un)wanted behavior?
« Reply #7 on: June 03, 2013, 09:58:04 AM »
Do you play around with your settings for the route searching weights?
I use default settings for almost everything... I can check them out when I'm back at home this afternoon and let you know, but I guess they will be the default ones.

Can the driver be possibly, let's say, drunk?
That's not possible: alcoholic drinks won't be ever coded in Simutrans (there are kids playing)! But at least he's an extravagant driver! 8)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Annoying route: (un)wanted behavior?
« Reply #8 on: June 03, 2013, 11:21:46 AM »
That's not possible: alcoholic drinks won't be ever coded in Simutrans (there are kids playing)! But at least he's an extravagant driver! 8)

Hmm - not so: Pak128.Britain has beer and cider!

Offline Carl

  • Devotee
  • *
  • Posts: 1616
    • Website
  • Languages: EN
Re: Annoying route: (un)wanted behavior?
« Reply #9 on: June 03, 2013, 12:45:12 PM »
I've noticed this on rare occasions. It usually only happens when arriving or (more often) leaving at a station with a "lattice" junction like the one on the above screenshot.

Offline Fifty

  • *
  • Posts: 280
  • Languages: EN, ES
Re: Annoying route: (un)wanted behavior?
« Reply #10 on: June 03, 2013, 11:40:50 PM »
I think this is a standard problem, as I've see it occur in unmodified standard. Is there a choose signal before the station? The only place I've noticed this problem occurring other than in the situation prissi noted is when choose signals were involved. Maybe there's an error in logic there? Removing unnecessary interlockings helps, but sometimes it is unavoidable and very annoying.

I use default settings for almost everything... I can check them out when I'm back at home this afternoon and let you know, but I guess they will be the default ones.
That's not possible: alcoholic drinks won't be ever coded in Simutrans (there are kids playing)! But at least he's an extravagant driver! 8)

I think there's beer in most paksets... But anyway, it is clearly the dispatcher or switch man who is mildly inebriated :)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Annoying route: (un)wanted behavior?
« Reply #11 on: June 03, 2013, 11:49:55 PM »
I am moving this to the Standard forum, as we have two independent confirmations that this occurs in Standard. I shall leave it as a matter for the Standard developers/moderators whether this remains to be considered a bug or should be transferred to the extension request section.