Cities: Skylines

Cities: Skylines

Stricter Slope Limits
59 Comments
皮皮烨啊~ 8 Apr, 2023 @ 8:13pm 
考古
Smòóvious | TOBO 17 May, 2016 @ 9:02pm 
ramps should have a higher slope limit than highways... we have plenty of ramps here that easily exceed 7%.
Ladeia 7 Mar, 2016 @ 10:57pm 
Can you please add the option to temporally turn the mod off?
Earofcorn001 5 Jun, 2015 @ 9:15pm 
So, nevermind about that! Great Mod! I figured out I have to use the terrian editor better. No kidding about that recommendation.
Earofcorn001 5 Jun, 2015 @ 8:46pm 
Hey Japa, I love this mod and now that I've tried it there's no way I'm disabling it. However, I'd really like to know if there's a way to create my own assets with this. I thought the mod might be enabled while I created assets, but it doesn't seem to be. Is there a workaround?
Ruby 5 Jun, 2015 @ 8:15am 
I want the opposite of this, VERTICAL ROADS
Gfurst 26 May, 2015 @ 6:13pm 
A nice addition to the mod would be the "fine road heights" that reduces the steps for each up/down height.
b.fokke 10 May, 2015 @ 9:47am 
I have created a slope limiter mod that adds three features:
- Highway ramps can have a different limit than highways
- Mod uses two sets of limits (strict and relaxed) for when your road just needs to be a little steeper
- The user can switch between both sets using a key
- All settings can be configured (using a .xml file).
* Strict limits
* Relaxed limits
* Default mode (strict or relaxed)
* Key to toggle modes
* Key to temporarily change modes (by holding the key).
You can find the mod here:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=440635326
The General 10 May, 2015 @ 5:14am 
Great mod, but any chance you can bind this to a key to enable/disable this in-game? Sometimes when re-jigging infrastructure I'd kinda like to cheat my way around it temporarily.
GordonDry 28 Apr, 2015 @ 10:20am 
I also ask for a key binding to temporarily diasble incl. a draggable "feedback button" that tells if the mod is enabled like in Road Anarchy.
kreaturen 27 Apr, 2015 @ 3:18pm 
Strike that. Vanilla rules restored after restart.
kreaturen 27 Apr, 2015 @ 2:59pm 
Also, the changes did not revert back to normal when I turned off your mod. How can that be?! That kind of sucks, because now I have broken infrastructure in my city. Infrastructure that I kind of liked, but can't fix.
kreaturen 27 Apr, 2015 @ 2:14pm 
I like this. Makes a fine combo with that other mod of yours (Fine Road Hights). But, would it possible to have a hotkey to temporarily turn the rule changes off (similar to what Road Anarchy has) in case you absolutely need to? I attempted to use this in an already established city, and that caused issues when attempting to do changes to already established infrastructure.
Gfurst 25 Apr, 2015 @ 6:14pm 
LoL, i like the mod, but the high slope limits for ramps makes them a pain in the ass. Of course, they have a rather high speed limit.

Train tracks are the best too, check out my attempt to get this road up this mountain XD:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=432203537
Have to say it was fun as hell.

Anyway, in some cases it seems the game doesn't allow for smoother pillars but instead pull the terrain up.
Armandeus 21 Apr, 2015 @ 5:10am 
I like this very much, but I also wish to request a config file. Thanks.
Evil.Iguana 17 Apr, 2015 @ 6:22am 
It should be reasonably easy to see where you perform the edits. The lines where it says Case followed by the name of the road type are followed by a line that reads something like netInfo.m_maxSlope = 0.07f;. Simply change the decimal to one more suited to your own tastes. In this case, for example, I changed 0.07 to 0.20 so my highways can have up to a 20% grade. You will probably also want to change the description and/or name strings up in the top part of the code so you can differentiate your mod. Run C:S and activate your mod in the content manager and voila, you now have a custom slope limit!
Evil.Iguana 17 Apr, 2015 @ 6:22am 
Creating your own version of this mod with slope limits that suit you is pretty simple. Japa has graciously included a link to the source code. Here's how to do it: Copy and paste the code from the link into a text editor. I use Notepad++. Save the file as whatever with the extension .cs because this is a C# source file. I called mine EISlopeLimit.cs. Now we need to move the file to where C:S can read it. C:\Users\<username>\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods is where we want to start, with <username> being whatever your windows user name is. Create a new directory with the name of your mod in that one. I used EISlopeLimiter. Inside that directory create another called Source. Now put that .cs file inside Source. When you run Cities:Skylines it will automatically compile that source code. Currently it will work exactly like Japa's default, but you can edit the .cs file to change the numbers more to your liking.
Sausage 10 Apr, 2015 @ 12:52pm 
A lot more challenge, sure, but no more ramps that look like ski-jumps either xD

