What happened?
When a one train staff controlled train toggles back to drive_by_sight at a cabinet, it will immediately clear the whole reservation except for the front of the train.
See the attached reproduction case and watch the train moving.
Observations:
- The train will properly enter the onr train staff controlled section.
- The train will continue to the dead-end and reverse there.
- After reversal it will properly continue to the exit.
- When leaving the one train staff controlled section, the whole reservation except for one tile will be cleared
- - This will leave unreserved tiles underneath the train
This will not cause any issues on its own but can be used for some exploitation and currently will lead proper one train staff layouts to deadlock when unluckily combined with two further one train staff bugs.
To see this happening, simply start the two trains from the depot in the other track layout.
I will give a short description of how the 3 mentioned bugs interact here:
Observations (combined):
- The train will enter the one train staff controlled section reservating up to the dead-end but up to the exiting cabinet.
- The train will continue to the dead-end, reverse and continue to the exit.
- At the exit, the train will clear the whole reservation except for one tile. (the bug described above)
- The next train will immediately enter the one train staff controlled section, reservating up to the dead-end. (See
one_one_train_staff reserves too few tiles in some cases)
- - This train will pass through the other one.
- The Train that just left the one train staff controlled section will now unreservate each tile it leaves, although it's not its own reservation!
- - There will be an unreservated area within the one train staff controlled section left behind.
- The train that just left the section will pass the loop and continue to the entering cabinet.
- At the entering cabinet it will immediately greedily reservate as many tiles as possible, although it can not yet enter the section as it is still occupied. (See
one_train_staff greedily reservating tiles it can not yet enter)
- The train in the one train staff controlled section reversed in the meantime and will continue up to the reservation of the other train, which it is not allowed to enter!
- Happy deadlockickng!