The International Simutrans Forum

 

Author Topic: 11.22 - Reverse order bug?  (Read 1155 times)

0 Members and 1 Guest are viewing this topic.

Offline Ves

  • Devotee
  • *
  • Posts: 1611
  • Languages: EN, SV, DK
11.22 - Reverse order bug?
« on: March 18, 2014, 10:02:31 PM »
Hi again there.. I think I got a bug   :)

A train reaches a terminal and are about to reverse in the other direction:

When an engine is bidirectional, it will move itself to the other end of the convoy, no problem there.
When two (or more) engines are coupled together, the entire 'engineblock' will go to the other end of the convoy AND they all shift orders, so it is the same sequence of engines that leads the convoy both way.
This would in real life mean that all locos would be decoupled from each other, and all of them make roundabouts around each other and then coupled again in the other end of the convoy. Maybe not entirely realistic (I dont know), but it usualy creates no problems in the game.

The problem have is when you have multiple engines that cannot be separated and therefore should behave like one single engine. This screenshoot illustrates this very well:


The engines are constrained to each other, and the second part have "can_lead_from_rear=1" in the dat.

Am I doing something wrong, or is it a bug?

If its a bug, could it be possible to maybe make the entire engineblock not shift order when reversing, just behave like if its one vehicle?

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18410
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: 11.22 - Reverse order bug?
« Reply #1 on: March 18, 2014, 11:42:24 PM »
Thank you for the report - can you upload a saved game in which this can be reproduced?

Offline Ves

  • Devotee
  • *
  • Posts: 1611
  • Languages: EN, SV, DK
Re: 11.22 - Reverse order bug?
« Reply #2 on: March 19, 2014, 12:45:34 AM »
Here is a savegame along with what I think you need of pakfiles. its on my Dropbox folder in a .zip called "Reverse order bug.zip"

In the savegame, now I notice that also the two cars are shifting position... Did not see that before

Offline Junna

  • Devotee
  • *
  • Posts: 1081
Re: 11.22 - Reverse order bug?
« Reply #3 on: March 20, 2014, 02:21:40 AM »
Leave out "can lead from rear" for the second section, and it should work. (will be completely reversed, but in correct order).

Offline Ves

  • Devotee
  • *
  • Posts: 1611
  • Languages: EN, SV, DK
Re: 11.22 - Reverse order bug?
« Reply #4 on: March 20, 2014, 09:59:48 PM »
No it doesn't work by leaving out "can_lead_from_rear=1" (just tried). Same behaviour. Maybe you meant to remove the "bidirectional=1"? But then the entire loco-block is turned around, making a high 'reversing' penalty. It should ideally be bidirectional, yet not change its internal order.