Thanks!
Lord Morpheus 9 Apr, 2015 @ 5:13pm 
Hey great mod.

Would it be possible to make it configurable via config file? So everybody can use the slopes he wants.
FRITZ_FANTOM 8 Apr, 2015 @ 6:46am 
could anybody implement the contour lines overlay into the game. because placing roads without seeing the topography of the terrain is a PITA.
Rose  [author] 7 Apr, 2015 @ 9:04pm 
Actually, there is a road almost like that.

Dirt roads.
James Coyle 7 Apr, 2015 @ 5:34pm 
The ramps need to be more like 20% because it is impossible to use them on uneven terrain. The slower/smaller roads are too strict too IMO. Customisable values would be nice really. Maybe I'm missing an option somewhere?

It would be cool if someone added some new single lane roads which had a high cost, 20 speed limit and no supports so you can't raise them but had 30%-50% incline. That way you could get up hills but traffic is slow and using more than one costs a lot and the lack of supports means you cant use it for junctions either.
Tigen Shintan 4 Apr, 2015 @ 11:37am 
@Japa I think what he mean is Highways is at 7% and ramps is at %15.
bltzn 4 Apr, 2015 @ 11:36am 
This really needs a shortcut or button to toggle on/off, please!
Rose  [author] 4 Apr, 2015 @ 5:27am 
@Amos, I put a link to the source. Feel free to do what you want with it.
Amos 31 Mar, 2015 @ 3:16am 
@Japa Make something like 'High Steep Ramps' and 'Extream Steep Ramps'
Ezpz :D
Rose  [author] 30 Mar, 2015 @ 8:00pm 
Yes, this does make mountainous maps very difficult. As for rail type, that is most likely not from this mod.
Klaasgowicz 30 Mar, 2015 @ 1:21pm 
Also when I try to select the rail type (straight, curve, free-form) the buttons appear to be broken. (Workaround: Select Road-Tool, select street type, then switch to train tab again)
Klaasgowicz 30 Mar, 2015 @ 1:10pm 
Sorry, had to Unsubscribe: Playing a map with many hills and mountains and I can't build a railway switch anymore and nearly every road going up is impossible
Amos 29 Mar, 2015 @ 5:32am 
Could you make an opposite of this? So like 75% maybe? I kinda get annoyed with the limits. ;P
XSwiftX 28 Mar, 2015 @ 4:11pm 
Great mod. An option to toggle it on and off so we can still place ploppable intersections would be great
Kzon 28 Mar, 2015 @ 5:54am 
I agree with @robert tomas
Pajoonk 28 Mar, 2015 @ 3:47am 
Mod is great, especially for vanilla maps.

Currently I'm on custom, very mountainous map and have many, many...too many problems :-(

If I can make a suggestion: If its possible make additional road types with higher max slopes but lower speed. It's especially important for large roads and highways.
Also, I think that ramps should have higher slope limit than highway.
At least in Poland most ramps have speed limit around 50km/h. Those with high slope - 40km/h those very level and straight - 70km/h. Any speeding up should happen on additional highway lane anyway.

Another request - is it possible to limit bend radius? Especially on highways and for trains. Also with option (another type of track) for lower radius but significantly lower speeds.
chrisg 27 Mar, 2015 @ 10:38pm 
i think this is my new favorite mod.. no more roller coaster roads
Logic Virus 27 Mar, 2015 @ 12:55am 
Ah, I figured that this was probably the limitation of the framework. I thought if it can detect the slope of the road and give warning/stopping us, we could adjust it to give a prompt that if you want to continue. It will do it but with penatly quota for each % over standards up to an absolute max. This is probably advanced modding anyway. :P!
Rose  [author] 26 Mar, 2015 @ 11:33pm 
I'm not really sure if it's possible to modify speed limits on individual sections of highway, but it might be possible to make different highways with different speed and slope limits.
Logic Virus 26 Mar, 2015 @ 11:03pm 
Alot of rare exceptions of steeper IRL roads than current MOD %. But chances are, they could have been grandfathered into the modern standards which the mod is not about atm as medopubb said. Any exception would probably be met with penalty. Maybe speed penalty like the highway we have over here with 8% in a gorge @ 80km/h. Just an idea. ^^
Logic Virus 26 Mar, 2015 @ 10:40pm 
Thanks for the mods. The stats are pretty good on an international scale. Will try them out! :)

