Cities: Skylines

Cities: Skylines

274 ratings
Toggle District Snapping
 
Rate  
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
0.022 MB
Sep 1, 2015 @ 9:07pm
Apr 9, 2016 @ 12:40am
4 Change Notes ( view )

Subscribe to download
Toggle District Snapping

Subscribed
Unsubscribe
Description
What is this mod for?
It allows toggling of snapping to roads while painting districts. In the base game, you can never turn off snapping to roads when painting districts. This really annoyed me sometimes, especially when trying to make districts just perfect, only to have the snapping foul things up. It also is helpful for making districts with borders that run down the middle of streets, etc.

How to use:
While using the district brush, hold LEFT ALT to disable snapping.

NOW AVAILABLE! Option to disable snapping by default

Go to Options > Mod Options > Toggle District Snapping
Check the box if you want snapping turned OFF by default. To get snapping, hold LEFT ALT.

Save Games
This mod does not affect your saved games at all. It can be subscribed, used, and unsubscribed with no ill effects.

Performance
This mod should have no effect whatsoever on performance. If you're having performance problems, it's likely caused by other mods/assets.

Compatabiltiy

Mass Transit DLC: Compatibility Unknown
I don't have this expansion yet. Please let me know if it works/doesn't.

Snowfall DLC
I have done some initial testing, and it seems that the mod is still compatible with Snowfall (both the free update and the paid DLC). However, it's possible that something else is broken. Please let me know in the comments, along with whether you have the paid version or just the free update.

IMPORTANT: The Snowfall DLC broke a lot of popular mods. BEFORE you blame this mod or downvote or generally be a jerk, do your homework and make sure it's not some OTHER mod that's causing you problems.

Vanilla OR After Dark
This mod is compatible with both vanilla AND the paid After Dark expansion. I have the AD and have tested on that. Others have reported that it still works in vanilla.

UPDATE: Now 81 Tiles Compatible!
BloodyPenguin worked with me to make this mod compatible with his popular 81 Tiles mod! Thanks so much for his help and hard wor. NOTE: You MUST be using BloodyPenguin's new version of 81 Tiles, NOT the old one (that I think is broken at this point).

Known Incompatiblity
- None!

I haven't tested with any mods other than those I already use. If you run into compatability problems with other mods, please report them.

This mod overrides the standard behavior for the "DistrictTool" class, so other mods which do the same will be incompatable (I don't know of any at this time). Unfortunately, there seems to be no way to make changes that are more granular than this.

Known Issues
None for now! :)

Future Enhancements
- Clickable UI button to toggle on/off
- Customizable hotkey

Github:
jtheis85/ToggleDistrictSnapping[github.com]

Credits
BloodyPenguin for the options and redirection framework, as well as work done to make it 81 Tiles compatible!
Sebastian Schoner for the Cities:Skylines detour[github.com] code, without which this would not be possible!
< >
60 Comments
Dendraspis Jun 5 @ 9:36am 
:steamhappy: Initial release is out: More Advanced District Snapping
chuenma Mar 15 @ 5:44pm 
it cause error. something has to be remake
Finwickle Feb 3 @ 10:02am 
I'm missing this functionality as well. If someone creates or finds a similar mod, please tell us here in the comments.
ctcatuga Jan 16 @ 10:18pm 
Would love someone to take this mod on and repair it!
Smugger Sep 16, 2018 @ 10:40pm 
As others have mentioned already, this does not work with the current version of CS. It would be great to have this code picked back up.
(AEF) Vindicator Jul 12, 2018 @ 9:44pm 
Hope this is updated. Missing this functionality
alborzka Jul 3, 2018 @ 2:49am 
Hope someone picks up this great mod :(
hVrley Jun 11, 2018 @ 3:14am 
@sindar, do someone else have an updated version? thanks
sindar Jun 8, 2018 @ 11:43pm 
@hVrley, fix it by unsubbing this outdated mod currently incompatible with CS release 1.10.0-f3.
hVrley Jun 8, 2018 @ 10:26pm 
I kept on getting this error. How do you fix this?
The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\510802741 [ToggleDistrictSnapping.dll] has caused an error [ModException]

Details:
System.InvalidProgramException: Invalid IL code in ToggleDistrictSnapping.ToggleSnappingDistrictTool:SimulationStep (): IL_01a8: call 0x0600000f


at (wrapper managed-to-native) System.RuntimeMethodHandle:GetFunctionPointer (intptr)
at System.RuntimeMethodHandle.GetFunctionPointer () [0x00000] in <filename unknown>:0
at ToggleDistrictSnapping.Redirection.RedirectionHelper.RedirectCalls (System.Reflection.MethodInfo from, System.Reflection.MethodInfo to) [0x00000] in <filename unknown>:0
at ToggleDistrictSnapping.Redirection.RedirectionUtil.RedirectMethod (System.Type targetType, System.Reflection.MethodInfo detour, Boolean reverse) [0x00000] in <filename unknown>:0
at ToggleDistrictSnapping.Redirection.RedirectionUtil.RedirectMethod (System.Type targetType,
....