Erabior / RouteManager

Mod for Railroader the game that adds basic automation for passenger routes
12 stars 6 forks source link

Train left whittier before unloading all passengers #36

Open Voidheartd opened 8 months ago

Voidheartd commented 8 months ago

Just had a train arrive at Whittier, start unloading passengers then depart before they were all unloaded. Player.log

Erabior commented 8 months ago

wow. I did not think this was possible essentially what I believe happened here is that the train was taking on exactly the same number of passengers every second as it was dropping off. I was hoping that my updated logic for detecting the end of embarking/disembarking would catch all edge cases but clearly if you have an even number of cars and the passenger load is evenly uneven between half of the cars then this is likely to happen. Thankfully i have already thought of the solution but I will have to do some digging into the game's code to see exactly how im going to write the code to change the logic.

Voidheartd commented 8 months ago

I actually have 3 cars, the starter 1900 and 2 1915s. I think I may just quickly replace the 1900 now with another 1915 to try to avoid this until there's a solution

AdamC1228 commented 8 months ago

I have published an alpha build of the V2 rewrite. Please test and report back if the new code shows any improvement on this issue.

AdamC1228 commented 7 months ago

Closing due to inactivity and V2 improvements address this.