RWMP Dev Wiki

Compiling

  1. Clone the repo into RimWorld's Mods folder (otherwise reference paths will need fixing)
  2. Run the Multiplayer.csproj file found in the source folder with an IDE and you can just press start to compile it.
  3. Now you can just copy the About, Assemblies, Defs and Languages folders into another folder in the mods folder.

Trouble Compiling?

Ionic.Zip.Reduced might cause problems for some. The proper Nuget package is here.

Debugging

Follow these steps to set up debugging for Zetrith's multiplayer mod in RimWorld using dnSpy.

Steps

  1. Set up Doorstop
    Follow the instructions provided at the Rimworld-Doorstop GitHub repository.

    You can stop here if the breakpoints for the mod are hit in dnSpy.

  2. Open dnSpy for Debugging

    • Launch dnSpy.
    • Navigate to Debug -> Start Debugging....
    • Set the following options:
      • Debug engine: Unity
      • Executable: ..\steamapps\common\RimWorld\RimWorldWin64.exe
    • Press OK.
  3. Check if RimWorld Starts

    • RimWorld should open at this point.
  4. Find Multiplayer.dll

    • In dnSpy, go to Debug -> Windows -> Modules.
    • This will list all .dll files used by RimWorld.exe.
    • Look for Multiplayer.dll and open it, but note that it may not appear right away.

    If you find Multiplayer.dll, skip to Step 6.

  5. Search Through Unidentified Modules

    • If you can't find Multiplayer.dll, double-click any module with names like data-0000022CFEF538E0.
    • Check the left-side Assembly Explorer to see if Multiplayer.dll appears there.
  6. Set Breakpoints

    • Once you locate Multiplayer.dll, you should now be able to set breakpoints for debugging.