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

Which traffic does "clear traffic" clear? #35

Closed
originalfoo opened this issue Feb 7, 2019 · 9 comments
Closed

Which traffic does "clear traffic" clear? #35

originalfoo opened this issue Feb 7, 2019 · 9 comments
Labels
DESPAWN TOOLS Feature: Clear traffic, toggle despawn, vehicle/parked/cim despawns docs Documentation question General question

Comments

@originalfoo
Copy link
Member

Doing new docs for "clear traffic" tool and it's not clear from old docs what traffic is cleared.

I assume all road traffic, but does that include cims, busses, trams, bicycles? What about other forms of traffic, such as cargo ships, ferries, trains, balloons, etc?

Is it possible to determine from the code what it clears?

@krzychu124
Copy link
Member

Yup is is possible, look (easy stuff, I think ) 😉
https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/blob/f574f0dc24ece8a5abe08769561008aacbbdba2b/TLM/TLM/Manager/Impl/UtilityManager.cs#L22-L33

It simply releases(despawn) every spawned vehicle (car, bus, tram, train etc.) and resets traffic data from all road segment(traffic flow, relative speed per lane etc.)

@krzychu124 krzychu124 added question General question done labels Feb 7, 2019
@originalfoo
Copy link
Member Author

Does vehicle manager include pedestrians, dogs, seagulls, etc?

My assumption is that cims and animals are handled by CitizenManager and other things?

@krzychu124
Copy link
Member

Yes they are.
Vehicle manager is managing following types of vehicles:
Rocket | Balloon | Blimp | CableCar | Monorail | Ferry | Vortex | Meteor | Helicopter | Tram | Bicycle | Plane | Ship | Train | Metro | Car

Animals have separate AI based on AnimalAI which is managed by CitizenManager, I think:
BirdAI(Seagull) | LivestockAI(Cow, Pig) | PerAI(Dog) | RescueAnimalAI | WildlifeAI

@originalfoo
Copy link
Member Author

Are vans, trucks, emergency services, etc, grouped as CAR?

@krzychu124
Copy link
Member

krzychu124 commented Feb 7, 2019

Yup, 'Car' is general type, I will check that 😉
[Edit]
Yes, that's what I thought, TMPE just splits Car to more specific types of RoadVehicle see:
https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/blob/f574f0dc24ece8a5abe08769561008aacbbdba2b/TLM/TLM/Traffic/ExtVehicleType.cs#L7-L37

@originalfoo
Copy link
Member Author

That's missing cargo planes?

Also, what about things like postal vans/trucks?

@originalfoo
Copy link
Member Author

originalfoo commented Feb 7, 2019

I notice Pedestrian is in there too... So shouldn't their ```PerAI`` animals also be despawned?

@krzychu124
Copy link
Member

krzychu124 commented Feb 7, 2019

Ooops, wrong branch 😅
https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/blob/559b624c4ddb720ded7488ef7baba189e398e1d5/TLM/TLM/Traffic/ExtVehicleType.cs#L7-L38

In addition I have no idea why there is Pedestrian. Interesting that my code editor points that it is never used and I think that dogs can't spawn without cim (IIRC)

@originalfoo
Copy link
Member Author

Added a list of affected traffic to the FAQ in docs: https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/wiki/Clear-Traffic

@originalfoo originalfoo added the docs Documentation label Feb 16, 2019
@originalfoo originalfoo added the DESPAWN TOOLS Feature: Clear traffic, toggle despawn, vehicle/parked/cim despawns label Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DESPAWN TOOLS Feature: Clear traffic, toggle despawn, vehicle/parked/cim despawns docs Documentation question General question
Projects
None yet
Development

No branches or pull requests

2 participants