You need to be able to write a Hello World program.If you still haven't set up a solution, you're not ready for Harmony.4.3 How do I return a value from a void or prefix?.This article is mostly a "this is what you can do" summary in 5 minutes. Refer to the original documentation ( here). The snippets on this page are not meant as an exhaustive document on all things Harmony. 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. Usually this is all you need for your Mod. Harmony is great for running code patches before (Prefix) or after (Postfix) an existing method. Please only use HugsLib when you want to utilize some of its features! This is a bad practice, especially for beginners new to RimWorld Modding. Simply add Harmony as a dependency on Steam instead.Īdditionally, please DO NOT use HugsLib for an "easy" Harmony implementation due to the fact that HugsLib becomes an unnecessary and unutilized dependency for mods and beginners grow accustomed to using HugsLib in all their mods even if they never touch HugsLib's API in their code. Please do not include the dll (0Harmony.dll) in your mod's assemblies folder! Outdated versions of Harmony can cause issues. To integrate Harmony into your mod for use, download the latest stable release and add it as a reference to your C# project. Harmony is the current best practice for changing the runtime execution of code in RimWorld. Harmony - A library for patching, replacing and decorating.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |