Weltenbrand
September 26th, 2020, 11:23
I'am writing an extension for a ruleset I'am developping.
I want to join (or replace) the script for a window control.
Code in the ruleset:
<root>
<windowclass name = "window_talente">
[...]
<sheetdata>
[...]
<windowlist name = "liste">
<anchored>
[...]
</anchored>
<class>liste_normaletalente</class>
<sortby>
<control>name</control>
</sortby>
<script file = "campaign/character/talente/scripts/script1.lua"/>
<allowdelete/>
</windowlist>
</sheetdata>
</windowclass>
</root>
I want to join or replace the script of the window list in the extension:
<root>
<windowclass name = "window_talente" merge = "join">
<sheetdata>
<windowlist name = "liste">
<script file = "campaign/character/talente/scripts/script2.lua" merge="join"/>
</windowlist>
</sheetdata>
</windowclass>
</root>
This seems to do nothing. "window_talente" behaves like so ruleset verion.
For a test I tried to delete the window_talente with:
<windowclass name = "window_talente" merge = "delete"/>
Which should produce a class not found error in my understanding, but the original window is loaded.
This makes me guess that the extension is not loaded correctly even if no error/warning is shown.
extension.xml:
<root version="3.2">
<properties>
<name>Addon: Talentlisten</name>
<description>Talentlisten für das DSA4 Rulseset von der DZ</description>
<ruleset>
<name>DasSchwarzeAuge4DZ</name>
</ruleset>
</properties>
<version>0.1</version>
<base>
<incluefile source="campaign/character/talente/window_talente.xml"/>
</base>
</root>
Any idea what I'am doing wrong?
I want to join (or replace) the script for a window control.
Code in the ruleset:
<root>
<windowclass name = "window_talente">
[...]
<sheetdata>
[...]
<windowlist name = "liste">
<anchored>
[...]
</anchored>
<class>liste_normaletalente</class>
<sortby>
<control>name</control>
</sortby>
<script file = "campaign/character/talente/scripts/script1.lua"/>
<allowdelete/>
</windowlist>
</sheetdata>
</windowclass>
</root>
I want to join or replace the script of the window list in the extension:
<root>
<windowclass name = "window_talente" merge = "join">
<sheetdata>
<windowlist name = "liste">
<script file = "campaign/character/talente/scripts/script2.lua" merge="join"/>
</windowlist>
</sheetdata>
</windowclass>
</root>
This seems to do nothing. "window_talente" behaves like so ruleset verion.
For a test I tried to delete the window_talente with:
<windowclass name = "window_talente" merge = "delete"/>
Which should produce a class not found error in my understanding, but the original window is loaded.
This makes me guess that the extension is not loaded correctly even if no error/warning is shown.
extension.xml:
<root version="3.2">
<properties>
<name>Addon: Talentlisten</name>
<description>Talentlisten für das DSA4 Rulseset von der DZ</description>
<ruleset>
<name>DasSchwarzeAuge4DZ</name>
</ruleset>
</properties>
<version>0.1</version>
<base>
<incluefile source="campaign/character/talente/window_talente.xml"/>
</base>
</root>
Any idea what I'am doing wrong?