Changes

Jump to navigation Jump to search
148 bytes added ,  14:21, 25 August 2019
Line 21: Line 21:  
== Compile ==
 
== Compile ==
 
When you're done, you can either compile your mod and place it in the game's folder, in a subfolder called "DLLMods", or create a new subfolder in the "DLLMods" folder and put your .cs files in that subfolder, and the game will compile them for you. Note that if you let the game compile the C# files for you, you are limited to C# version 3, but '''using the game's compiler is required, if you want to upload your mod to the Steam Workshop'''.
 
When you're done, you can either compile your mod and place it in the game's folder, in a subfolder called "DLLMods", or create a new subfolder in the "DLLMods" folder and put your .cs files in that subfolder, and the game will compile them for you. Note that if you let the game compile the C# files for you, you are limited to C# version 3, but '''using the game's compiler is required, if you want to upload your mod to the Steam Workshop'''.
 +
 +
'''Please note that due to a bug in the compiler the game uses, you cannot use enums if you are using straight .cs files or the game will crash'''
    
== Example mod ==
 
== Example mod ==

Navigation menu