Cities: Skylines

Cities: Skylines

101 ratings
Directional Traffic Report Tool
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
50.176 KB
15 Aug, 2015 @ 1:41am
2 Mar, 2016 @ 3:39pm
2 Change Notes ( view )

Subscribe to download
Directional Traffic Report Tool

Description
If I had to limit myself to just three mods, Traffic Report Tool would undoubtedly be among them. Road segments with heavy traffic, however, can be a little difficult to analyze as there are so many paths displayed. I always thought the ability to distinguish between directions would tremendously clear things up. This mod gives you this ability. Left clicking on a road segment will show you one direction and right clicking will show the other. Middle clicking gives you the original combined report.

Two things to be aware of:

1) Pedestrians on sidewalks are not counted in the directional reports. This is because sidewalk lanes are flagged as bidirectional in the game. Regular road lanes are flagged 'forward' or 'backward', which simplifies path classification. Properly classifying paths along sidewalks involves some vector arithmetic, and none of the solutions I've come up with so far have been 100% accurate. Jaywalkers, however, are counted! :) Because of this, the numbers from each direction may not always add up exactly to the figure given by the original report. In all these cases, you will find the discrepancy lies in the number of pedestrians.

2) I'm not sure how segment and lane directions are assigned when roads are laid out. I would've expected consecutive segments along a road to have consistent 'forward' and 'reverse' flags. However, this is not the case, so the direction shown by, say, left clicking on a segment may not be the same as the one given by left clicking on the next segment along the road.

All credit for what makes this mod unique and special goes to Black Widow. I am very grateful she made the source code available. I will take down this mod if she requests it and I will post my source shortly so she may merge it with the original if she so desires.

P.S. You must deactivate the original mod for this one to work, but you don't have to unsubscribe from it. The same configuration file as the original is used.

Source code available here.[github.com]
36 Comments
MineTrain/Justin 4 Dec, 2022 @ 9:36am 
This mod is dead this the last game Update.

Game cant start anymore, and Spaming this the the log:

NullReferenceException: Object reference not set to an instance of an object
at DirectionalTrafficReport.QueryToolGUI.get_guiVisible () [0x00000] in <filename unknown>:0
at DirectionalTrafficReport.QueryToolGUIBase.OnGUI () [0x00000] in <filename unknown>:0

(Filename: Line: -1)
enemy man 30 May, 2017 @ 1:13am 
this mod doenst work like the original used to work for me, all i want is to be able to click on a segment of road and see where every vehicle in that segment is traveling to. I'm sure this mod is supposed to do that but it doesn't do that for me it only works on individual vehicles. It also doesn't work when i click on a building to see where everyone going to that building is coming from, on things like industrial train stations and stuff that's pretty cool but definitely not as vital as the clicking on a road segment to see where eveyone on that dsegment is going to..
I'm pretty sure the mod is designed to do that but it's just screwed up for me, not sure why though. It aboslutely works when i click on a car, it'll show me that path that that car is taking but it doesnt do anything else for me.
fadster  [author] 18 Apr, 2017 @ 5:42pm 
@angk500 I don't know what to tell you. I run the game on a machine that barely meets the minimum requirements and I have no trouble displaying reports for road segments with hundreds of vehicles. There's really no way the frame rate would be affected if you're generating reports on empty cities as nothing would be drawn in this case. You might want to try checking the output log to see if it contains any relevant information. Also, try the original Traffic Report Tool mod. If either of these mods caused such a problem, it would've definitely been a known issue by now.
Personal Responsibility 18 Apr, 2017 @ 3:15pm 
@fadster I have tried it with only this mod enabled. Still the same problem. I tried old (bigger citys) and completley new, empty maps..
fadster  [author] 18 Apr, 2017 @ 2:13pm 
@angk500 Have you tried with only this mod enabled? It could be due to a combination of mods. How large is your city? Do you have the same problem with the original Traffic Report Tool? This mod is based on the original so the performance should be the same. As hundreds of thousands use the original without such drops in frame rate, I'm still inclined to believe the problem is on your end.
Personal Responsibility 18 Apr, 2017 @ 1:47pm 
@fadster And I have searched for around 40 minutes by turning mod for mod on/off and reload the game until I was able to define it is DTRT that gives me that massive of a frame loss. :S
Personal Responsibility 18 Apr, 2017 @ 1:44pm 
@fadster Yes I have around 40 mods active. With DTRT turned on, I have around 18 FPS. Moving the camera freezes the picture for around 1-2 seconds until FPS is back. Turning DTRT off gives me back my 60 FPS constantly without any loss and all other 40 mods active.
fadster  [author] 17 Apr, 2017 @ 3:11pm 
@angk500 Plenty of people have been using this mod as well as the original on large cities for quite some time now and nobody's ever reported a loss of FPS. Your problem may be due to another mod or some other issue. Have you made sure to rule these out before giving a negative rating?

@krtecek0257 As stated in the description, click on the tool icon (magnifying glass in the top left corner) then click on a road segment to see the different types of traffic going through it. Right-click will show one direction, left-click the other, and middle-click both directions combined.
Personal Responsibility 17 Apr, 2017 @ 10:28am 
The tool itself works, but with the mod activated the whole game is having a huge FPS loss! Cannot be used like that.
krtecek0257 14 Apr, 2017 @ 9:21am 
How to use it ? please