[Solved] Update on "Simple" XML Issue

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

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

RPINerd
Posts: 81
Joined: Fri, 8. Mar 19, 20:21
x4

[Solved] Update on "Simple" XML Issue

Post by RPINerd »

Okay so I'm stumped here, clearly I don't understand how the game loads mod files.. here is the exact code - in it's entirety - that I've got in my testing file at extentions/testmod/libraries/wares.xml:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>

<diff>

<!-- Terran Unlocked: Purchase the Syn and Asgard once you're idolized -->

    <replace sel="/wares/ware[@id='ship_atf_l_destroyer_01_a']/@tags">ship</replace>
    <replace sel="/wares/ware[@id='ship_atf_xl_battleship_01_a']/@tags">ship</replace>

</diff>
It does nothing...

BUT, when packaged into a 'ext_01.cat' and 'ext_01.dat' file, it works exactly as intended... what on earth is the difference? I've never had any of my fiddlings not work simply because they aren't packaged


Also, thank you to those that replied on my first post, all of your suggestions gave me more practice and insight on debugging, but clearly this problem is not about the syntax I'm using :roll:
Last edited by RPINerd on Fri, 9. Apr 21, 15:47, edited 1 time in total.
Melraki
Posts: 48
Joined: Tue, 29. Dec 09, 12:08
x4

Re: [Help] Update on "Simple" XML Issue

Post by Melraki »

You have to used this path : extentions/testmod/extensions\ego_dlc_terran\libraries\wares.xml
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [Help] Update on "Simple" XML Issue

Post by BlackRain »

Melraki wrote: Thu, 8. Apr 21, 16:28 You have to used this path : extentions/testmod/extensions\ego_dlc_terran\libraries\wares.xml

Most likely you are not making your mod dependent on COH so it is ignoring your changes.

Add this to the content.xml

<dependency name="Cradle of Humanity" id="ego_dlc_terran" optional="false"/>
RPINerd
Posts: 81
Joined: Fri, 8. Mar 19, 20:21
x4

Re: [Help] Update on "Simple" XML Issue

Post by RPINerd »

BlackRain wrote: Thu, 8. Apr 21, 18:35 [
Most likely you are not making your mod dependent on COH so it is ignoring your changes.

Add this to the content.xml

<dependency name="Cradle of Humanity" id="ego_dlc_terran" optional="false"/>

Oh..oh no...oh god.. this whole time.. :o

This was it the whole time, my mod has literally not been doing anything to the expansions because it wasn't listed as a dependency..


Thank you so much BlackRain!
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [Help] Update on "Simple" XML Issue

Post by BlackRain »

RPINerd wrote: Fri, 9. Apr 21, 15:46
BlackRain wrote: Thu, 8. Apr 21, 18:35 [
Most likely you are not making your mod dependent on COH so it is ignoring your changes.

Add this to the content.xml

<dependency name="Cradle of Humanity" id="ego_dlc_terran" optional="false"/>

Oh..oh no...oh god.. this whole time.. :o

This was it the whole time, my mod has literally not been doing anything to the expansions because it wasn't listed as a dependency..


Thank you so much BlackRain!
No problem, I made the same mistake myself.

Return to “X4: Foundations - Scripts and Modding”