Where are the ship configuration files?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 310
- Joined: Fri, 3. Oct 08, 20:43
Re: Where are the ship configuration files?
Xmf can not be converted to xml. I already said that. Those are two completely different files that do completely different things. I don't know how I can make this any more clear so i won't comment on this any further.
I can offer you to make a extension that adds a copy of the ship you want to edit if you tell me which ship you want. You then can edit the xml files in that extension
I can offer you to make a extension that adds a copy of the ship you want to edit if you tell me which ship you want. You then can edit the xml files in that extension
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht
-
- Posts: 2298
- Joined: Sat, 26. Feb 05, 01:47
Re: Where are the ship configuration files?
I unpacked the game and for example here:
X4 Foundations\unpacked\assets\units\size_s
I have all xml files like ship_gen_s_fighter_01.xml at the end of the directory, so yea you did something wrong if you dont have this files
X4 Foundations\unpacked\assets\units\size_s
I have all xml files like ship_gen_s_fighter_01.xml at the end of the directory, so yea you did something wrong if you dont have this files
Fixed ships getting spawned away from ship configuration menu at resupply ships from automatically getting deployables.
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Any speculation as to what might be wrong with the unpack? I didn't see any error message. As far as I know, it went perfectly.
Or whats a batch file code to try again?
-
- Posts: 2298
- Joined: Sat, 26. Feb 05, 01:47
Re: Where are the ship configuration files?
Don't know, I know only that it took a long time to unpackapricotslice wrote: ↑Wed, 26. Jun 19, 17:31Any speculation as to what might be wrong with the unpack? I didn't see any error message. As far as I know, it went perfectly.
Or whats a batch file code to try again?
Delete everything and try again, I followed the tutorial from here
Fixed ships getting spawned away from ship configuration menu at resupply ships from automatically getting deployables.
-
- EGOSOFT
- Posts: 2200
- Joined: Mon, 23. Nov 15, 18:02
Re: Where are the ship configuration files?
do you have the CAT tool? XRCatToolGUI.exe, downloadable here:
https://www.egosoft.com/download/x4/bonus_en.php
should be the only downloadable item on that page. this thing?
https://imgur.com/fYe048U
https://www.egosoft.com/download/x4/bonus_en.php
should be the only downloadable item on that page. this thing?
https://imgur.com/fYe048U
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
I thought that might be the answer.j.harshaw wrote: ↑Thu, 27. Jun 19, 20:19 do you have the CAT tool? XRCatToolGUI.exe, downloadable here:
https://www.egosoft.com/download/x4/bonus_en.php
The version I had was dated 2016. The one on the Egosoft download page is dated Feb 2019.
Alas. No change.
-
- EGOSOFT
- Posts: 2200
- Joined: Mon, 23. Nov 15, 18:02
Re: Where are the ship configuration files?
Then, with the GUI, import all of the .cat files in your X4 Foundations directory. There should be eleven files, numbered 01.cat to 11.cat. (you won't need the *_sig.cat files, but won't hurt to get those as well.)
Then extract all.
Sorry if you've already done all this, but it sounds like you might be missing some files and would like to cover all of the bases.
To reiterate, using the Argon Discoverer as an example:
The template file of the Argon Discoverer which defines the hardpoint connections on this ship model is:
assets\units\size_s\ship_arg_s_scout_01.xml
Note that this is not the same folder where the .xmf files are.
The macro file of the Argon Discoverer Vanguard which defines the physics characteristics of this ship is:
assets\units\size_s\macros\ship_arg_s_scout_01_a_macro.xml
Just did this myself at home (about time. last time i updated loose files at home was around release.), and can verify that the ship template and macro files are where they're supposed to be.
If you still don't get all of the files, would suggest that you redownload the game, either by verifying integrity if from Steam, or simply reinstalling if from GOG.
Then extract all.
Sorry if you've already done all this, but it sounds like you might be missing some files and would like to cover all of the bases.
To reiterate, using the Argon Discoverer as an example:
The template file of the Argon Discoverer which defines the hardpoint connections on this ship model is:
assets\units\size_s\ship_arg_s_scout_01.xml
Note that this is not the same folder where the .xmf files are.
The macro file of the Argon Discoverer Vanguard which defines the physics characteristics of this ship is:
assets\units\size_s\macros\ship_arg_s_scout_01_a_macro.xml
Just did this myself at home (about time. last time i updated loose files at home was around release.), and can verify that the ship template and macro files are where they're supposed to be.
If you still don't get all of the files, would suggest that you redownload the game, either by verifying integrity if from Steam, or simply reinstalling if from GOG.
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
That did the trick.j.harshaw wrote: ↑Fri, 28. Jun 19, 09:28 Then, with the GUI, import all of the .cat files in your X4 Foundations directory. There should be eleven files, numbered 01.cat to 11.cat. (you won't need the *_sig.cat files, but won't hurt to get those as well.)
Then extract all.
Sorry if you've already done all this, but it sounds like you might be missing some files and would like to cover all of the bases.
Seems the batch version only does half the job.
The Gui version does the whole job.
Thanks.

