ColonySurvival
ColonySurvival copied to clipboard
[API] Mods Dependencies
If a mod depends on another mod but the require mod is not enabled the game should error out. For servers, the console should say what dependencies are missing. This could be done after "OnAssemblyLoaded" for all the mods but before afterstartup, if any dependencies are missing. Just give an error saying something like [Mod] depends on [OtherMod] of version [RequiredVersionofOtherModMustBeToWork]
As I'd rather get an error and the server not it start over being in the middle of playing and get errors and not know why.
The dependencies could be just added to modinfo,json files as an optional thing. With it being like
"dependencies": [ { "name": "", "minversion": "" } ]
Will have to check this, not sure what the current state of it is