CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
577 stars 85 forks source link

Existing vehicles struggle if Parking AI activated while they are driving? #409

Open originalfoo opened 5 years ago

originalfoo commented 5 years ago

Temporary workaround

Use "Clear Traffic" button on toolbar to remove existing traffic, it will all respawn and park just fine.


From a user on the LABS page:

tenderloveheart: still getting the trying to find parking spot, stopped in the middle of the road, causing traffic jam problem with labs 10.21. Most of the vehicles are trying to visit a vanilla park, in a residential zone with no street parking due to using tree lined street. will continue to invesitgate, since others are reporting it as fixed.

Bit later:

tenderloveheart: I further investigated the trying to find parking spot problems... Went back to my save before turning on parking AI, with labs installed, paused game, turned on parking AI, cleared all parked vehicles, cleared all traffic. unpaused game, let it run, traffic in my 80,000 pop town, is running along at 69 to 73% just like before, parking AI was turned on. Let it run for 3 hours. No stuck looking for parking traffic jams

So the problem appears to be with the changing of the pathfinding in the middle of a trip...

Since I made all the traffic start over with the parking in mind, no confusion on finding a parking spot. Thanks to the authors for this wonderful mod.

Seems plausible, but I don't know enough about Parking AI to say for sure.

originalfoo commented 5 years ago

More confirmations of this issue from multiple users:

Shadertheboi: As you mentioned, when you "clear traffic", the issue does not seem to exist anymore.

Perhaps when the new version of TMPE is being loaded, it's good to clear all traffic and parked vehicles to let the mod run a fresh start on all vehicles entering and "popping in" into your city.

Because I can confirm that the parking AI issue has been fixed because there are no more crazy chaotic jams in my CBD area anymore, (besides during peak hours but the traffic will ease by itself).

another:

mlind1981: Update on the parking issue. I did the same steps as the others. And it works fine. What seems to be the problem is that my old cpu can't handle it long term in my 600k city where parking AI simply takes it over the edge. I'm going to leave it at that until my new rig arrives in a week or so then I will give it another shot and report back.

originalfoo commented 5 years ago

Summary of issue:

Seems that the parking bugfixes in 10.21 work great, but aren't being applied to previously affected vehicles (those spawned during 10.20 release).

originalfoo commented 2 years ago

@krzychu124 Do you think we should add something that despawns (or repaths?) parking vehicles when Parking AI is toggled? If so I'd like to add that in 11.6.5.1 release if possible while related mod options are being updated.

Or is that no longer needed now we have infrastructure to selectively despawn on pathfinder updates?

krzychu124 commented 2 years ago

I'm not sure if they are despawned. I need to check the code. I'll keep in mind while working on "selective disable despawn"