deploader

Description

Simple mod API that automates optional dependencies using a folder-heavy approach.

How to use? 🔗

put deploader in your mod.conf's dependencies list, add the following line to your init.lua:

deploader.load_dependencies()

...and now you can manage your optional dependencies using folders like so:

/depends/mods/modname/init.lua
/depends/mods/other_mod/init.lua
/depends/mods/...

for game specific stuff, use:

/depends/games/game_id/init.lua
/depends/games/other_game/init.lua
/depends/games/...

yes you need to use a (dependency name)/init.lua pattern, but say you're not feeling the directory names, you can use:

deploader.load_depends {
    mods_path = "/directory_for_mods",
    games_path = "/directory_for_games",
}

you can set games_path and mods_path to the same folder but be warned this would cause issues if a mod and a game share a name.

dependency scripts get access to a global variable: deploader.current_path which will hold the path of the script's parent directory.

What is this error? help! 🔗

you may get an error like this:

add some_mod, other_mod to the optional_depends in your mod.conf

this is because you made a script for mods in your dependencies folder without first adding them to your mod.conf's optional_depends. this error occurs because my API can't ensure that your script will load after all optional dependencies have loaded, as load order is determined by the engine. simply double check your mod.conf and make sure you have a line that looks like this:

optional_depends = bombulator, airsword, some_other_mod, other_mod, blahblah, ...

note that this error doesn't show up unless the depended mod is enabled.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2025-12-31

Download

2025-12-31 17:04 UTC

2025-12-31 🔗

  • fix some markdown formatting issues
  • fix some markdown formatting issues (2)
  • update author username
  • cleanup + bugsquashing
  • fix markdown formatting issue (3)
  • add warnings for undocumented game support
  • add support for game aliases and mod aliases
  • add missing argument to load_mods call (sigh)
  • update api.md
  • add missing fallback (sighhhh)

2025-12-16

Download

2025-12-16 19:16 UTC

2025-12-16 🔗

  • fix typo in functions.lua

2025-12-16

Download

2025-12-16 19:00 UTC

2025-12-16 🔗

  • fix typos + code cleanup + commenting
  • function renaming
  • documentation + code cleanup
  • basic api documentation
All releases

Information

Provides

deploader

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
deploader
Languages
English
License
GPL-3.0-only
Maintenance State
Actively Developed
Added
2025-12-16 07:45 UTC
Maintainers
LuantistDork

Used By