Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Not Enough Madness

Adds a mod menu with many features and allows creation of custom characters. (and much more) · By XDefault

Unity modding recommendations

A topic by art0007i created Oct 01, 2021 Views: 262 Replies: 2
Viewing posts 1 to 3

instead of giving people a file to replace in the game directory you could try to use IPA or MelonLoader (github link) to load mods and then modify the game's code using Harmony (github link)

that way is more update proof and also allows for having multiple mods at the same time

Developer

Oh :0 Thank you, I'll look into it!

Developer

So I've looked into Harmony and unfortunately I think it wouldn't work with my mod.

Limits of runtime patching

note Harmony can't do everything. Make sure you understand the following:

  • With Harmony, you only manipulate methods. This includes constructors and getters/setters.
  • You can only work with methods that have an actual IL code body, which means that they appear in a dissassembler like dnSpy.
  • Methods that are too small might get inlined and your patches will not run.
  • You cannot add fields to classes and you cannot extend enums (they get compiled into ints).
  • Patching generic methods or methods in generic classes is tricky and might not work as expected.

Some of the limitations here wouldn't allow my mod to function without taking away features.