Cities: Skylines

Cities: Skylines

评价数不足
[DEPRECATED ] PrecisionEngineering - Length snapping fix test
   
奖励
收藏
已收藏
取消收藏
Mod
文件大小
发表于
47.616 KB
2020 年 5 月 2 日 下午 2:38
1 项改动说明 ( 查看 )

订阅以下载
[DEPRECATED ] PrecisionEngineering - Length snapping fix test

描述
---
Please don't subscribe to this mod anymore, but go to https://psteamcommunity.yuanyoumao.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 条留言
algernon 2020 年 5 月 3 日 下午 7:05 
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  [作者] 2020 年 5 月 3 日 上午 5:43 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2083188521 .
algernon 2020 年 5 月 3 日 上午 12:46 
Interesting and useful - GitHub? Would be good to see the source to see what you've changed (and help with identifying any issues).