Monster Compatibility Loader

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

Author: FelmastProMcLane

Last revision: 9 Apr, 2021 at 18:12 UTC

File size: 68.61 KB

On Steam Workshop

Description:

This mod aims to bring the abilty to add scripts to monsters in a compatible way, the same way NPCs can have them.

For users:

Replaces "monster.lua" and "monster_primary.lua", makes them work like vanilla, other mods may require this mod to make changes to it.
It allows for added compatibility between mods that affect monsters.
Check the collection to see which mods are supported.

For modders:
  • Inside this mod there is a new file "custom_monster_script_loader.lua", it is in charge of loading the scripts from the lists defined in the configuration mod.
  • Read configuration mod.
  • Leave this mod to load after every mod, only add patches to the configuration mod.
  • There is also a bunch of "dummy" patch files for many bosses from many mods, these are there because of some bosses that do not use "monster.lua", and thus they need to be patched separatedly, so you can copy them an put your scripts in there for said bosses.
  • The order in which scripts are loaded depend on the order the mods are loaded, so if you want to make your mod load after another, then include it in the "_metadata" file.
  • Scripts will be loaded for any monster that uses "monster.lua" and "monster_primary.lua", so keep that in mind.
  • To make your mod standalone but still have the compatibility for this mod, just copy both vanilla’s lua monster files into your mod and edit them to require your custom script, then add the patch file for the configuration mod- When this mod replaces the monster scripts, your custom scripts will still load, or if not installed, then your mod will load them by itself.

Uninstalling

Just unsubscribe, mods that need this mod to work will probably stop working.

Download
Required items:

Click the title to search on this site.


Monster Core : ConfigurationSteam Workshop