@roberto "Stricter Slope Limits". Try Steeper Slopes & Higher Bridges by mabako.
sstellaire 26 Mar, 2015 @ 10:40am 
Great Japa ! this mod and this one with the heights is simply great !
It is not easy to use (terraforming tool is essential with it) but the results are so realistic !!!
do you will make a option that the road terraform automaticaly more ? And to read the slope of the road (in %) before building (in the costs windows maybe)
Anyway Bravo for this work !
makor 26 Mar, 2015 @ 4:47am 
@roberto, Read Roads: Geometric design and layout planning [www.csir.co.za]. As far as Major roads are concerned (highways, motorways, single-lane regional roads) You need <5% slopes for speeds up to 120 km/h and less than 10% slopes for designed speed of 40km/h.

There are exceptions like I70 or any other mountain overpasses which need extra sholder lanes for heavier vehicles to climb anyway, but I hope we're good enough road planners in this game, so we can avoid using great slopes if we can.

If anything, the mod-slopes are actually generous, and don't bombard me with real-world exceptions to the rulebook, if I were to build roads that don't abide by regulations, like some real-world examples, I wouldn't download this mod.

Yamashta 26 Mar, 2015 @ 3:15am 
Thanks, great mod.
roberto tomás 25 Mar, 2015 @ 12:44pm 
@medopub —not that I don't think it is a good mod. I *do* wish it was configurable though, so many mods offer config files.

there are *major* interstate highways in the US, like interstate 70, that have what you call *stupid* slopes. You're wrong.. it isn't that 25% should be everywhere, but "realistic" limits are more like 35/25/17.5/5 or at least 25/20/15/5

You'll notice he's got a 5% grade for rails that that would be about the same as ~30% for small roads — in terms of being unaccessible to real world vehicles. Also the highway *ramps* are more normally constrained to ~7% or less, but that is mostly a matter of wanting vehicles to be able to merge at speed.
rednael 25 Mar, 2015 @ 10:55am 
I have to agree, great mod!
But despite the realism of it, I'd really like a config where we could change the values. 5% for trains is looking gorgeous, but when playing some way-to-high maps it's simply impossible to build a track up the hills.

With a config this mod would be almighty ;)
makor 25 Mar, 2015 @ 8:41am 
Great mod.
To those complaining like that roberto: just because there are a few examples in real life with big slopes 15%+ doesn't mean that 99.99% of national roads, highways and so on have a very strict rule of having as gentle slopes as possible. Only when there is no other way, do we see the stupid steep slopes.
Rose  [author] 25 Mar, 2015 @ 4:29am 
I added a dependency to my mod that give you finer control over road and rail elevations, which makes things so much easier.
cyricc 24 Mar, 2015 @ 11:30pm 
Sweet, having long used slope mods in simcity 4 I was hoping someone was working on one for this game. Just spent an hour making a mountain train route, this mod makes it so much easier to make good looking tracks!
roberto tomás 24 Mar, 2015 @ 8:22pm 
the problem with this is that it isn't realistic. 15% grade is steep, but there are dozens of roads just in the US with grades twice that steep. Even highways commonly have grades as high as 12%

I hope you consider giving us a config file to set so we can pick what seems realistic in our own countries.. I'd love to have small: 37%, large: 20%, highways 12%, trains 5%
roberto tomás 24 Mar, 2015 @ 8:21pm 
the problem with this is that it isn't realistic. 15% grade is steep, but there are dozens of roads just in the US with grades twice that steep. Even highways commonly have grades as high as 12%
Hope you consider giving use a config file to use so we can set our own.. I'd love to have small: 37%, Large: 20%, Highways 12%, Trains 5%
Quo 24 Mar, 2015 @ 7:40pm 
Oh that's great to hear, thank you so much I've been waiting for a tool like that!
Rose  [author] 24 Mar, 2015 @ 7:27pm 
Right now the mod just limits what is possible using page up and page down. I'm working on a separate mod that will allow finer control over those heights, which will help with this mod, but that isn't quite ready yet.