1. Welcome to the official Starbound Mod repository, Guest! Not sure how to install your mods? Check out the installation guide or check out the modding help thread for more guides.
    Outdated Mods have been moved to their own category! If you update your mod please let a moderator know so we can move it back to the active section.
    Dismiss Notice

LuaPluginLib beta.33

Utilities and base asset Lua script support for smarter Lua script patching

  1. shawntruesdell
    Mod authors want to be able to modify base asset Lua scripts, but doing so runs the risk of collisions with other mods.

    The alternative of adding "hooks" by injecting new scripts into config files works in some cases, but it's not very intuitive and is still prone to mod conflicts.

    LuaPluginLib adds some utilities to better manage these "hooks" and adds a config-driven "plugin" system for loading modifications to a lua file without needing to patch every config where it's referenced to stack your hook.

    With LuaPluginLib, add one JSON patch to reference your plugin, define your hooks with add_before_hook(<function>, <your hook>), and if necessary define requirements/load-order expectations relative to other plugins.

    NOTE: This is still an in-development Beta release. Not all vanilla scripts are currently supported, but the list is growing every day.

    For more about usage and supported scripts, take a look at the README
    Mod Pack Permissions:
    Anyone can use this mod in their mod compilation without the author's consent.
    Mod Assets Permissions:
    Anyone can alter/redistribute the mod's assets without the author's consent.