Editing Modding Tutorials/Harmony
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{BackToTutorials}} | {{BackToTutorials}} | ||
− | |||
− | Harmony | + | '''[http://rimworldwiki.com/index.php?title=Modding_Tutorials/Injection&action=edit&redlink=1 Harmony] - A library for patching, replacing and decorating .NET and Mono methods during runtime''' |
− | |||
− | + | Harmony is the current best practice for changing the runtime execution of code in RimWorld. The best method of incorporating it in your Mod is to depend on the HugsLib Mod. | |
Harmony is great for running code patches before (Prefix) or after (Postfix) an existing method. Usually this is all you need for your Mod. Because this does not change existing functionality of RimWorld, it MOST LIKELY does not impact other mods and runs in parallel with other Harmony patches. | Harmony is great for running code patches before (Prefix) or after (Postfix) an existing method. Usually this is all you need for your Mod. Because this does not change existing functionality of RimWorld, it MOST LIKELY does not impact other mods and runs in parallel with other Harmony patches. | ||
− | |||
− | == | + | = Links = |
− | |||
− | |||
− | |||
− | + | [https://github.com/pardeike/Harmony/wiki Harmony's Wiki] - General outline of how to use Harmony | |
− | Harmony | ||
− | + | [https://github.com/roxxploxx/RimWorldModGuide/wiki/SHORTTUTORIAL%3A-Harmony RimWorldModGuide on Harmony] - gives some concrete examples and helpful explanations | |
− | |||
− | + | [https://gist.github.com/pardeike/c02e29f9e030e6a016422ca8a89eefc9| Harmony's Author's Transpiler tutorial] - Tutorial and example of using Harmony Transpiler, with helpful links (inject your code inside a RimWorld class's code - #DeepMagic) | |
− | |||
− | + | [https://gist.github.com/pardeike/c02e29f9e030e6a016422ca8a89eefc9| Harmony Thread] - Harmony thread on Ludeon Studio's Forum. Announcements of new versions, and the forum in general is a reasonable place to ask questions. | |
− | |||
− | + | [https://github.com/UnlimitedHugs/RimworldHugsLib HugsLib] - uses Harmony internally and gives modders useful tools (Mod options, etc) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [https://github.com/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |