Skip to content

Rimworld-Mods/Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rimworld Mod Template

This template is created for Rimworld modders who use Visual Studio Code instead of Visual Studio IDE.

  • No virtual folders. Easy to manage and edit both xml and cs files.
  • Lightweight. Visual Studio Code only takes up to 500 MB of storage space and is lighting fast.
  • Automated. Integrated build, scripting and management tools to perform common tasks making everyday workflows faster.
  • Customizable. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure.

Setup

Windows

  1. Download and install .NET Core SDK and .Net Framework 4.8 Developer Pack. This step can be skipped if you already have required C# packages from Visual Studio IDE.
  2. Install C# extension.
  3. Clone, pull or download this template into your Rimworld Mods folder.

Linux

  1. Linux dotnet setup may vary depending on how you install Rimworld and what distro is being used. Follow Microsoft's instructions to install dotnet.
  2. Install C# extension.
  3. Clone, pull or download this template into your Rimworld Mods folder.

Additional Notes

  • By pressing F5 key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
  • All intermediate files are kept inside .vscode folder.
  • For XML only modders remove preLaunchTask line from .vscode/launch.json file.
  • Modify .vscode/mod.csproj and About/About.xml according to your needs.

Debugger

Setup

  1. Follow the instructions of pardeike / Rimworld-Doorstop to create a debug server.
  2. Install Mono Debug extension.
  3. In the Debug Panel (Ctrl+Shift+D), switch the configuration from Build & Run to Build & Debug.
  4. Linux users additionally need to install the mono package.

Potential Issues

  • Launch process hanging
    If the Doorstop debug_suspend option is enabled, the Build & Run action will hang because the process is waiting for a debugger handshake. To resolve this, either attach the debugger manually or use the Build & Debug action to automate the connection.

Companion Tools

About

Rimworld Mod Template for Visual Studio Code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages