[Cities: Skylines 2 - Scripts - Traffic] CustomVehiclePathfind


Recommended Posts

CustomVehiclePathfind


 

Mod Description

This is the upgrade version of the mod Safer Vehicle Pathfind. If you upgrade from the it, please delete both the dll file and the configuration file of the old version.

Function

  • Configurable path-finding cost of unsafe behaviors (violating intersection rules and making unsafe u-turns) for vehicles. Higher cost restricts vehicles from making these moves.
  • Configurable path-finding cost of lane changing for vehicles. Higher cost makes vehicles less likely to change lanes during running.
  • Configurable path-finding cost of simply driving for vehicles. Higher cost effectively reduces the usage of vehicles for citizens (cargo and service vehicles are not affected).
  • All these function can be turned off.

 

Installation

  • CustomVehiclePathfind_b5.dll is the mod file for BepInEx 5
  • CustomVehiclePathfind_b6.dll is the mod file for BepInEx 6
  • Choose one of them that suits you and put it into ...\Cities Skylines II\BepInEx\plugins\

 

Configuring the Land Value Cap

  • First launch the game with this mod loaded, and close the game (to generate the configuration file).
  • Open the configuration file (..\Cities Skylines II\BepInEx\config\CustomVehiclePathfind.cfg), modify each configuration entries and save the file.
  • Now launch the game again with this mod loaded and enjoy it!

 

 

Validating the effect

  • Unsafe behavior restrictions: no vehicles ever violates intersection rules after setting the cost to 2,147,483,647.
  • Lane changing restrictions: no significant effect observed, need more experiments.
  • Driving restrictions: after setting driving cost from the default 0.01 to 1, the average traffic flow of the city dropped by ~30% (tested in a super-dense city with a population over 70,000).

 


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.