Possible mistake in Split DLC charactergroups.xml file?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Post Reply
Lord-Herek
Posts: 14
Joined: Fri, 23. Jul 21, 20:20

Possible mistake in Split DLC charactergroups.xml file?

Post by Lord-Herek » Tue, 14. Sep 21, 11:16

In charactergroups.xml from Split DLC there's this code:

Code: Select all

<diff>
  <add sel="/characters">
    <!--<character name="split.trader">
      <select macro="character_split_male_generic_02_macro" />
    </character>
    <character name="split.pilot">
      <select macro="character_split_male_generic_02_macro" />
    </character>
    <character name="split.manager">
      <select macro="character_split_male_generic_02_macro" />
    </character>-->
    <character name="split.factionrepresentative">
      <select character="split.factionrepresentative.male" />
      <select character="split.factionrepresentative.female" />
    </character>
    <character name="split.factionrepresentative.male">
      <select character="split.manager.male"/>
    </character>
    <character name="split.factionrepresentative.female">
      <select character="split.manager.female"/>
    </character>
  </add>
  <remove sel="/characters/character[@name='split.generic.male']/select[@macro='character_split_female_generic_01_macro']"/>
  <add sel="/characters/character[@name='split.generic.male']">
    <select macro="character_split_male_generic_02_macro" />
	  <select macro="character_split_male_generic_03_macro" />
    <select macro="character_split_male_generic_04_macro" />
    <select macro="character_split_male_generic_05_macro" />
    <select macro="character_split_male_generic_06_macro" />
    <select macro="character_split_male_generic_07_macro" />
  </add>
  <replace sel="/characters/character[@name='split.generic.female']/select/@macro">character_split_female_generic_02_macro</replace>
  <add sel="/characters/character[@name='split.generic.female']">
    <select macro="character_split_female_generic_03_macro" />
    <select macro="character_split_female_generic_04_macro" />
    <select macro="character_split_female_generic_05_macro" />
  </add>
</diff>
Look at the part that adds split.factionrepresentative:

Code: Select all

<character name="split.factionrepresentative">
      <select character="split.factionrepresentative.male" />
      <select character="split.factionrepresentative.female" />
</character>
<character name="split.factionrepresentative.male">
      <select character="split.manager.male"/>
</character>
 <character name="split.factionrepresentative.female">
      <select character="split.manager.female"/>
</character>
The thing is, this part is already in charactergroups.xml file from the base game, so there's no need to add this code again in Split DLC charactergroups.xml file. When all these files get merged, wouldn't that mean there will be two nodes that add split.factionrepresentative?
Because I have a mod in which I refer to node split.factionrepresentative and it shows me this error:

Code: Select all

[=ERROR=] 0.00 Multiple matching nodes for path '/characters/character[@name='split.factionrepresentative']' in patch file 'extensions\better_demographics\libraries\charactergroups'

Xenon_Slayer
EGOSOFT
EGOSOFT
Posts: 13087
Joined: Sat, 9. Nov 02, 11:45
x4

Re: Possible mistake in Split DLC charactergroups.xml file?

Post by Xenon_Slayer » Thu, 16. Sep 21, 16:20

Thanks for spotting that. It'll be fixed in an upcoming build.
Come watch me on Twitch where I occasionally play several of the X games

Lord-Herek
Posts: 14
Joined: Fri, 23. Jul 21, 20:20

Re: Possible mistake in Split DLC charactergroups.xml file?

Post by Lord-Herek » Thu, 16. Sep 21, 16:28

Xenon_Slayer wrote:
Thu, 16. Sep 21, 16:20
Thanks for spotting that. It'll be fixed in an upcoming build.
thank you! :)

Post Reply

Return to “X4: Foundations - Scripts and Modding”