Cities: Skylines

Cities: Skylines

141 ratings
Enhanced Garbage Truck AI [Fixed for v1.4+]
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
30.208 KB
Dec 25, 2015 @ 7:23am
Mar 27, 2016 @ 8:20am
25 Change Notes ( view )

Subscribe to download
Enhanced Garbage Truck AI [Fixed for v1.4+]

Description
Compatible with patch 1.4.0-f3 (SnowFall).
I fixed Skylines Overwatch for SnowFall.

Note: To use this version you need to unsubscribe original version first, and then subscribe to my version.
Note: I have changed the code, so this may conflict with other mods' code.

The following description was quoted from the original version.
──────────────────────
Overview
Comparing to the vanilla AI, this AI:
1. Dispatches as many garbage trucks as necessary, as long as the landfills/incinerators are not full. You should no longer see landfills/incinerators not sending out idling garbage trucks, while your city is being overrun by trash.
2. Routes garbage trucks to pick up garbage efficiently. For a given pattern of trash pickups, garbage trucks will be dispatched to resolve the pattern as quickly as possible. This AI would even automatically send "backup", if it seems like the dispatched garbage truck cannot complete the job.

Details
There are two sets of important concepts to keep in mind for this mod:
1. Inside vs outside a district
2. Primary vs secondary pickup zone

Inside a District
If a landfill/incinerator is inside a district, then:
1. Its primary pickup zone is the district
2. Its secondary pickup zone is its effective area, which is specified by the game as a radius range with the building as the center. This area is approximately 50% of one tile.

Outside a District
If a landfill/incinerator does not belong to any district, then:
1. Its primary pickup zone include all the areas within its effective area that does not belong to a district
2. Its secondary pickup zone is the rest of its effective area

Pickup Priority
Garbage trucks will always prioritize buildings in their primary pickup zone. However, there are several rules within this general rule:
1. Between problematic buildings (those showing the garbage sign) and nonproblematic ones (those that have no visual clues), garbage trucks will prioritize the problematic ones for pickup
2. However, if they come across a nonproblematic one along their way, they will pick it up first; but only if it is not behind them
3. If there is a closer building of the same priority, they will redirect to the closer one; but only if it is along the original bearing

Efficiency vs Urgency
The pickup priority above exists to achieve a good balance between making the garbage trucks as efficient as possible vs keeping your CIMs as happy as possible. When you see a garbage sign, that means a building has become a nusance and your CIMs are not happy about it. But if we were to prioritize getting rid of the garbage signs as fast as possible, we would have to take a large hit on overall efficiency. On the other hand, if we were to do the opposite, then we would be ensuring maximum efficiency at the risk of losing buildings to abandonment. The existing setup benefits from both approaches by prioritizing problematic buildings for overall bearing, but at the same time allowing pickups of nonproblematic buildings along the way.
──────────────────────

See Also: Skylines Overwatch [Fixed for v1.3+]
Original version: [ARIS] Enhanced Garbage Truck AI
Source: https://github.com/akira-ishizaki/CS-EnhancedGarbageTruckAI/tree/develop
85 Comments
algernon Apr 19, 2023 @ 4:44pm 
Working modern functionality is a vailable in Transfer Manager CE .
Dvasong_***** Mar 9, 2023 @ 6:21am 
⚠️Dead, breaks game. NO REPLACEMENT⚠️
KaneTheBoom Jul 17, 2022 @ 3:55am 
Can someone make another garbage truck mod? It genuinely infuriates me at how stupid garbage truck AI is and I'm kind of sad this hasn't updated for 6 years.
Avatar Vader Jul 27, 2021 @ 11:38am 
Thanks for the heads up
LemonsterOG Jul 25, 2021 @ 9:03am 
@Avatar Vader -- This mod and its dependent, Skylines Overwatch, have been on the broken mods list for at least 2 years now. They both appear to be abandoned so you shouldn't expect them to be updated. Use at your own risk.
Avatar Vader Jul 25, 2021 @ 8:51am 
Getting an Incompatibility issue with this mod and TMPE, any idea how to get this fixed? Maybe use an older version of the mod?
aubreylegendre Jun 22, 2021 @ 12:00pm 
Simply one of the best explanations, for what's pretty a pretty complex mod, that I've seen. Thanks!
LemonsterOG Oct 29, 2020 @ 8:16am 
:redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare:

:vright: :vright: THIS MOD MAY CAUSE PROBLEMS IN-GAME :vleft: :vleft:

Broken Mods/Assets (read description)

Outdated Mods/Assets (read description)

Problem Mods/Assets (read description)

How to Find Broken and Bloated Assets

:redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare: :redflare:
DocNo Mar 11, 2020 @ 5:48pm