Feature request - Module dependancy changes and module dependents. #4212
DanielWillett
started this conversation in
General
Replies: 1 comment 1 reply
-
Reasonable, but relatively low priority to improve the modules feature. Would it be reasonable for your module to load these optional add-ons itself? For example, as part of your module startup checking for the optional extras to load? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add some advanced compatibility layer stuff with one of my modules but I can't guarantee load order. It would be great to be able to specify optional module dependencies and dependents, to tell Unturned to load this module before dependents but after dependencies.
I understand dependants could be replaced by putting dependencies in the other module but it would be better to be able to specify like this instead because it may be owned by someone else or already released.
Example:
Only changes required as far as I can tell would be to add a little to
ModuleComparer.Compare
and add an&& !assembly.IsOptional
toModuleHook.sortModules
plus a thing to check for non-optional dependents.This would go as a great side dish to #4171, just saying...
Beta Was this translation helpful? Give feedback.
All reactions