x cattool

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

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

User avatar
Ageansnowfly
Posts: 94
Joined: Thu, 6. May 04, 12:55
x4

x cattool

Post by Ageansnowfly » Thu, 9. May 24, 11:00

Hi, how to keep the folder hierarchy when you import a file in xtools for editing cat files
i edited a xml file and impoerted it back to catalog, but the file dont have folder hierarchy.
it must be libraries/wares.xml but it is wares.xml
so the cat is not working
thanks in advance

edit I solved the problem with the hiarchy but it doesnt work
What i want to do is to add some unbuyable weapons from a mod to a faction so i can purchase and reverse engineer it.
the quote was
<owner faction="terran"/>
<owner faction="player"/>
but maybe the terran faction has a diffewrent name in the gamefiles.
does someone know any solution
CPU Ryzen 5 7600x
Graphics RX 7800XT
RAM DDR5 32 GB
my modlist https://drive.google.com/file/d/1SaV2K8 ... drive_link

Realspace
Posts: 1411
Joined: Wed, 15. Nov 06, 10:21
x4

Re: x cattool

Post by Realspace » Thu, 9. May 24, 14:22

You can't simply re-add the file as it is (you could but it is a very bad procedure, by adding the file and folder's root in a subst_01 dat instead of ext_01).

The way to do such changes is finding the node you want to change, in the vanilla file you have exported/unpacked (you did it, right?), then prepare a mod and replicate the folder's structure and file's name.

The file is then a <diff> </diff> patch. See how mods are made and see tutorials.

Your mod can also be loose files, i e. not packed, it will work sofar your patching method is correct.

If you instead want to mod another mod, you can unpack the entire mod, edit what you need, and remove the cat files so the plain files are read instead.

User avatar
Ageansnowfly
Posts: 94
Joined: Thu, 6. May 04, 12:55
x4

Re: x cattool

Post by Ageansnowfly » Mon, 13. May 24, 01:41

now I can reverse engineer it it says blueprint added but there is no blueprint for it and still not buyable

solved thread can be closed
CPU Ryzen 5 7600x
Graphics RX 7800XT
RAM DDR5 32 GB
my modlist https://drive.google.com/file/d/1SaV2K8 ... drive_link

Return to “X4: Foundations - Scripts and Modding”