Cities: Skylines

Cities: Skylines

286 ratings
Phantom Lane Remover
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
48.128 KB
Oct 16, 2015 @ 2:43pm
May 18, 2017 @ 11:10am
7 Change Notes ( view )

Subscribe to download
Phantom Lane Remover

Description
ver. 1.7.0.f5 _build01

Purpose
Allows you to detect and remove phantom lanes if your save file is suffering from that problem.
Chances are very high you don't have this problem and don't need this mod.

What's a phantom lane?
Lanes that exist in your map that are marked as created, but which link to nothing and are not really in use but are counting against your maximum number of lanes.

How do I know if I have this problem?
First off, you probably don't have it.
If you've hit the "object limit" error message problem though and CSL Show More Limits shows you're over the Net Lane limit, then you might indeed have the problem.

A good indicator of the problem is when your segment count * 10 is less than your number of lanes. That calculation is not always going to be an indicator, you could still have the problem if it's less but think of it as a sure sign you have the problem. Nothing in the base game (no mods) creates more then 10 lanes per segment, nor yet do most if any mods, so if your segment count * 10 is less than number of lanes in use something is very likely wrong. For most maps the average will be less than that 10 figure (probably more like 5), but think of 10 as the high-water mark.

How to Use
After subscribing to the mod, enable it and load your map, it should pop up a window after the map loads.
  • Step 1: (skipable) Look at your segment #'s, multiply that figure by 10'ish
  • Step 2: (skipable) Look at your lane #'s, are they higher then figure you came up with in step 1? If so proceed.
  • Step 3: Press "Detect Phantom Lanes" - If the message says in green it detected 0 phantoms. You don't have the problem. If says in yellow'ish it detected ###### phantom lanes, and shows a "Fix Lanes" button then you have the problem.
  • Step 4: The "Fix Lanes" button should exist, (Now would be a good time to backup your map!), now press it.
  • Step 5: After a few seconds it should tell you in green how many lanes it cleaned up, the lane # shown in the counter list should reflect the change. You're done, save the now cleaned version of the map and go on about your game.

Repeat basic process to check for phantom CitizenUnits, however there really isn't a formula for those other then to say if you only have a few thousand in population you shouldn't have hundreds of thousands of citizen units in use.

Questions
Will this touch my save data.
Yes. Though technically not till you save the game after using it, once the tool has been run there is no need to have the mod enabled after that, it's work has been done, at least until you need\want to check another map.
PLEASE BACKUP YOU SAVE FILE BEFORE USING THIS TOOL.

Will deleting these "phantom" lanes cause some other problems
Probably not, to the extent that I have been able to fix several game files so far I've not seen a problem afterward and most of those maps were using various popular mods, including ones that screw around with traffic \ lanes.
However, i make NO guarantees.

The gui looks like a stripped down Show More Limits, what's up with that?
That's cause it is. :) Because it would be helpful to have some of the same data shown I just took my code from that mod, removed most of what wasn't needed and added in some for fixing this problem. Yes I know, I should just add this stuff to that one, I probably will if this issue sticks around, for now I wanted them separate.

What causes phantom lanes to get created in the first place?
I don't know. Spent way too much time trying to tack down the cause with no results. This I can tell you, with the base game (no mods), I think I've tried every possible thing to reproduce this problem and can not, so don't scream at C\O over this one yet. I also can not reproduce it yet with mods either, however just about every sample map I've seen with this problem had a traffic type of mod used on it, if not actively at least in the past. Many users have reported t++ (v1 and v2) if using certain features\doing certain setup as having been involved in phantom lanes being created either as you play or during the map load.

How can I help you find the cause of these phantoms?
Great question. Please share your save file (before you apply the fix) if you have the problem along with anything you can tell me about said save file, but especially what mods were used, the more you detail the better, though you can skip generic assets, but special transport ones would be helpful to know (like multi line train stations,etc).
update: We basically have (T++ mod), but it never hurts to report your own experiences or updated results.

Is this compatible with other mods?
It should be compatible with everything, it does not detour any CSL functions to operate.
The CTRL + (P & L at same time) key binding in theory though could conflict \ activate some other mod, however you really shouldn't need to re-display the dialog during a session, if you want an alternate key binding you can select that option from the options screen, or set your own in the configuration file.

*Thank you to all those on Reddit, Steam, and the CSL PDX forums who've helped me with supplying sample files and in investigating this and communicating back your own finding. As always if this mod helped you don't forget to give a thumbs up.

Source: Can be found on Github >>Here<<[github.com]
147 Comments
idlewired Jul 12, 2023 @ 7:25am 
i downloaded this mod, ran it, says 0 phantom lanes detected yet I can't build more roads. Help!
MikGaming/DJ Mike Jan 20, 2023 @ 7:31am 
Can you update it? I tryed it and something went wrong, all building wasn't receiving any heat/ power or water making a big mess + there was an error but it was empty
burger.gemme Jan 4, 2023 @ 8:26am 
Hello, I have to much "Net Nodes" but what is that? What do I have to remove in my city to restore it?
gameblogger Oct 19, 2022 @ 2:39pm 
Is this going to be updated/fixed anytime soon? If not, is there an alternative available?
ctcatuga Mar 27, 2022 @ 1:25pm 
I am having the same issue as @Future. When the game loads, the PLR box is completely blank except for the button to close the box.

Also, neither the original key binding nor the alternate keybinding nor any other keybinding I set in the config file open the box. Nothing happens. I have made sure that there are not other mods using the same keybinding, too.
Gallego Mar 9, 2022 @ 7:17pm 
Live saver for me! at least for the citizens units problem. Tnx!
Sam_Daywalker Feb 3, 2022 @ 1:55pm 
For me it's the same. Seems to be completely broken as of Airports DLC. I will try "Broken Nodes Detector" now. Seems to have similar functionality.

https://steamcommunity.com/sharedfiles/filedetails/?id=1777173984
Future Jan 9, 2022 @ 6:21am 
The Phantom Lane Remover GI is blank...
大风来了 Dec 25, 2021 @ 6:00pm 
居然现在还能用。。。太好了。
TheKillerChicken Dec 3, 2021 @ 3:02pm 
Are you using a large value in a transport, household, job area?