Cities: Skylines
Оценок: 447
Adjust Pathfinding
   
Наградить
В избранное
В избранном
Удалить
Mod
Размер файла
Добавлен
Изменён
318.976 KB
9 авг. 2019 г. в 5:10
22 фев. 2020 г. в 13:06
Обновлений: 4 (просмотреть)

Подпишитесь, чтобы загрузить
Adjust Pathfinding

Описание
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]
Популярные обсуждения Просмотреть все (3)
1
25 мар в 4:34
How to use it for underground roads?
cfqs
5
13 сен. 2022 г. в 12:05
Segmentlength depending on traffic workload and resized by simulationloop
JNN10
0
25 мар. 2021 г. в 5:34
Need to update to "Harmony 2"
M.S.Referee
Комментариев: 153
Shomudi 14 дек. 2023 г. в 2:21 
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 сен. 2023 г. в 15:20 
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 фев. 2023 г. в 21:54 
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 дек. 2022 г. в 14:38 
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 дек. 2022 г. в 15:15 
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 сен. 2022 г. в 13:41 
Due to the limited amount of functions this mod has, I think its features should just be integrated within TM:PE
StayHungryStayFoolish 17 сен. 2022 г. в 10:16 
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 июл. 2022 г. в 10:33 
@fenbekus do i need to uninstall TMPE if i use this or do they work together?
Sasquatch 14 июн. 2022 г. в 13:09 
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 июн. 2022 г. в 5:51 
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.