News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Bug: Reversing drive by sight convoy does not clean up way reservation.

Started by DrSuperGood, February 21, 2018, 06:29:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DrSuperGood

If one orders a drive by sight convoy to reverse direction it does not free up the way reservations for the original direction. At least according to the block reservation view UI. These will be freed on map reload.

jamespetts

Thank you for the report. Are you able to upload a saved game in which this issue can reliably be reproduced in a specific place at a specific time?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

DrSuperGood

Load save. Press shift+B to enable block view. Notice how blocks are reserved behind the direction the train is going.

To recreate use a similar setup. When the convoy is half way between the stops start ordering it in opposite directions and allow it to advance a few tiles until it makes new block reservations. Keep repeating this until it eventually breaks and leaves a huge reservation behind it. The result is what is visible in the save.

I do not know if this is block reserve UI only or if it effects game play. I think it effects gameplay judging by what some of my convoys did on the server.

jamespetts

I am afraid that I am having trouble reproducing this. Can you be more specific about the precise steps necessary to reproduce this reliably? It must be deterministic, or else players would be repeatedly losing synchronisation with the server.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

DrSuperGood

Immediately upon load pause and select the convoy. Change schedule to the other stop it is not currently going to, the line only has 2 stops. Enable block view with shift+B. Resume.

Watch as the convoy reaches the end of its currently reserved block, reserves more and then leaves its original block reservation intact behind it. Once it reaches its stop all block reservations are undone, but until then that bit of the line behind it will remain reserved acording to the UI.

Note this save file is different from the last, please download again.

jamespetts

That is very odd - I am afraid that I still cannot reproduce this. When I close the schedule window and then resume, on resuming, the block heading towards land stop 1 Railway Station is unreserved immediately. I should note that I have downloaded the latest version of the save. The behaviour is the same whether I pause before or after closing the schedule window.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

nochiu

I can see the bug in latest nightly.

jamespetts

Can anyone confirm whether this bug can be reproduced? I was never able to reproduce this, so have been unable to attempt to fix it (if it still exists).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

waerth

I have had this bug when two trains try to use the same track in opposite directions. I reverse one of the 2 trains but the other will then stay stuck saying waiting for clearance. Not untill I delete all the tracks and rebuild is the clearance removed

jamespetts

Are you able to upload a saved game in which this can reliably be reproduced at a specific time and place?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

waerth

I just found out about the b button and build some unrealistic trackconfigs to solve things :p

jamespetts

Has anyone been able to produce a saved game in which this issue can reliably be reproduced at a specific time and place?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Rollmaterial

It should happen when you open and close the schedule editor of a train while it is travelling diagonally. It will then "reverse" without actually reversing.

jamespetts

Thank you for that. I tried to reproduce this, but cannot fully reproduce this: there is the odd reversing, but I did not see any problems with way reservations. I believe that the mis-positioning of the train in this situation comes from Standard, as I have not altered the code for vehicle positioning: can anyone confirm whether this is the case?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.