Starbound

Starbound

204 ratings
Monster Compatibility Loader
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
70.738 KB
Apr 1, 2021 @ 10:00am
Dec 26, 2024 @ 8:20am
4 Change Notes ( view )

Subscribe to download
Monster Compatibility Loader

In 1 collection by FelmastProMcLane
Monster Core : Collection
10 items
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.
26 Comments
FelmastProMcLane  [author] Dec 17, 2024 @ 6:55am 
Lukiwarble Dec 17, 2024 @ 5:31am 
thats like the 7th instakill bug in a row already
Lukiwarble Dec 17, 2024 @ 5:30am 
one day the monsters will stop dying instantly
Lukiwarble Dec 17, 2024 @ 5:30am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster.lua"]:103: attempt to index a nil value (field 'damageTaken')
stack traceback:
[C]: in metamethod 'index'
[string "/monsters/monster.lua"]:103: in function <[string "/monsters/monster.lua"]:101>
Ashtar Apr 11, 2023 @ 1:40pm 
Hi Felmast ?
Azure Mar 11, 2023 @ 3:51am 
this mod causes glowing of damage numbers, which means that you don't have to build up a lighted area for fight, this may ruin the gaming experience because the light is crucially important when fighting in darkness, now that with this mod you don't need to place torches or turn on the flashlight, but just with a single hit, the monster would no longer be "invisible" in the night.
Hopefully wish this should be resolved.
Ashtar Dec 22, 2021 @ 3:00pm 
I go try later and I'll come back to tell you
FelmastProMcLane  [author] Dec 22, 2021 @ 2:57pm 
You are welcome, although, I don't know if it will solve it.
Ashtar Dec 22, 2021 @ 2:52pm 
OmG thanks very much you are the best and fast❤️❤️❤️