2020-08-05, 13:17
I am in the process of porting AML to Python 3. I am having a lot of trouble not with the Python language changes, but rather with the settings. As required for Matrix, I am using the new settings format in Matrix. I'm following the instructions in the Kodi wiki. AML has a decent amount of settings, however, I have created a small
However, I am not able to open the settings. If I go to AML addon and open the context menu the addon settings don't show. I turned debug ON and look at kodi.log, this is the only thing I can find:
No other warnings or errors related with this in the log.
1) If
2) A bit off-topic but relevant, if addons are allowed only one <section id="my.addon.id">, both the whole section tags and the id with the addon name are redundant. Kodi can create this when loading
settings.xml
for testing:xml:
<?xml version="1.0" ?>
<settings version="1">
<section id="plugin.program.AML.dev">
<!--
Always use type="xxx" id="xxx" label="xxx" help="xxx" in <setting>
-->
<category id="main-operation" label="Main operation" help="Main operation help">
<setting type="enum" id="op_mode_raw" label="Mode" help="Test help">
<level>0</level>
<default>0</default>
<constraints>
<options>
<option label="Vanilla MAME">0</option>
<option label="Retroarch MAME 2003 Plus">1</option>
</options>
</constraints>
<control type="spinner" format="string" />
</setting>
</category>
</section>
</settings>
However, I am not able to open the settings. If I go to AML addon and open the context menu the addon settings don't show. I turned debug ON and look at kodi.log, this is the only thing I can find:
Code:
2020-08-05 20:05:12.243 T:41524 DEBUG <CAddonSettings[plugin.program.AML.dev]>: loading setting definitions
2020-08-05 20:05:12.245 T:41524 INFO <general>: Loading skin file: DialogContextMenu.xml, load type: KEEP_IN_MEMORY
2020-08-05 20:05:12.246 T:41524 DEBUG <general>: ------ Window Init (DialogContextMenu.xml) ------
No other warnings or errors related with this in the log.
1) If
settings.xml
has a syntax or logical error Kodi will issue a warning or error in the log, right?2) A bit off-topic but relevant, if addons are allowed only one <section id="my.addon.id">, both the whole section tags and the id with the addon name are redundant. Kodi can create this when loading
settings.xml
automatically. Why not remove them completely for addons to reduce the complexity and indentation level of settings.xml
?