-
Notifications
You must be signed in to change notification settings - Fork 8
1.4 Rimworld Run Configuration
This is only available in the Rider version of this plugin. The plugin provides a Rimworld Run Configuration for Rider, allowing you to quickly build your plugin and launch Rimworld either as a regular program or in debug mode.
To add your Run Configuration, up in the top-right of Rider near your Build button you should be able to Edit Configurations. Doing this will open a Run/Debug Configurations window where you can add a new configuration. Look for a specifically named configuration type called "RimWorld" with the Rimworld logo, and when selecting it you should see the options below
The only required option is "RimWorld Path", which should be a path to your RimWorld executable. If you choose, you can define a path to a Modlist.xml file and a .rws save file to launch with that Rimworld Run. If these are specified, Rider will copy these into the Rimworld paths for these files when launching the game, and remove them when you shut it down. Doing this lets you commit a testing save and a testing modlist and use them only when launching Rimworld from Rider, without affecting your Rimworld configuration for other uses.
Once your Run Configuration has been added, you should see a Run and a Debug button next to it.
Pressing the Debug button will do the following:
- Copy the necessary Dootstop files for your system into Rimworld
- Launch Rimworld
- Automatically attach your debugger
- Remove the Doorstop files copied into Rimworld when you either close the game or disconnect your debugger (which will also close the game)
With Rimworld in Debug mode, you should be able to put debug breakpoints into either your code or the games code. If you're unable to put debug points into your mods C#, check that your project's debug type is set to either "portable" or "embedded". You can do this by right-clicking your C# Project, going into Properties and under "Configurations", configuring the Debug Type.