GodotModding / GodotModding/godot-mod-loader

`load_before` should allow setting the same mod as `optional_dependency` or `dependency`

Open
#354 0 comments 1 reaction 0 assignees View on GitHub
3.x 4.x enhancement
Dominant language
GDScript
Stars
675
Forks
54
Avg merge
2m
Merged PRs (30d)
2

Description

Right now, `load_before` is equivalent to an `optional_dependency`, but in most cases, mods using `load_before` will depend on the mods in `load_before`. If the mod is loaded without the mod in `load_before`, it will most likely crash the game.

So, two options:

🎉: Just add the dependency check for `load_before`, i.e. don't load it if the dependency is missing.
🚀: Add the option to set the `load_before` mod also in `optional_dependency` and `dependency`. This is probably not as nice because we need to add additional checks in the existing dependency handling, as usually the dependency should load before the dependent mod.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.