Modding tool for automatically patching.
Overview
Automatic patching is defined via a PatchTree and various PatchNodes, containing the logic of the patchs and instructions respectively. Pre-made nodes:
[list]
[*] List all Defs and Drivers.
[*] Type searcher: search in all methods for calls to DefOfs.
[*] Toil searcher: search in all methods for called actions.
[*] Patch Defs and Types: from simple stat replacing (accessible entirely via XML) to user-defined Harmony patches.
[*] Patch Toils: patch any particular Toil, and insert Toils in arbitrary positions.
[*] Stat-Injector: Uses [b][url=http%3A%2F%2FMathParser.org]MathParser.org[/url][/b] formula structure to inject stats to ThingDefs. (accessible entirely via XML)
[/list]
Check [b][LC]ToolsFramework[/b] for an example implementation.
Compatibility
Please report compatibility issues on Github or Discord.
Acknowledgements
The Rimworld modding community, and a special thank you to Brainz, for developing the Harmony methods needed for this mod.
Various links
Github for posting issues, comments and contributing to the mod.
[url=https%3A%2F%2Fgithub.com%2FLecrisUT%2FRimworld-AutoPatcher][img]https://raw.githubusercontent.com/LecrisUT/Rimworld-AutoPatcher/master/Source/SteamDescription/GithubLogo.png[/img][/url][github.com]
Discord server for chatting.
[url=https%3A%2F%2Fdiscord.gg%2FWRv5Sr2][img]https://raw.githubusercontent.com/LecrisUT/Rimworld-AutoPatcher/master/Source/SteamDescription/DiscordLogo.png[/img][/url][discord.gg]
Kofi to support me monetaraly.
[url=https%3A%2F%2Fko-fi.com%2Flecris][img]https://raw.githubusercontent.com/LecrisUT/Rimworld-AutoPatcher/master/Source/SteamDescription/Kofi.png[/img][/url][ko-fi.com]
Additional Info
This mod contains assembly for [url=http%3A%2F%2FMathParser.org]MathParser.org[/url]. The code is poorly documented at the moment, if you can help with the documentation please contact me on Github or Discord.