Cities: Skylines

Cities: Skylines

Not enough ratings
[DEPRECATED ] PrecisionEngineering - Length snapping fix test
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
47.616 KB
2 May, 2020 @ 2:38pm
1 Change Note ( view )

Subscribe to download
[DEPRECATED ] PrecisionEngineering - Length snapping fix test

Description
---
Please don't subscribe to this mod anymore, but go to https://sp.zhabite.com/sharedfiles/filedetails/?id=2083188521
---



PrecisionEngineering - Length snapping fix test

Since the update of April 2020 (for me at least) length snapping of highways, rail, metro and a ton of other networks broke. I cloned the original Precision Engineering and just started messing around in it, when I found something which fixed it for me. This mod is published so others may test whether the fix works for them as well.

Make sure to unsubscribe the original Precision Engineering!
3 Comments
algernon 3 May, 2020 @ 7:05pm 
Looking good!

Welcome to the C:S modding world, by the way - the exact same situation (unmaintaned mod) was what (finally) got me publishing mods on the workshop, too.
Tuna  [author] 3 May, 2020 @ 5:43am 
The 'fix' is basically always returning one unit as the length to snap to. The original mod overrides a method in the core, and only allowed this snapping for zoneable networks. I'd say this should now be working for any network you're building. But, huge disclaimer here, I'm not familiar with C# at all, nor the code of the game or anything. I was just bothered with this bug and the author of the mod abandoning it, so I tried to fix it myself.

Source is available at https://github.com/tunaflish/PrecisionEngineering . Also, since this was the test workshopitem cloned directly from the original mod, I'm gonna have to remove it. I've uploaded a new version of the fix at https://sp.zhabite.com/sharedfiles/filedetails/?id=2083188521 .
algernon 3 May, 2020 @ 12:46am 
Interesting and useful - GitHub? Would be good to see the source to see what you've changed (and help with identifying any issues).