RimWorld

RimWorld

Not enough ratings
[LC]AutoPatcher
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.1, 1.2
File Size
Posted
Updated
1.899 MB
Aug 23, 2020 @ 2:04am
Oct 10, 2020 @ 4:34am
7 Change Notes ( view )

Subscribe to download
[LC]AutoPatcher

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.
Popular Discussions View All (1)
1
Jun 15, 2021 @ 10:00am
Hi found a red error with this mod
Hades the King
25 Comments
Lecris  [author] Nov 14, 2020 @ 8:15pm 
It will be uploaded to Github Gist, and you'll get a link to pass along. Please contact Hugs on the HugsLib mod, to figure out why you are not getting the upload dialog to pop out.
Demoboca Nov 14, 2020 @ 7:39pm 
I press that and nothing happens! I can't even find out where the file will be located.
Lecris  [author] Nov 11, 2020 @ 3:50pm 
Ctrl+F12 and follow the instructions there
Demoboca Nov 11, 2020 @ 2:07pm 
@Lecris How do I get that log? It never seems to work for me.
Lecris  [author] Nov 10, 2020 @ 11:03pm 
Paste the link to the full HugsLog on Discord. This is an issue on ToolsFramework which should be fixed in recent versions
Demoboca Nov 10, 2020 @ 10:18pm 
Hey, I get an error with Autopatcher saying an Alpha Animals resource key has already been added:

https://pastebin.com/DMip2ken
Lecris  [author] Nov 7, 2020 @ 3:47pm 
Glad to hear that, but this mod only has 2 patches that would affect other mods. Otherwise it should only be affecting ToolsFramework and its derivatives atm, unless other people have made compatibilities without telling me.
NX Nov 7, 2020 @ 10:25am 
This mod saved my game. After spending days removing mods and adjusting load orders, this mod finally made my ridiculously over-moded game stable. Thank you!
Lecris  [author] Sep 4, 2020 @ 10:46pm 
I currently cannot do any more progress on the saving of the PatchTree which would drastically improve the load performance, due to issues upstream in Harmony and MonoMod .
Lecris  [author] Aug 29, 2020 @ 5:58am 
@Thetaprime your bug should be fixed now. Let me know if it works. You should get a Warning, let me know what it says.