-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Anyone know where the cargo bay size is located for corvettes?
Edit: Found it.
Edit: Found it.
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Anyone know why the cargo bay size isn't changing?
I've tried editing the the ship's storage file. No change. Changed the ship file to point to an l storage file instead. No change.
Or is it the storage has changed, but the ship information screen is hardcoded?
Anyway other than the ship information screen to tell how much cargo space there actually is?
Or what am I missing?
I've tried editing the the ship's storage file. No change. Changed the ship file to point to an l storage file instead. No change.
Or is it the storage has changed, but the ship information screen is hardcoded?
Anyway other than the ship information screen to tell how much cargo space there actually is?
Or what am I missing?
-
- Posts: 37
- Joined: Thu, 6. Dec 18, 14:57
Re: Where are the ship configuration files?
apricotslice wrote: ↑Fri, 28. Jun 19, 16:16 Anyone know why the cargo bay size isn't changing?
I've tried editing the the ship's storage file. No change. Changed the ship file to point to an l storage file instead. No change.
Or is it the storage has changed, but the ship information screen is hardcoded?
Anyway other than the ship information screen to tell how much cargo space there actually is?
Or what am I missing?
How are you making the edits? A diff into the storage file to change the cargo number will update in the UI if you've done it right.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<diff>
<replace sel="//cargo">
<cargo max="120000" tags="container" />
</replace>
</diff>
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Yes, using extensions, and trying to do it for a game start. I'm pretty sure I've got the folder structure right. But whatever I do, seems to be ignored.
Now actually well into a game, so can it be done on the fly as a once of MD? If so, can you send it to me?
Now actually well into a game, so can it be done on the fly as a once of MD? If so, can you send it to me?
-
- Posts: 37
- Joined: Thu, 6. Dec 18, 14:57
Re: Where are the ship configuration files?
apricotslice wrote: ↑Sat, 29. Jun 19, 16:11 Yes, using extensions, and trying to do it for a game start. I'm pretty sure I've got the folder structure right. But whatever I do, seems to be ignored.
Now actually well into a game, so can it be done on the fly as a once of MD? If so, can you send it to me?
No, cargo can't be changed by MD, but if you change it in the storage file, it will update when you reload the game, even if you load a save.
Folder structure should look like:
Extensions/MODFOLDER/assets/units/size_s/macros/STORAGEFILE
And also in your mod folder you need to include a contents.xml file to name your mod, etc. The game doesn't recognize the mod without it.
-
- Posts: 37
- Joined: Thu, 6. Dec 18, 14:57
Re: Where are the ship configuration files?
You can also join the discord server to talk with other modders and ask questions there, too: https://discord.gg/WM5sAs
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
The folder path is correct. Except I'm modding an m ship.
There is a content.xml not a contents.xml. Which is right?
The mod does work. I get a custom start and the ship changes.
Just not the cargo bay change.
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Cargo problem sorted in Discord.
Apparently the par m storage files dont like being copied into a mod.
But a diff file worked when I finally got the syntax right.
Main issue for me, I had no idea diff files existed. I saw them, but had no idea what it was.
Anyway, problem solvered.
Thanks to those who helped.
Apparently the par m storage files dont like being copied into a mod.
But a diff file worked when I finally got the syntax right.
Main issue for me, I had no idea diff files existed. I saw them, but had no idea what it was.

Anyway, problem solvered.
Thanks to those who helped.
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Interesting side effect of making the cargo bay larger.
I put 34000 in it, and suddenly my Corvette is behaving like a drunk dog. Slow to speed up, and all over the place when trying to turn. Using travel was an exercise in WTF writ large.
Interesting. Kind of puts you off hauling cargo in your medium fighter.
I put 34000 in it, and suddenly my Corvette is behaving like a drunk dog. Slow to speed up, and all over the place when trying to turn. Using travel was an exercise in WTF writ large.
Interesting. Kind of puts you off hauling cargo in your medium fighter.

-
- Posts: 310
- Joined: Fri, 3. Oct 08, 20:43
Re: Where are the ship configuration files?
thats because your ship gains mass. edit the drag values in the macro file to compensate for that i guess.
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Re: Where are the ship configuration files?
Good point. Thanks.BrummBear02 wrote: ↑Mon, 1. Jul 19, 02:37 thats because your ship gains mass. edit the drag values in the macro file to compensate for that i guess.