Cities: Skylines

Cities: Skylines

Traffic Volume
110 Comments
StayHungryStayFoolish 17 Jun, 2023 @ 10:25am 
Traffic Volume works just fine, see here: https://ibb.co/f9gHBwK

Treasure & Hunt compatible modlist.
AleksanderTheGreat ✅ 17 Jun, 2023 @ 8:04am 
Not compatible with 1.17.1
StayHungryStayFoolish 25 Mar, 2023 @ 7:11am 
I have removed AutoLineColor Redux from the modlist compatible with the latest software version (Hubs & Transport patch (1.16.1 f2) .

Traffic Volume and Favorite Cims are under investigation. I got noticed, that these mods have around 40 reports about various issues, up to game-breaking.
Chamëleon TBN 5 Feb, 2023 @ 2:04am 
@colborne_greg - have nothing to do with this mod. Take care to read your Compatibility Report.
Mr. Xuan 6 Jan, 2023 @ 1:47am 
Hello, boss! Please visit here to recommend some interesting maps: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2901994173
colborne_greg 4 Jan, 2023 @ 6:33pm 
(Filename: Line: -1)

Int16 out of bounds: 34455
at System.Environment.get_StackTrace
at ColossalFramework.IO.DataSerializer.WriteInt16(Int32 value
at BuildingManager+Data.Serialize(ColossalFramework.IO.DataSerializer s
at ColossalFramework.IO.DataSerializer.Serialize(System.IO.Stream stream, Mode mode, UInt32 version, IDataContainer data
at LoadingManager+<SaveSimulationData>c__IteratorC.MoveNext(
at AsyncTask.Execute(
at SimulationManager.SimulationStep(
at SimulationManager.SimulationThread( [Serialization - Internal
colborne_greg 4 Jan, 2023 @ 6:33pm 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object
UnityEngine.DebugLogHandler:LogException(Exception, Object
UnityEngine.Logger:LogException(Exception, Object
UnityEngine.Debug:LogException(Exception
SerializableDataWrapper:OnSaveData
Data:Serialize(DataSerializer
ColossalFramework.IO.DataSerializer:Serialize(Stream, Mode, UInt32, IDataContainer)
<SaveSimulationData>c__IteratorC:MoveNext
AsyncTask:Execute
SimulationManager:SimulationStep
SimulationManager:SimulationThread
colborne_greg 4 Jan, 2023 @ 6:31pm 
There are 100+ errors, here is the first. The output log is 2,162 KB lol

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

NullReferenceException: Object reference not set to an instance of an object
at PropAnarchy.Data.Serialize (ColossalFramework.IO.DataSerializer s) [0x00000] in <filename unknown>:0
at ColossalFramework.IO.DataSerializer.Serialize (System.IO.Stream stream, Mode mode, UInt32 version, IDataContainer data) [0x00000] in <filename unknown>:0
at PropAnarchy.SerializableDataExtension.OnSaveData () [0x00000] in <filename unknown>:0
at SerializableDataWrapper.OnSaveData () [0x00000] in <filename unknown>:0
Rethrow as ModException: The Mod E:\Steam\steamapps\workshop\content\255710\2696146766 [CitiesHarmony.API.dll, UIIndicator.dll, PropAnarchy.dll] has caused an error
thejoun  [author] 4 Jan, 2023 @ 5:19pm 
@colborne_greg Sure, that will do :) Just paste the error somewhere or open an issue on github. Thanks!
colborne_greg 4 Jan, 2023 @ 3:13pm 
Serious issues with this mod
Output log contains information about my system, and will not send that information, I can send a sanitized file with the stack trace.
WonderStand 20 Dec, 2022 @ 7:41pm 
@StayHungryStayFoolish yeah i mean it's a bug from base game. If CO want to disable all the pedestrian route display they should've been removed the toggle button together.
StayHungryStayFoolish 20 Dec, 2022 @ 9:46am 
@Wonder this mod it is not drawing the routes just calculating the ratio. However, the base-game is not drawing the 65k pedestrian routes. I think it could break the game on an old PC.
WonderStand 20 Dec, 2022 @ 5:55am 
@StayHungryStayFoolish i believe it's a bug. The toggle button for pedestrian/ cyclist routes are still there.
StayHungryStayFoolish 18 Dec, 2022 @ 11:38am 
Missing pedestrian routes is a known issue, not mod-related, and not harmful (just the info is missing). See the thread (unanswered) here:

https://forum.paradoxplaza.com/forum/threads/cities-skylines-steam-pedestrains-cyclists-traffic-routes-cannot-display.1562036

My suggestion is to use Favorite Cims mod or Commuter Destination mod to see some info about pedestrians.
thejoun  [author] 18 Dec, 2022 @ 6:42am 
And about the pedestrian paths, not sure why they didn't tell us about it in the patch notes or something. But I guess, maybe they cut this feature to improve performance (there was a hard cap of 100 displayed paths, and vehicles are surely more important than predestrians)
thejoun  [author] 18 Dec, 2022 @ 6:38am 
Thank you for your responses! If that's the case... I just uploaded an update that should hopefully prevent some of the errors. I wasn't able to pinpoint them exactly, so I can only keep my fingers crossed. If you still stumble upon any issues, please let me know :)
Democracy Manifest 17 Dec, 2022 @ 4:19am 
@thejoun I'm getting the pedestrian/cyclist route bug too, and haven't seen any fix on the forums yet. Something in financial districts update for sure
CosmicFurFace 16 Dec, 2022 @ 3:45pm 
@thejoun ...and here I thought it was just me lacking pedestrian paths...

I noted but didn't check into it; don't know if there are pedestrians but no paths shown, or 0 pedestrians to path but shows "n" in the count.

Certainly not critical. Thanks for your efforts.
StayHungryStayFoolish 15 Dec, 2022 @ 1:53pm 
So cyclists are there, but the traffic volume report and the route screen are not showing them. OK. This is not harmful.

@thejoun take your time. I will wait for the update.
Nickless 15 Dec, 2022 @ 1:26pm 
@thejoun, I was just about to comment that I can't see pedestrians/cyclist paths anymore. The numbers show up in the traffic volume pop-up, but the paths aren't being drawn, for any kind of road or path, both vanilla or workshop.
saifullahiy 15 Dec, 2022 @ 10:31am 
@thejoun, definitely not just you
thejoun  [author] 14 Dec, 2022 @ 2:45pm 
Hey everyone, I've got a favor to ask you! I was just about to push an update, but then I realized after Financial Districts I no longer see any pedestrian or cyclist paths when playing with the traffic routes view (even with this mod off). Could someone please confirm this? Or is it only me?
QueenAsh 9 Dec, 2022 @ 1:44am 
Nevermind fixed it with loading screen mod
QueenAsh 9 Dec, 2022 @ 1:22am 
Did Maghuro's issue get patched, or is there a workaround? It seems I've run into the same issue on my save
CityScapes 8 Dec, 2022 @ 10:59am 
Okay then the culprit must lay somewhere else
thejoun  [author] 4 Dec, 2022 @ 3:43pm 
@CityScapes not at all
CityScapes 4 Dec, 2022 @ 8:56am 
Does this mod increase traffic somehow too?
Maghuro 1 Dec, 2022 @ 4:27pm 
Thanks for your work and efforts! :)

My best regards
thejoun  [author] 1 Dec, 2022 @ 3:41pm 
Hi @Maghuro, thank you for posting this! I'm currently working on a fix, should be out really soon :)
Maghuro 1 Dec, 2022 @ 2:50pm 
Continues:
(PathVisualizer,int,int) <0x00119>
at PathVisualizer.AddPaths (InstanceID,int,int) <0x0045a>
at PathVisualizer.SimulationStep (int) <0x0079b>
at (wrapper dynamic-method) NetManager.NetManager.SimulationStepImpl_Patch2 (NetManager,int) <0x0125e>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at NetManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>
Maghuro 1 Dec, 2022 @ 2:50pm 
System.IndexOutOfRangeException: Array index is out of range.
at TrafficVolume.Helper.IsVehicleOnSegment (int,System.Collections.Generic.HashSet`1<InstanceID>,PathManager,NetManager,BuildingManager,DistrictManager,VehicleManager) <0x00e09>
at TrafficVolume.Traffic.LocalTraffic.CountLocalVolume (System.Collections.Generic.HashSet`1<InstanceID>) <0x001c1>
at TrafficVolume.Patches.PathVisualizerAddPathsImplPatch.Prefix (int,int,System.Collections.Generic.HashSet`1<InstanceID>) <0x0003f>
at (wrapper dynamic-method) PathVisualizer.PathVisualizer.AddPathsImpl_Patch1
Maghuro 1 Dec, 2022 @ 2:50pm 
This mod is sometimes giving me the following error. I can't find a pattern, it randomly happens, and i have to force close the game. This time a tsunamy was hitting my city, maybe that's related?
Erro in next post
tuananh821 20 Nov, 2022 @ 10:29am 
alway error Index out of range
thejoun  [author] 19 Nov, 2022 @ 4:35am 
An update just landed. You can now enable auto-refresh functionality in the mod's settings, as well as change the global traffic count keybind!
Spill 27 Oct, 2022 @ 7:01am 
Got the same crash again, this time when checking traffic volume ona modded Recycle Center

Recycling Centre MkII
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1312767991
GamingBren 26 Oct, 2022 @ 12:21pm 
Great mod!
GamingBren 26 Oct, 2022 @ 12:21pm 
Suggestion: When you disable a transport type, the pie chart should change
Spill 25 Oct, 2022 @ 1:38pm 
Spill 25 Oct, 2022 @ 1:36pm 
Index out of range whenn looking at a custom cargo station and I accidently clicked the view traffic button. Ment to click the Transfer mod icon.
I think a train just spawned as I clicked the button

output log
https://pastebin.com/ZxKy5vtU
CosmicFurFace 24 Oct, 2022 @ 8:26pm 
@thejoun I also would like to thank you for this mod. I've found myself using it more than I expected, and appreciate that I no longer have to try to "count moving arrows" to determine the traffic in a given location.
thejoun  [author] 24 Oct, 2022 @ 6:47am 
Thanks everyone for your warm feedback! I plan to implement settings, keybinds and autorefresh as soon as I can :)
p1timmy 22 Oct, 2022 @ 9:54am 
Really like this mod, it be nice if you can make it to where the numbers get updated in real time
TrackEx 19 Oct, 2022 @ 9:10am 
is there a way you could set up a settings page so we can do custom keybinds?
StayHungryStayFoolish 17 Oct, 2022 @ 3:06pm 
I tested and liked it, so it is part of the Plazas & Promenades DLC Compatible modlist. Please know that Alt+G opens for me the Global Traffic Volume window and CSLGraphs window, too. Can you make it possible to change the shortcut?
LegoProfessor 17 Oct, 2022 @ 3:29am 
Just an idea :-)
You wrote one of ther future things could be : "auto refreshing the data every second or so"
What about a option for trigger based display
After selecting the segment/buliding*) one can set a threshold. Then the mod goes into background. When the traffic exceeds this threshold then the mod pops up.
This could be intressting in two ways
a) Informs you when there is a traffic jam
b) If you set the threshold to 1 you got informed if there is at all trafic on a road

*) for idea a), also a global threshold would be nice. But I believe, this will take away too much performance

LegoProfessor
Terminal Frost 16 Oct, 2022 @ 7:34pm 
@sTARs, Compatibility Report is incorrect re this mod. It is fully compatible with the current version of the game.
Spill 15 Oct, 2022 @ 6:45pm 
That should have been resorted. Mod works fine. Have you updated your data for compa mod? use the download button in settings
sTARs 15 Oct, 2022 @ 6:18pm 
I checked this mod with the "compatibility mod" and it outputted this:

Traffic Volume [Steam ID 2858654134]

- Unsubscribe! This mod is broken.
* Broken with Plazas & Promenades free Game Update 1.15.0-f5


Should I be worried?
thejoun  [author] 13 Oct, 2022 @ 2:54pm 
@rcav8tr Thank you for your feedback, I appreciate it.
rcav8tr 13 Oct, 2022 @ 1:42pm 
Some feedback on your mod coding:

Your logic in GetTransportType looks like it is trying to mimic the categorization logic in PathVisualizer.AddPathsImpl used by the Traffic Routes info view. Your logic is different in several ways. I don't know if that was intentional. I just added global traffic counts to my More City Statistics mod. Please see the logic in my mod for GetVehicleTrafficCounts and GetCitizenTrafficCounts.

When looping thru the game's arrays, don't use constants for the array size. Always get the actual array size at run time because some other mod might alter the array size from the game's default size.

You might want to consider joining the LemonsterOG [discord.com] discord server for help with CS modding.