kbatbouta / RimWorld-RocketMan

RocketMan is a RimWorld mod that is designed to improve RimWorld performance.
Eclipse Public License 2.0
48 stars 7 forks source link

RimWorld-RocketMan

Build Version

Workshop page

Alt text

Description:

RocketMan is a RimWorld mod that is designed to improve RimWorld performance.

Important note: RocketMan should be the last mod in your mod list.

Features:

Description comming soon...

Notes:

  1. RocketMan doesn't support RimThreaded and never will.
  2. Currently The Multiplayer mod is not supported.
  3. Bug reports with no logs will not get a response.

Github Link: https://github.com/kbatbouta/RocketMan

RocketMan is OpenSource and for anyone to use, modify, update.

Credits:

DISCLAIMER: I’m not responsible in any way for damage done by RocketMan to your saves.

RocketRules (Compatibility system)

RocketMan support a new rule system to avoid compatibility issues. This works by placing RocketRules.xml files in YourModFolder/Extras/RocketRules.xml

Request and notification system

<?xml version="1.0" encoding="utf-8" ?>
<RocketRules>
     <Notify type="PawnDirty" packageId="krkr.RocketMan" method="ThingWithComps:Notify_Equipped"/>
</RocketRules>

Your mod can notify RocketMan to clear the statCache by calling a function in your code (preferably not empty due to patching limitations). You can follow this format

Note This works by applying a Prefix patch on the destination/provided method (in this case ThingWithComps:Notify_Equipped) thus every time you call ThingWithComps:Notify_Equipped in this example the prefix is executed and the cache is cleared. and that prefix notify rocketman to clear the cache

Note The destination/provided method should have something in it otherwise patching it may not be possible

Notification types

Note on notification types For now there is only one which is PawnDirty. This system is the new way forword for your mod to call RocketMan regardless of the load order.

Special Thanks goes to:

You can always ask questions on the Dubwise discord server: https://discord.gg/mKVDMqq4

You can always support me!

Buy Me a Coffee at ko-fi.com