[LC]AutoPatcher

If you liked this item, please rate it up on Steam Workshop page.

Author: Lecris

Last revision: 10 Oct, 2020 at 12:34 UTC

File size: 1.81 MB

On Steam Workshop

Description:

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 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 MathParser.org formula structure to inject stats to ThingDefs. (accessible entirely via XML)

Check [LC]ToolsFramework 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.
[github.com]
Discord server for chatting.
[discord.gg]
Kofi to support me monetaraly.
[ko-fi.com]

Additional Info

This mod contains assembly for MathParser.org. The code is poorly documented at the moment, if you can help with the documentation please contact me on Github or Discord.

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop
HugsLibSteam Workshop