Jump to content

Visual Studio Modding Template Extension 1.0.2

   (4 Reviews)

2 Screenshots

About This File

In order to create a Cities: Skylines mod, you must go through a fairly tedious process of importing correct references through setting the right framework information, and then implementing interfaces, etc. After all of that, you then have to manually move over your built mod to the mods folder. Yuck!



Cities Skylines Modding Templates Extension for Visual Studio



I've created this extension for Visual Studio to help streamline the process for starting up new modding projects. In just a couple steps, you are able to produce a mod that will show up in the game on the first build. It works by using Visual Studio's Template system, along with a custom Wizard interface that I've created to customize the basic information of the new modding project.


How do I use it?


1. Open up the New Project interface in Visual Studio, making sure that the framework is .Net Framework 3.5 (This is because Cities: Skylines uses MONO which is based off of 3.5). Expand out the C# category and select the new category called Skylines Mods and choose the lonely Cities: Skylines Mod project template and give it a name. The default name it uses is MySkylinesMod.




2. A new window will now pop up, which is the bulk of the work of this template extension. Here, you can give your mod a name, description, and the author. The name and description fields is what shows up in the Content Manager window for the game. The Game Directory portion of the wizard should automatically fill itself. If It doesn't, then the Browse button will enable so you can define the install location of Cities: Skylines. By default, it assumes that you've installed it from Steam. The Mods Directory category is only used if the "Build to Mods Dir." is selected. That means that when building the project, a folder will be created that's the same name as the project name and a copy of the compiled mod (.dll) will all be placed into your mods directory. The Mods Directory is optional, however the Games Directory is required. The wizard uses this for the assemblies portion in order to correctly establish a reference when it comes time to compiling. You can select which assemblies you want referenced. You can always reference more later. Notice that the basic assemblies like mscorlib and System are excluded in this listing since these are included by default. Any assemblies that the wizard does not deem as "ignored" (Included by default/Shouldn't be needed) will show up in the selection box for reference, as long as it's in the proper folder.




3. After the project is created, go ahead and take a look at the code that was generated. It implements and includes ICity automatically and uses the information that was provided in the wizard for the Name and Description fields. When you're satisfied, go ahead and compile the project. If you selected the option to build to the mods directory, then you're ready to test! The image below shows where the Mods are automatically placed when compiled.




4. Load up the game and enable the mod through the Content Manager!




Awesome! How do I get it?

All you have to do is extract the .vsix file from the provided .zip. An installer-type interface will come up.


How do I uninstall it?

Because it's only an extension comprised of templates, all you have to do is go to Tools->Extensions and Updates and select Templates. The extension is called Cities Skylines Modding Templates and there is a button under Disable where you can uninstall it.


How do I update when there's a new version?

You don't have to uninstall the old version of the template extension, just install it how you would as if it was the first time installing the extension. Visual Studio will automatically do the rest.


What do I need to use it?

The extension was made exclusively for Visual Studio 2013 (Visual Studio 12). Any version of VS12 should do, as long as it has C#. If you're feeling brave, I can provide an extension installer for a lower version of Visual Studio, but I can't guarantee that it'll work. If you have Visual Studio Community, there should be no issues. Any Express editions do not allow extensions, so naturally it will not work for them. Community edition is free though!


What do I do if I find a problem?

Let me know ASAP so I can get to it and fix it!


What's the future?

I plan on adding some Item Templates in the future for complex things like making changes to the interface. I want to make sure that what I have now is working for other people before I work on Item Templates.

What's New in Version 1.0.2   View Changelog


  • Version 1.0.2 - Fixed generated version in the AssemblyInfo.cs file to prevent possible crashing in game. Updated the Post-Build Event for copying over the DLL to use %LOCALAPPDATA% system environment variable if selected.

User Feedback

Recommended Comments

This looks like an incredibly useful tool! If only I knew some C# ;)


I'll hold off rating until I try it out but thank you so much for sharing this!

Share this comment

Link to comment
Share on other sites

So if you have the source file of a mod you can make a .crp from it using this tool?
A lot of mods at Steamworks have sourcefiles :D

Share this comment

Link to comment
Share on other sites

i don't understand how this works and how  i use it exactly :D funny hah !!!! :D so can anyone help me to understand !!

Share this comment

Link to comment
Share on other sites

So if you have the source file of a mod you can make a .crp from it using this tool?
A lot of mods at Steamworks have sourcefiles :D

All this tool is for is creating a base template to use in the creation of mods for the game through visual studio. The actually logic of the mod is not created, it just assists in starting the creation of the mod. .crp is used for game assets, not mods (coding modifications to the game). The format that is used is .dll (Assembly) for the coding modifications. If you have the source files (.cs) of a game mod, then you can already compile it through visual studio without much effort at all.



Is free program Visual Studio? (2015)

Visual Studio Community Edition is free and can be used with this extension.



i don't understand how this works and how  i use it exactly :D funny hah !!!! :D so can anyone help me to understand !!

It's simply a template for the creation of a mod, based off of this reddit posting: http://www.reddit.com/r/CitiesSkylinesModding/comments/2ypcl5/guide_using_visual_studio_2013_to_develop_mods/

Share this comment

Link to comment
Share on other sites

Hi, thanks for the upload but I'm having a little trouble using it. I'm using Visual Studio Community '15 and when I try getting the template to run by double clicking I get a "Extension not installable on any currently installed products' error.

Is there a work around I can use, or is this a common problem? I've never used Csharp or VS before but ultimately I'm trying to create a mod for a police station that generates routable patrol cars, as with buses. 

I thought having this template may be helpful for me to create a workspace in which to try and 'cross-breed' if you like a pol stn and bus depot.

I'm using ILspy to try and examine the properties that relate to vehicle generation in the Assemblycsharp.dll but haven't been able to find them yet. I've been pointed to some coding files on github, which through comparison give an indication of commonly needed lines of code but nothing about vehicle generation which is what I'm really after.

Sorry BT dubs,After having selected .NET Framework 3.5, I am unable to find the Skylines Mods folder in the explorer window on the left.


Thanks for any help :)

Share this comment

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In  

Already have an account? Sign in here.

Sign In Now


Help Keep Simtropolis Online, Open & Free!


Would you be able to help us catch up after a bit of a shortfall?

We had a small shortfall last month. Your donation today would help us catch up for this month.

Make a Donation, Get a Gift!

We need to continue to raise enough money each month to pay for expenses which includes hardware, bandwidth, software licenses, support licenses and other necessary 3rd party costs.

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections