Skip to content

Instantly share code, notes, and snippets.

@twobob
Last active February 7, 2021 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twobob/ae7eef02c6946ee6c09e47224aab81d6 to your computer and use it in GitHub Desktop.
Save twobob/ae7eef02c6946ee6c09e47224aab81d6 to your computer and use it in GitHub Desktop.
patching dll's for rimworld
get dnspy https://github.com/0xd4d/dnSpy/releases
I used https://github.com/dnSpy/dnSpy/releases/download/v6.1.8/dnSpy-net-win64.zip
* run it, and drop your Assembly-CSharp dll on it
* usually in "c:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll"
* expand the tree Assembly-Csharp (1.2.7705.251110) -> {} Rimworld -> LordJob_PrisonBreak
* right click the "CanOpenAnyDoor" method name in th code on the right hand side pane and choose -> Edit method
* just make it return false, like so "return false;"
* click compile
* go to File -> Save Module and save it somewhere sensible (NOT OVER YOUR OLD FILE)
* make sure Rimworld is closed
* Now, just rename the old dll to something (like Assembly-CSharp.dll.bak) and copy over the new one you just saved to Assembly-CSharp.dll
* usually in "c:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll"
Start Rimworld.
@twobob
Copy link
Author

twobob commented Sep 6, 2018

ripped from somewhere

@twobob
Copy link
Author

twobob commented Feb 7, 2021

edited for Rimworld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment