• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Lamargo

Recruit
11 Badges
Mar 10, 2015
4
0
  • Cities in Motion
  • Cities in Motion 2
  • Lead and Gold
  • Magicka
  • Majesty 2
  • Cities: Skylines
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Prison Architect
Hi,

TL;DR: Where is the correct place to put the .cs file so that the game compiles it?

I've started playing around with the modding API, and have made a very basic c# script as a test, but whenever I load the game up, C:S doesn't detect it - it doesn't generate the .dll on launch. I think the problem is either the location to put the mod in, or there is a compiling issue, so it doesn't make the .dll - no feedback to suggest what's going on though =/. I have entered the name and description within the .cs file itself.

When I've looked at info on where to put the .cs file, I've seen two places given. Either:
\users\[user]\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\
or:
\Program Files (x86)\Steam\SteamApps\workshop\content\255710

So that's my question here: where is the correct place to put your mods .cs file so that the game will compile it in to a .dll?

Cheers,

//Lam
 
I got it to work by using Visual Studio express. Build the dll and copy into a new directory eg
C:\Program Files (x86)\Steam\SteamApps\common\Cities_Skylines\Files\Mods\MyNewMod\MyNewMod.dll

I could not get it to work the way described in the docs.
 
You should put it in \users\[user]\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\[Mod name]\sources
Then it will compile a DLL for you and put it in the mod folder.