Anone know the replace code tags for a text re wright

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

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

balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Anone know the replace code tags for a text re wright

Post by balogt »

I have replaced the names of the teladi with some older roman style names but cant quite get the /add /replace necessary tags to make it happen. the file name is the English file found in the /t folder. the inside code is the teladi names just with new names for some. this is my start, not sure on the <diff> or replace commands exact use or if needed? help :)

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

<diff>
<replace sel="/Teladi Names">

<page id="20303" title="Teladi Names" descr="0" voice="no">
<t id="1">$P $P $P $N(Formatting)</t>
<t id="2">10(Personal name index)</t>
<t id="6">11(Numeral index)</t>
<t id="10">61(Names)</t>
<t id="11">10(Numerals)</t>
<t id="1000">Varinius</t>
morbideth
Posts: 391
Joined: Sun, 9. Nov 08, 03:07
x3tc

Re: Anone know the replace code tags for a text re wright

Post by morbideth »

1. Your diff patch is wrong, see

viewtopic.php?f=181&t=411077
viewtopic.php?t=354310

2. The language files are currently immutable.
SirNukes
Posts: 549
Joined: Sat, 31. Mar 07, 23:44
x4

Re: Anone know the replace code tags for a text re wright

Post by SirNukes »

morbideth wrote: Tue, 1. Jan 19, 21:24 2. The language files are currently immutable.
What do you mean? I've had mine modded since release day.
morbideth
Posts: 391
Joined: Sun, 9. Nov 08, 03:07
x3tc

Re: Anone know the replace code tags for a text re wright

Post by morbideth »

I've not been able to edit the vanilla text files, regardless of how I've tried.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Re: Anone know the replace code tags for a text re wright

Post by balogt »

iu got the teladi names changed by using the /add command. sadly I cannot get the human names to change. not sure why here is a sample of the code I used for teladi.

this works great in game. though im not sure why the same deal with argon names did not work.

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

<diff>
<add sel="/language">

<page id="20303" title="Teladi Names" descr="0" voice="no">
<t id="1">$P $P $P $N(Formatting)</t>
<t id="2">10(Personal name index)</t>
<t id="6">11(Numeral index)</t>
<t id="10">61(Names)</t>
<t id="11">10(Numerals)</t>
<t id="1000">Varinius</t>
<t id="1001">Avitus</t>
<t id="1002">Joranas</t>
<t id="1003">Silvanus</t>
<t id="1004">Deridos</t>
<t id="1005">Dasinos</t>
<t id="1006">Xavias</t>
<t id="1007">Arinius</t>
<t id="1008">Yalos</t>
<t id="1009">Hohindras</t>
<t id="1010">Desudras</t>
<t id="1011">Rurandis</t>
<t id="1012">Caius</t>
<t id="1013">Hintorias</t>
<t id="1014">Yalamandis</t>
<t id="1015">Uguras</t>
<t id="1016">Tethos</t>
<t id="1017">Horasumas</t>
<t id="1018">Cassius</t>
<t id="1019">Maximus</t>
<t id="1020">Ugalirias</t>
<t id="1021">Valas</t>
<t id="1022">Yahinos</t>
<t id="1023">Yagosias</t>
<t id="1024">Dionysus</t>
<t id="1025">Aurelius</t>
<t id="1026">Hanirases</t>
<t id="1027">Flavius</t>
<t id="1028">Magnus</t>
<t id="1029">Teras</t>
<t id="1030">Yusmaeos</t>
<t id="1031">Lucius</t>
<t id="1032">Caspius</t>
<t id="1033">Yohulis</t>
<t id="1034">Yoganis</t>
<t id="1035">Huratis</t>
<t id="1036">Thanatos</t>
<t id="1037">Yalosis</t>
<t id="1038">Argosis</t>
<t id="1039">Remus</t>
<t id="1040">Arakis</t>
<t id="1041">Theosis</t>
<t id="1042">Rudilis</t>
<t id="1043">Wegoras</t>
<t id="1044">Rangosis</t>
<t id="1045">Yosulis</t>
<t id="1046">Yahandis</t>
<t id="1047">Hephaestus</t>
<t id="1048">Marcus</t>
<t id="1049">Septimus</t>
<t id="1050">Titus</t>
<t id="1051">Geiss</t>
<t id="1052">Octavius</t>
<t id="1053">Yahondras</t>
<t id="1054">Yahanis</t>
<t id="1055">Rusiris</t>
<t id="1056">Scorpius</t>
<t id="1057">Yuyamados</t>
<t id="1058">Romulas</t>
<t id="1059">Yahondras</t>
<t id="1060">Tiberius</t>
<t id="1100">I</t>
<t id="1101">II</t>
<t id="1102">III</t>
<t id="1103">IV</t>
<t id="1104">V</t>
<t id="1105">VI</t>
<t id="1106">VII</t>
<t id="1107">VIII</t>
<t id="1108">IX</t>
<t id="1109">X</t>
</page>

</add>
</diff>
Antaran
Posts: 166
Joined: Wed, 6. Nov 02, 20:31
x3tc

Re: Anone know the replace code tags for a text re wright

Post by Antaran »

balogt wrote: Mon, 31. Dec 18, 22:29 I have replaced the names of the teladi with some older roman style names but cant quite get the /add /replace necessary tags to make it happen. the file name is the English file found in the /t folder. the inside code is the teladi names just with new names for some. this is my start, not sure on the <diff> or replace commands exact use or if needed? help :)

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

<diff>
<replace sel="/Teladi Names">

<page id="20303" title="Teladi Names" descr="0" voice="no">
<t id="1">$P $P $P $N(Formatting)</t>
<t id="2">10(Personal name index)</t>
<t id="6">11(Numeral index)</t>
<t id="10">61(Names)</t>
<t id="11">10(Numerals)</t>
<t id="1000">Varinius</t>
I would assume your replace command would be something like this.

If you want to replace all the "Teladi Names"

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <replace sel="/language/page[@id='20303']">
    <page id="20303" title="Teladi Names" descr="0" voice="no">
	 <t id="1">$P $P $P $N(Formatting)</t>
             ........
    </page>
  </replace>
</diff>
If you want to replace an individual name

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <replace sel="/language/page[@id='20303']/t[@id='1']">
	<t id="1">$P $P $P $N(Formatting)</t>
  </replace>
</diff>
If you wan´t to add names to the Teladi names then

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <add sel="/language/page[@id='20303']">
	<!-- Use an ID that is not in use already for the current page being selected, 20303 --> 
	<t id="20000">CustomName</t>
  </add>
</diff>
Is this the problem you were having?

Hope it helps.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Re: Anone know the replace code tags for a text re wright

Post by balogt »

secret was to make 2 separate mod files for argon and teladi. works fine independatly.

Return to “X4: Foundations - Scripts and Modding”