Cities: Skylines

Cities: Skylines

View Stats:
capiVara Apr 7, 2015 @ 9:54am
Anywhere to find the *full* modding API?
I found this here only:
http://www.skylineswiki.com/Modding_API

At first glance it looks fairly extensive, until one realizes it only lists enumerations, interfaces and event handlers we can override.

What I am missing is the data structures, global objects, their properties and member functions that can be used to actually affect the game state.

I just want to make something very very simple (unlock the Districts feature and only that) and am not keen on installing Visual Studio or some other extra tools now just so I can have a look at the definitions in ICities.dll, after all what I am doing should be just a few lines in notepad; in fact I am simply missing what to actually write in my OnRefreshMilestones override, something like (not actual code, just an example what I am looking for):

City.Features.Districts.Enabled = true;
Last edited by capiVara; Apr 7, 2015 @ 9:55am
< >
Showing 1-6 of 6 comments
roberto tomás Apr 7, 2015 @ 10:52am 
you're going to need to know C# .. and visual studio is a good resource for this development, but shouldnt be necessary. but no, the documentation is only a skeleton of what it should be, and there has been no expressed interest by anyone in the community to flesh it out

— as much as it sucks to hack in the blind..at least it is C# and almost decompiles into readable code
Last edited by roberto tomás; Apr 7, 2015 @ 10:53am
roberto tomás Oct 5, 2015 @ 7:35am 
just coming back to post a follow up.

tl;dr — asset creation is deeply supported and active. there are 10s of thousands of assets. mod creation in c# is just about completely unsupported and the community is bizarrely unconcerned with addressing the lack of support and documentation.

there is now a site https://skylines-modding-docs.readthedocs.org that apparently eventually hopes to flesh out the documentation in a more inviting manner, but it is far from useful at this point.

there is also a cities skylines modding[github.com] wiki on github. It fills in some holes at the official wiki, but still lacks many things (the documentation in ICities will often times list only properties, for example).

reddit's /r/CitiesSkylinesModding community rarely, if ever, answers questions regarding modding in C#.

In short, modders are still left in the dark, with virtually no help from either the company or the community. Everyone is hoarding their secrets and not sharing information. Surprisingly though, quite a lot of projects have taken off. In the past 3 months, some 150 mods that involve actual C# code been published or updated, and there are probably 20-40 involved mods that clearly took an immense effort in hacking/figuring things out, each reinventing the wheel so to speak, which are still being developed.

At this point, probably the very *best* way to get into actual modding (as opposed to simple asset creation) is to find an actively developed project, one with multiple contributors who have recently contributed (there are probably only half a dozen of these) and volunteer there.
Last edited by roberto tomás; Oct 5, 2015 @ 7:53am
MarkJohnson Nov 6, 2016 @ 7:58pm 
Any updates on this in the last year? I was thinking of working on a mod, but I learned old standard C back in the 80s and forgot most all of it by now. but maybe it'll come back.
roberto tomás Nov 23, 2016 @ 3:18pm 
if anyone does provide such a resource I will get back into this game :)
Xiyng Feb 8, 2017 @ 12:51pm 
Considering this seems to be pretty high in Google search results, a bump might not be unwarranted.

It seems that whatever the wiki has is all that's officially in the mod API, and that's all there is to it. However, it's possible to tap into the guts of the game and use those to achieve more with modding. On Windows, ICities.dll contains the mod API, but more can be achieved with Assembly-CSharp.dll and UnityEngine.dll. Since that's not officially supported though, it should be no wonder that the wiki doesn't mention them either.
Drunken Lizard Sep 14, 2017 @ 1:22pm 
This might be helpful, though it is a bit old: http://static.croxford.me/CitiesSkylinesAPIDOC/index.html
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Apr 7, 2015 @ 9:54am
Posts: 6