• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Caby71

Private
4 Badges
Oct 26, 2023
10
9
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - Mass Transit
  • Cities: Skylines Industries

Pathfinding Customizer​

Overview​

Welcome to the Pathfinding Customizer forum thread! This mod allows you to fine-tune the pathfinding systems in your game, giving you control over the probability of certain behaviors for pedestrians and vehicles.

Key Features​

  • Customizable Pathfinding Costs: Adjust the costs associated with specific actions, such as pedestrians jaywalking or vehicles making unsafe U-turns.
  • Enhanced Realism: Tailor the behavior of AI to create a more realistic or challenging simulation experience.
  • User-Friendly Interface: Easy-to-use sliders and settings to fine-tune the pathfinding parameters.
  • Compatibility: Designed to work seamlessly with other mods and game updates.

How It Works​

The Pathfinding Customizer mod allows you to modify the likelihood of certain AI behaviors by changing the associated costs. By increasing the cost, you make the behavior less likely to occur, and by decreasing it, you make it more probable. This enables you to customize how strictly pedestrians and vehicles follow rules, such as avoiding jaywalking or making illegal U-turns, thereby enhancing or challenging your simulation experience.

Usage​

Once installed and activated, you can access the mod's settings through the game's options menu. Use the sliders to adjust the costs for different pathfinding actions. Experiment with different settings to find the perfect balance for your gameplay.

Support and Feedback​

If you encounter any issues or have suggestions for future updates, please feel free to post in this thread or reach out via the Github issues page. Your feedback is invaluable in helping us improve the mod!
 
  • 1Like
Reactions:
Unfortunately this mod prevents my city from growing. I downloaded this mod and started a new city. Noone wanted to move in. After only removing this mod, everything works fine again. I have no idea what exactly the problem is..
 
Unfortunately this mod prevents my city from growing. I downloaded this mod and started a new city. Noone wanted to move in. After only removing this mod, everything works fine again. I have no idea what exactly the problem is..
Hi. I’ve identified and fixed the issue. In version 1.0.3, it should work correctly. If you experience any problems, try adjusting the "Unsaved Crosswalk" setting (J-Walking) to 100% and then change it back once you have a higher population. This workaround is effective in starter cities; larger cities should not have issues.

Would you like to test the new version and let me know how it works for you?
 
Last edited:
Unfortunately this mod prevents my city from growing. I downloaded this mod and started a new city. Noone wanted to move in. After only removing this mod, everything works fine again. I have no idea what exactly the problem is..
Hi. I’ve identified and fixed the issue. In version 1.0.3, it should work correctly. If you experience any problems, try adjusting the 'Unsaved Crosswalk' setting (J-Walking) to 100% and then change it back once you have a higher population. This workaround is effective in starter cities; larger cities should not have issues.

Would you like to test the new version and let me know how it works for you?

Yes sure, the idea of this mod is really great, would love to help. :)
 
  • 1Like
Reactions:
Im trying to set this mod right but what ever i do the reaction is all over the place. I place 200% of lane chaning and the cars change lanes like crazy especially in traffic lights. Am i doing something wrong?
 
Im trying to set this mod right but what ever i do the reaction is all over the place. I place 200% of lane chaning and the cars change lanes like crazy especially in traffic lights. Am i doing something wrong?
In my understanding, it should be reduced. Because now it's all about changing lanes at the end of the lane, leading to inexplicable congestion.
 
Unfortunately this mod prevents my city from growing. I downloaded this mod and started a new city. Noone wanted to move in. After only removing this mod, everything works fine again. I have no idea what exactly the problem is..
Hi, the game developers have called it "lane cross," so I believe I have the right term. If all the values are 0, they will remain 0 (I did that to accommodate ambulances and other emergency vehicles). I will look into it later today or tomorrow. Thanks for letting me know!

I have made an issue on github or it is a issue in my mod or it's a thing from the game devs that doesn't make sense to me. Then I wil change the info in the settings menu
 
Last edited:
In my understanding, it should be reduced. Because now it's all about changing lanes at the end of the lane, leading to inexplicable congestion.
Interesting so that means they indeed try to avoid a lane change but they do it last minute and you want them to do it earlier (and hopeful keep there lane). I'll look into it later this day or tomorw thanks!!

I have made an issue on github or it is a issue in my mod or it's a thing from the game devs that doesn't make sense to me. Then I wil change the info in the settings menu
 
Last edited:
Im trying to set this mod right but what ever i do the reaction is all over the place. I place 200% of lane chaning and the cars change lanes like crazy especially in traffic lights. Am i doing something wrong?
In my understanding, it should be reduced. Because now it's all about changing lanes at the end of the lane, leading to inexplicable congestion.
I have looked into it and found that the default slider setting is 0 for three types and 6 for one type. I added an option to change all of them to 2 by default, but this is still in testing. I suggest first increasing the slider settings by 200% and observing how it works in your city.

The issue with lane changing occurs when the game identifies a more cost-efficient route, causing vehicles to end up in the wrong lane. This can happen even at the default 100% setting.
 
Last edited:
  • 1Like
Reactions:
since installing this mod it has deleted my local graphics and gameplay settings 3 times. Good mod with alot of uses but really annoying everytime it does that. This is in the course of 3 days, and occurs on game startup without a rhyme or reason that i can see. The first time it set my graphics to high and my computer about crashed with a blank map lol
 
