Vectorial1024 / PublicTransportUnstucker

Unstucks public transport by fixing known causes of stucking.
https://steamcommunity.com/sharedfiles/filedetails/?id=2774427140
2 stars 0 forks source link

Tram-related stucking #3

Open Vectorial1024 opened 2 years ago

Vectorial1024 commented 2 years ago

Initial hypothesis: this is totally unrelated to the Citizen Runaway Problem.

Situation:

It seems that trams can randomly enter the "confused" state and "fold onto themselves", causing them to get stuck and blocking the other trams nearby.

I have observed similar situation before when one time I was adjusting train tracks, and at a certain angle, the train could not snap to the new tracks, The train started "folding onto itself", and was promptly despawned. Interesting that the trams could not do this...

Vectorial1024 commented 2 years ago

It would seem that this bug is more likely to occur if you are using tram assets with multiple cars (eg the vanilla tram). In the meantime you are recommended to not use multi-car tram assets, until I or someone discover the cause for trams to suddenly enter the "confused" state.

Cosby5 commented 2 years ago

This problem is not limited to this mod, I've observed this problem and I just discovered this mod (Yet to install it).

Vectorial1024 commented 2 years ago

This mod is supposed to try and fix known issues of public transport, so the more problems we find, the better. There gotta be some (maybe undocumented) known issues out there, but currently I only know of how to properly identify and fix the eg Citizen Runaway Problem.

Edit: there are other types of known issues where it is known, but there is no known way of properly identifying it and fixing it, such as the issue of "taxi waiting road block", where CIMs waiting for taxi may just stand inside the road and block traffic.

Vectorial1024 commented 1 year ago

...it seems I have gained more knowledge of this problem when working on https://github.com/Vectorial1024/ExpressBusServices/issues/11

Basically, what I now suspect is that TLM is causing this bug. Hypothesis: when TLM is checking for their "express tram" feature, TLM did not check for tram vehicle trailers, so each individual tram cars may decide to depart or not independent of each other. When a tram car decides to depart but other tram cars are not ready yet, the entire tram "folds into itself" and becomes "confused".

Quick test is to disable TLM's express trams but enable Express Bus Services (the mod) express tram mode; any of the two modes should do. Then, there should no longer be any "self-fold confused" trams.