Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plaza and Pedestrian Zones have broke Realistic Parking Feature #1655

Closed
Bigs2013 opened this issue Sep 25, 2022 · 10 comments · Fixed by #1661
Closed

Plaza and Pedestrian Zones have broke Realistic Parking Feature #1655

Bigs2013 opened this issue Sep 25, 2022 · 10 comments · Fixed by #1661
Assignees
Labels
BUG Defect detected confirmed Represents confirmed issue or bug high priority Affects lots of users PARKING Feature: Parking AI / restrictions / etc PATHFINDER Pathfinding tweaks or issues STABLE TM:PE STABLE branch TEST TEST version of the mod / workshop page
Milestone

Comments

@Bigs2013
Copy link

Describe the problem

Steps to reproduce

  1. Create Ped Zone
  2. Zone Ped Zone
  3. Let Game run a bit before a car becomes utterly confused and breaks itself blocking up traffic for miles

Screenshots?

https://gyazo.com/1139ef27e2209102f1ab6eb7d975f513

Notes or questions?

@Bigs2013 Bigs2013 added BUG Defect detected triage Awaiting issue categorisation labels Sep 25, 2022
@krzychu124
Copy link
Member

Cars get confused because you've placed parking spots near pedestrian streets that cars are not allowed to use.
Parking AI works like this:

  • citizen is forced to park his car
  • TMPE is searching for parking spot (either building parking or parking lane)
  • TMPE is trying to find path between current car position and parking spot (here everything fails).
    DLC didn't break Parking AI. The feature has never handled correctly a scenario where access to parking spot is restricted

@Bigs2013
Copy link
Author

Cars get confused because you've placed parking spots near pedestrian streets that cars are not allowed to use. Parking AI works like this:

  • citizen is forced to park his car
  • TMPE is searching for parking spot (either building parking or parking lane)
  • TMPE is trying to find path between current car position and parking spot (here everything fails).
    DLC didn't break Parking AI. The feature has never handled correctly a scenario where access to parking spot is restricted

Nope, Ill attach save file
https://gyazo.com/b939809a92c94f73339fe422da1ab038

@krzychu124
Copy link
Member

Yeah, savegame would be useful, either file or share via Steam (guide in the wiki)

@Bigs2013
Copy link
Author

Yeah, savegame would be useful, either file or share via Steam (guide in the wiki)

Here ya go https://steamcommunity.com/sharedfiles/filedetails/?id=2867763274

@krzychu124 krzychu124 self-assigned this Sep 25, 2022
@krzychu124 krzychu124 added the PARKING Feature: Parking AI / restrictions / etc label Sep 25, 2022
@krzychu124
Copy link
Member

They stuck because of your road settings.
Vehicle is waiting on green segment at the bottom. Wants to park at red segment but on the road side that goes downwards.
It's impossible (most likely path is too long since it forces car to go to the main city far on the right to do a U-turn somewhere).

image

Notice lane connections (cars cannot ignore those). U-turn is not allowed, segment on the right allows only for incoming flow of vehicles so vehicles which exit from the main road are trapped inside.
image

Reverse direction of the highway road on the right or remove lane connections and allow U-turn and vehicles will immediately unstuck.

Here another potential problem. Depends on where is the vehicle it may also stuck because of no path (cannot use pedestrian street to access parking)
image

@Bigs2013
Copy link
Author

Alright well that explains that but what about in the main City at the T intersection, why are vehicles getting stuck there?

@Bigs2013
Copy link
Author

Also, why don't they just reroute to a different spot instead of getting stuck?

@Bigs2013
Copy link
Author

They stuck because of your road settings. Vehicle is waiting on green segment at the bottom. Wants to park at red segment but on the road side that goes downwards. It's impossible (most likely path is too long since it forces car to go to the main city far on the right to do a U-turn somewhere).

image

Notice lane connections (cars cannot ignore those). U-turn is not allowed, segment on the right allows only for incoming flow of vehicles so vehicles which exit from the main road are trapped inside. image

Reverse direction of the highway road on the right or remove lane connections and allow U-turn and vehicles will immediately unstuck.

Here another potential problem. Depends on where is the vehicle it may also stuck because of no path (cannot use pedestrian street to access parking) image

Alright I went ahead and did a quick test and allowed U-turns at that intersection but cars still got stuck at those intersection, but if you look at the buildings they are trying to go to they are all in the pedestrian ahead hence my belief its to do with the Ped Areas, also PS I did try removing ALL parking lots just as a quick bug test but that didn't fix the issue

@krzychu124
Copy link
Member

I found some weird issues in the pathfinding. The reason why vehicles can stuck is pathfinding returns path that contains incorrect lanes (non-vehicle), but only if Parking AI is enabled. I'm working on fix.

@krzychu124 krzychu124 added high priority Affects lots of users confirmed Represents confirmed issue or bug in-progress The problem is being solved currently STABLE TM:PE STABLE branch PATHFINDER Pathfinding tweaks or issues TEST TEST version of the mod / workshop page and removed triage Awaiting issue categorisation labels Sep 27, 2022
@krzychu124 krzychu124 added this to the 11.7.1 milestone Sep 27, 2022
@HenryLoenwind
Copy link

. I'm working on fix.

BTW: I noticed this issue here, too, but even for cars that want to go to a destination that is nowhere near the pedestrian road.

I started my pedestrian road by changing the last 2 segments of a cul-de-sac to be pedestrian roads. Now cars get stuck when driving by the junction that goes into that road, even when they want to go to a target that is 5 blocks away. They seems to always be on the turn lane that leads in the opposite direction of the pedestrian zone, even though they'd need to go straight to get to their destination.

I just watched the Traffic Routes overlay for a couple of minutes and I noticed several cars driving weird routes. One drove past the left turn into its destination, followed the road for 8 blocks, turned around in a side street, passed by its destination, did a u-turn and then turned left into into its home street. This may be the reason why cars that only need to pass by near the pedestrian street segment get suck?

Which reminds me that I spent most of the evening yesterday nailing down lane permissions to make it impossible for my busses to randomly turn left or right instead of following their route. Interestingly this only happend on the street that passes by the cul-de-sac which ends in pedestrian road segments.

TL;DR: This also affects vehicles that have no reason to go into/through a pedestrian road by just being near it.

@krzychu124 krzychu124 removed the in-progress The problem is being solved currently label Oct 1, 2022
@krzychu124 krzychu124 mentioned this issue Oct 2, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Defect detected confirmed Represents confirmed issue or bug high priority Affects lots of users PARKING Feature: Parking AI / restrictions / etc PATHFINDER Pathfinding tweaks or issues STABLE TM:PE STABLE branch TEST TEST version of the mod / workshop page
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants