• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

windows.xml not parsed for XPATH?

|Hades|

Refugee
Hi,

I'm trying to alter line 2024 in windows.xml and change the cols from 8 to 9.
XML:
<grid name="categories" pos="18,-20" rows="1" cols="8" width="663" height="34" cell_width="43" cell_height="43" repeat_content="true" controller="CategoryList">

Created windows.xml in my mod folder, but it the game doesn't seem to be reading the file at all. I've done deliberate syntax errors to try to trigger even an error and nothing. So I think the file isn't even being read.

XML:
<configs>
<set xpath="windows/window [@name='windowSkillList']/panel [@name='content']/rect [@name='categoryHeader']/panel [@pos='3,-3']/grid [@name='categories']@cols">9</set>
</configs>

Suggestions or confirmation of bug appreciated.
Post automatically merged:

Sorry line 2014 not 2024
 
Hi,

I'm trying to alter line 2024 in windows.xml and change the cols from 8 to 9.
XML:
<grid name="categories" pos="18,-20" rows="1" cols="8" width="663" height="34" cell_width="43" cell_height="43" repeat_content="true" controller="CategoryList">

Created windows.xml in my mod folder, but it the game doesn't seem to be reading the file at all. I've done deliberate syntax errors to try to trigger even an error and nothing. So I think the file isn't even being read.

XML:
<configs>
<set xpath="windows/window [@name='windowSkillList']/panel [@name='content']/rect [@name='categoryHeader']/panel [@pos='3,-3']/grid [@name='categories']@cols">9</set>
</configs>

Suggestions or confirmation of bug appreciated.
Post automatically merged:

Sorry line 2014 not 2024

Hi Hades

You're missing a / in the code, it should look like this.

<set xpath="/windows/window etc.

Regards
Gouki
 
Hi Gouki,

Thanks for the spot. Actually I made 2 other mistakes as well:

1. The windows.xml file should have been in a subfolder XUi/windows.xml .. that's why it was being missed entirel.
2. I was also missing a / before @cols.... it should have been /@cols
 
Back
Top