- What is RegisterModule? NewModule already does that.
- In the .tocs of the modules, you are missing a field.
Code:
## RequiredDeps: NameOfCoreAddOn
And if the second module requires the first module, its .toc should read:
Code:
## RequiredDeps: NameOfCoreAddOn, NameOfFirstModule
Next, in your core and modules, if they are their own addons as such with their own .toc files, then don't try to load them via the core addon's .toc.