Skip to content

Instantly share code, notes, and snippets.

Now with 100% less recompiling! And 100% more downloading. Sorry.

Download the following:

  • The two executables (Opus Patcher, Modded Opus), which you can get from the releases on their respective repos (on my GitHub profile). -The former runs on .NET Framework, which is required to patch with Opus Magnum's executable, and the latter runs on .NET Core, which has libraries I rely on.

  • Mono.Cecil, available from NuGet (https://www.nuget.org/). If you're unfamiliar with NuGet and simply want to play, download the package using the link on the sidebar, rename it from a .nupkg to a .zip, extract it to a folder, and copy Mono.Cecil.dll from the net40 directory.

    • Mono.Cecil provides tools for patching an executable, used to extract strings from the game.
@l-Luna
l-Luna / blah blah.md
Last active January 19, 2021 18:33
Opus Magnum modding: How to
  1. Backup your Lightning.exe. These tools won't damage it, but you might - rename it to something like LightningBackup.exe.
  2. Compile Opus Modded (produces mapped & patched decompiled output) and OpusPatcher (helps dump scrambled strings). Copy mappings.csv, keys.txt, and patch.diff from Opus Modded to somewhere else, you'll need those.
  3. Run OpusPatcher.exe, passing the path to your Lightning.exe as the first command line argument, and the path to your keys.txt as the second. It creates a new Lightning.exe in the directory you ran it - move it to the normal Opus Magnum folder and run it. It must be named Lightning.exe, and I think it has to be in the correct folder (though I haven't tested). It won't start the game, instead creating out.csv. Avoid overwriting your original Lightning.exe. Don't worry if you do - Steam can redownload it. It's just annoying.
  4. Run Opus Modded.exe, passing the path to your Lightning.exe as the first argument and path to mappings.csv a