Coder Social home page Coder Social logo

Comments (3)

VictorPhilipp avatar VictorPhilipp commented on July 2, 2024

Suggested solution (already in the process of being implemented):

1. If a cim owns a parked vehicle:
1.1 If their current path requires using a car then they first walk to the parked vehicle and enter it.
1.2 If there is no free parking space near the target location: Use Advanced Parking AI (#29) to find an alternative parking space.
1.3 If the process succeeds park the car. If the process of finding a parking space fails N times: cim and car despawns.
2. If a cim does not own a parked vehicle:
2.1 Try to spawn a parked vehicle in the vicinity of the starting point.
2.2 If successful, go to 1. Else abort.

from cities-skylines-traffic-manager-president-edition.

DaEgi01 avatar DaEgi01 commented on July 2, 2024

Hmmm... I don't like 1.3 and 2.1 since it is not realistic, but I guess it is a necessary evil.
Thank for doing such awesome stuff for C:S!!!

If I could wish me a solution, I guess I would go for the following:
1.3 If the process succeeds park the car. If the process of finding a parking space fails N times: keep looking and increase the searching radius, but increase unhappiness for each time it fails.
After N+M times park illegally wherever possible (I guess the game engine does not work like that though ;))
There should be a way to query parking situation data for each cim individually and a district aggregated to be able to find out how bad it is.
Remember how often parking failed for each cim. If the last x times parking took more then y tries, the cim should avoid using the car at all.

2.1 try to call a taxi if taxis are available.
if there is no taxi available or if it too much time has passed, pick another route to destination and walk if necessary but reduce happiness.

Anyway ... any improvement is great, so thanks again :)

from cities-skylines-traffic-manager-president-edition.

VictorPhilipp avatar VictorPhilipp commented on July 2, 2024

First working version is implemented in v1.8.0.

"Illegal parking" (let's say parking on a sidewalk) is not doable (at least currently) because this would also require a mechanism to remove those parked cars (e.g. a towing service). Additionally, cims would need to evade illegally parked cars on sidewalks.

I like the idea of calling a taxi or using public transport in general. However, there are cases where public transport is unavailable AND the target location is not accessible by walking (highways do not have pedestrian paths for example and walking is only possible within a limited distance).

from cities-skylines-traffic-manager-president-edition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.