ColonySurvival icon indicating copy to clipboard operation
ColonySurvival copied to clipboard

[API] Mods Dependencies

Open Dorky106 opened this issue 7 years ago • 1 comments

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": "" } ]

Dorky106 avatar Feb 25 '18 02:02 Dorky106

Will have to check this, not sure what the current state of it is

pipliz avatar Dec 20 '21 17:12 pipliz