navigate_before Prev Next navigate_next
An extension adds new content to an already existing module. It is not yet supported, but will be soon! So you can get your files ready!
When you create an extension you first need to create a folder within the ext folder. The name of the folder should be the same as the id of your extension. Let's assume we want to create a Princess extension for SailorXv3. Then we would create a folder in the following directory:
EMCCV_Prototype > modules > SailorXv3 > ext > Princess
An extension looks exactly like a module, except the root XML element in the config file is extension instead of module. The extension has the additional attribute parent - the id of the module this extension is intended for must be given here. Example:
<extension id="Princess" parent="SailorXv3" title="SailorXv3 Princess Extension">...</extension>
Note: An extension could theoretically be made for multiple modules. In that case you would list the id of all compatible modules in the parent attribute, separated by "or". (Only one module can be loaded within the EMCCV at this time so "and" would not make sense.)
When the extension is loaded, the EMCCV will ensure that the parent module is already loaded.
If it is not, then the EMCCV will attempt to load it first.
If it is not in your modules directory, the EMCCV will display an error message.
While being loaded the extension will not change anything that's already loaded. It only adds to the content that's already there.
If you want to change content, you need to create a modification!