since installing this mod it has deleted my local graphics and gameplay settings 3 times. Good mod with alot of uses but really annoying everytime it does that. This is in the course of 3 days, and occurs on game startup without a rhyme or reason that i can see. The first time it set my graphics to high and my computer about crashed with a blank map lol
Hi, that’s frustrating. This mod only changes the cost values for pathfinding. I’ve looked into it, and there’s nothing that modifies your settings files. Could you provide me with the logs and let me know which other mods you have installed? You should also try setting your settings in the menu and then exiting the game. It should apply the settings (the base game can be a bit funky).
 
Last edited:
The main reason I would use this app is to stop vehicles changing lanes at the last minute at intersections. This issue still exists no matter what percentage I apply. Also no noticable difference in lane changing and other unsafe behaviours.
 
The main reason I would use this app is to stop vehicles changing lanes at the last minute atsa intersections. This issue still exists no matter what percentage I apply. Also no noticable difference in lane changing and other unsafe behaviours.
The lane-changing at the last minute happens because drivers find a better route at the last second. This mod, in its current state, can't fix that. Also, you need to save and reload to apply the settings. This mod will have an advanced mode so you can apply more aggressive cost adjustments. Additionally, you should provide better travel options; if it's more expensive to travel the safe way, drivers will opt for the less safe route. I also recommend using a traffic mod.

By the way, this mod will never completely stop such maneuvers; it just makes them less likely. Otherwise, the game might break. CO needs to address that issue.
 
Last edited:
I have this error when starting a city.

[object Object]
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Logging.UnityLogger.Internal_WriteStream (UnityEngine.Object context, System.String format, System.Exception exception, System.IO.TextWriter stdStream) [0x0001e] in <04270347c2e34a219e33e9c53479ad56>:0
at Colossal.Logging.CustomLogHandler.PostProcessFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, Colossal.Logging.ILog log, System.Exception exception) [0x00094] in <04270347c2e34a219e33e9c53479ad56>:0
at Colossal.Logging.CustomLogHandler.LogFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, System.Object[] args) [0x0005e] in <04270347c2e34a219e33e9c53479ad56>:0
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
Colossal.Logging.UnityLogger:Log(Level, String, Exception)
Colossal.Logging.UnityLogger:Info(Object)
PathfindingCustomizer.PathfindSystems.PathfindCost.PathFindSystemBase`1:OnUpdate() (at C:\Users\Timva\RiderProjects\Better trafic AI\PathfindingCustomizer\PathfindSystems\PathfindCost\PathFindSystemBase.cs:20)
Unity.Entities.SystemBase:Update()
Game.UpdateSystem:Update(SystemUpdatePhase, UInt32, Int32)
Game.Simulation.SimulationSystem:UpdateLoadingProgress()
Game.Simulation.SimulationSystem:OnUpdate()
Unity.Entities.SystemBase:Update()
Game.UpdateSystem:Update(SystemUpdatePhase)
Game.SceneFlow.GameManager:LateUpdateWorld()
Game.SceneFlow.GameManager:LateUpdate()

And sometimes causes CTD.
 
I have this error when starting a city.

[object Object]
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Logging.UnityLogger.Internal_WriteStream (UnityEngine.Object context, System.String format, System.Exception exception, System.IO.TextWriter stdStream) [0x0001e] in <04270347c2e34a219e33e9c53479ad56>:0
at Colossal.Logging.CustomLogHandler.PostProcessFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, Colossal.Logging.ILog log, System.Exception exception) [0x00094] in <04270347c2e34a219e33e9c53479ad56>:0
at Colossal.Logging.CustomLogHandler.LogFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, System.Object[] args) [0x0005e] in <04270347c2e34a219e33e9c53479ad56>:0
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
Colossal.Logging.UnityLogger:Log(Level, String, Exception)
Colossal.Logging.UnityLogger:Info(Object)
PathfindingCustomizer.PathfindSystems.PathfindCost.PathFindSystemBase`1:OnUpdate() (at C:\Users\Timva\RiderProjects\Better trafic AI\PathfindingCustomizer\PathfindSystems\PathfindCost\PathFindSystemBase.cs:20)
Unity.Entities.SystemBase:Update()
Game.UpdateSystem:Update(SystemUpdatePhase, UInt32, Int32)
Game.Simulation.SimulationSystem:UpdateLoadingProgress()
Game.Simulation.SimulationSystem:OnUpdate()
Unity.Entities.SystemBase:Update()
Game.UpdateSystem:Update(SystemUpdatePhase)
Game.SceneFlow.GameManager:LateUpdateWorld()
Game.SceneFlow.GameManager:LateUpdate()

And sometimes causes CTD.
Hi when does this happen and can you also send the PathfindingCustomizer.PathFindSystemBase.log?
 
Last edited:
At the start of the game
That should not happen i think i know whats wrong. give me a sec i wil send you a test build

You can put this in the mods folder in the locallow and unzip it (make sure its not a folder in a folder). also disable the mod from the paradox plaza. Can you tell me if its fixed?
 

Attachments

  • PathfindingCustomizer.zip
    17,3 KB · Views: 0