Cities: Skylines

Cities: Skylines

448 ratings
Adjust Pathfinding
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
318.976 KB
9 Aug, 2019 @ 5:10am
22 Feb, 2020 @ 1:06pm
4 Change Notes ( view )

Subscribe to download
Adjust Pathfinding

Description
Warnining! Advanced/experimental!

Please report any bugs or odd behavior!

This mod allows you to change behavior of in-game traffic. You can make vehicles avoid specified segments and redistribute them better across the city. Are the pesky drivers using a local shortcut instead of going along the highway? Make the shortcut appear a little bit longer to the pathfinding algorithm so that only local traffic will use it.

Are the cargo ships using only a single port? Make them use both!

How do I use this?

When in game, press CTRL+P (default shortcut) or navigate to roads menu and click the Adjust Pathfinding Mod icon. (Currently there is a bug that the icon is missing sometimes, but the shortcut should always work.) Then you can select a segment and change its parameters.

Factor - adjusts the length of the segment as will appear to the pathfinder. If the value is 100, the segment will appear 100x longer then it is, thus traffic will probably avoid it. Works with numbers between 0 and 1 too.

Event probability - sets how large proportion of the traffic will obey the custom factor rule. This is useful for example when you want the traffic to use two cargo terminals instead of one.
Warning! Event probability of 0.7 means that about half of the traffic will obey the rule. The higher the number is, the larger the proportion will be. Sorry, I figured out this figure experimentally and if I had big enough data sample I would build the interface so that 0.5 means half of the traffic, but whatever...

Active - You can temporarily turn off the regulation.

It takes some time before the traffic starts obeying new rules.

Save your game regularly!
My game crashed once when testing this and I didn't find the cause. It is possible that it wasn't even caused by this mod. Keep in mind that I can't prevent everything.

This mod is compatible with Traffic Manager.

This mod can be safely removed at any time.

Are "not enough goods" warnings appearing everywhere in your city? It may be cause by low capacity of outside connections. Check out Configure Outside Connections' Limits mod.

Source code & credits

This mod uses Harmony[github.com] for patching.

Detour icon[thenounproject.com] by Pierre-Luc Auclair from the Noun Project.

Source code[github.com]
Popular Discussions View All (3)
1
25 Mar @ 4:34am
How to use it for underground roads?
cfqs
5
13 Sep, 2022 @ 12:05pm
Segmentlength depending on traffic workload and resized by simulationloop
JNN10
0
25 Mar, 2021 @ 5:34am
Need to update to "Harmony 2"
M.S.Referee
153 Comments
Shomudi 14 Dec, 2023 @ 2:21am 
Just checked this mod: it works great.
No collision with TMPE or any other mod as of now.
Will update if there is any issue.
Hootmon_Y_Knot 7 Sep, 2023 @ 3:20pm 
This is what you need if you want to balance loads between multiple import/export rail terminals.
Goes serveral magnatudes further than TMPE in this role.
Works like a charm.:steamthumbsup:
Egoist 18 Feb, 2023 @ 9:54pm 
no error for me in this mod but i think it may not work . i used it for a few years before seem no difference for the path finding, i usually place 2 parallel cargo station for export so AI use both by adjust the path finding , now seems no effect for a very high factor
arthraix 19 Dec, 2022 @ 2:38pm 
I don't use this mod but TM:PE may have this functionality and this mod is out of date, being last updated 2 years ago as of the writing of this message.
Maylow 14 Dec, 2022 @ 3:15pm 
Just wanted to let know that "Simulation error: Array index is out of range" occurs in combination with the More PathUnits mod. I suspect the culprit to be in Adjust Pathfinding mod. The More PathUnits mod works fine with all others mods. If required, i can supply output_log.txt file. Since this mod can be safely disabled/unsubbed but disabling/unsubbing More PathUnits results in savegames no longer working, I've decided to disable/unsub this mod until a fix is available.
Plazmafield 20 Sep, 2022 @ 1:41pm 
Due to the limited amount of functions this mod has, I think its features should just be integrated within TM:PE
StayHungryStayFoolish 17 Sep, 2022 @ 10:16am 
Due to unclear incompatibility issues with Plazas&Promenades DLC and TM:PE I placed this nice mode on the list of Compatible but skipped mods.
Neverminder 1 Jul, 2022 @ 10:33am 
@fenbekus do i need to uninstall TMPE if i use this or do they work together?
Sasquatch 14 Jun, 2022 @ 1:09pm 
I wish I had watched the video when I first subscribed to this. Now that I see how it works it's absolutely amazing. This will fundamentally alter how I build industrial areas and cargo networks.

Has anyone figured out an algorithm to set the event probability for more than two terminals? Or would you just put "0.7" for all but one of the terminals?
iMarkeh 12 Jun, 2022 @ 5:51am 
Does this mod affect buses? If a road thinks it is going to take longer, then will the game try to get more buses dispatched to the route?

Secondly, will this affect bus routing? Will buses perhaps try to reroute in the same way a car would? I don't want buses to go out of their way and double back and whatever to avoid a part of the road but I do want to strongly discourage other traffic modes from using the road.