Renaming System by script

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

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

Post Reply
XoSPECTRE

Renaming System by script

Post by XoSPECTRE » Thu, 3. Nov 22, 22:24

Is there any way to rename original x4 system by some mod or script , i mean when you start new game argon prime will called MYSYSTEM , for example ?

Dr Reed
Posts: 76
Joined: Fri, 30. Nov 18, 00:05
x4

Re: Renaming System by script

Post by Dr Reed » Tue, 8. Nov 22, 12:48

If you have a look at the gs_split2.xml in the MD folder of the split DLC you can see how Egosoft changes the name of "Fires of Defeat" to "Fires of Victory" in the MD script for the Spear of the Patriarch game start.

Code: Select all

        <find_sector name="$FiresOfSector" macro="macro.cluster_421_sector001_macro"/>
        <set_object_name object="$FiresOfSector.cluster" name="'{20005,5041}'"/>
        <set_object_name object="$FiresOfSector" name="'{20005,5041}'"/>
The sector definition is set in the mapdefaults.xml but it looks like you can then change it later with an MD call.

XoSPECTRE

Re: Renaming System by script

Post by XoSPECTRE » Tue, 8. Nov 22, 22:11

Thank you sound like it could work will try it

Post Reply

Return to “X4: Foundations - Scripts and Modding”