How do I do a diff / replace in the language ("t") files?

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

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

Post Reply
user1679
Posts: 789
Joined: Fri, 20. Jul 18, 23:20

How do I do a diff / replace in the language ("t") files?

Post by user1679 » Sun, 2. May 21, 09:01

I changed the "cardinal" paintjob to black and the other default paintjobs to more muted, metallic looks and I wanted to change their names that apear
when you're changing the default theme. When I tried to do a REPLACE in the language file with my mod it didn't work:

Code: Select all

<diff>
    <replace sel="/language=[@id="44"]/page=[@id="20116"]>
        <t id="10051">Metallic Black</t>
    </replace>
</diff>

User avatar
alexalsp
Posts: 1823
Joined: Fri, 18. Jul 14, 05:28
x4

Re: How do I do a diff / replace in the language ("t") files?

Post by alexalsp » Sun, 2. May 21, 10:31

Code: Select all

<diff>
    <replace sel="/language[@id='44']/page[@id='20116']/t[@id='10051']">Metallic Black</replace>
</diff>
or

Code: Select all

<diff>
    <replace sel="/language[@id='44']/page[@id='20116']/t[@id='10051']">
        <t id="10051">Metallic Black</t>
    </replace>
</diff>

user1679
Posts: 789
Joined: Fri, 20. Jul 18, 23:20

Re: How do I do a diff / replace in the language ("t") files?

Post by user1679 » Sun, 29. May 22, 03:24

alexalsp wrote:
Sun, 2. May 21, 10:31

Code: Select all

<diff>
    <replace sel="/language[@id='44']/page[@id='20116']/t[@id='10051']">Metallic Black</replace>
</diff>
or

Code: Select all

<diff>
    <replace sel="/language[@id='44']/page[@id='20116']/t[@id='10051']">
        <t id="10051">Metallic Black</t>
    </replace>
</diff>
Sorry it's a late reply but thanks!

Post Reply

Return to “X4: Foundations - Scripts and Modding”