Harmony Patching: Difference between revisions

From Vintage Story Wiki
(Created page with "Harmony is a library for patching, replacing and decorating .NET and Mono methods during runtime. It ships with the game and gives modders a much greater degree of freedom, wh...")
 
No edit summary
Line 1: Line 1:
Harmony is a library for patching, replacing and decorating .NET and Mono methods during runtime. It ships with the game and gives modders a much greater degree of freedom, which however comes at the cost of reduced game update resistance and mod compatibility. Due do that fact it is recommended to avoid Harmony where possible, but sometimes it is the only way to make necessary code changes for a mod to work.
Harmony is a library for patching, replacing and decorating .NET and Mono methods during runtime. It ships with the game and gives modders a much greater degree of freedom, which however comes at the cost of reduced game update resistance and mod compatibility. Due do that fact it is recommended to avoid Harmony where possible, but sometimes it is the only way to make necessary code changes for a mod to work. If you need a new hook in the vanilla game, feel free to [https://github.com/anegostudios/VintageStory-Issues/issues/218 suggest one on github]


Code samples for Vintage Story specifically are still missing here, but until then, you can refer to the [https://harmony.pardeike.net/articles/intro.html official documentation]
Code samples for Vintage Story specifically are still missing here, but until then, you can refer to the [https://harmony.pardeike.net/articles/intro.html official documentation]

Revision as of 16:16, 27 July 2021

Harmony is a library for patching, replacing and decorating .NET and Mono methods during runtime. It ships with the game and gives modders a much greater degree of freedom, which however comes at the cost of reduced game update resistance and mod compatibility. Due do that fact it is recommended to avoid Harmony where possible, but sometimes it is the only way to make necessary code changes for a mod to work. If you need a new hook in the vanilla game, feel free to suggest one on github

Code samples for Vintage Story specifically are still missing here, but until then, you can refer to the official documentation