[Tool] X4 Editor

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

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

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

Re: [Tool] X4 Editor

Post by alexalsp » Fri, 29. Apr 22, 13:16

If possible, add languages to generate the full content.xml

Code: Select all

  <text language="7" name="mod" description="mod" /> 
  <text language="33" name="mod" description="mod"/>
  <text language="34" name="mod" description="mod"/>
  <text language="39" name="mod" description="mod"/>
  <text language="44" name="mod" description="mod"/>
  <text language="45" name="mod" description="mod"/>
  <text language="49" name="mod" description="mod"/>
  <text language="81" name="mod" description="mod"/>
  <text language="82" name="mod" description="mod"/>
  <text language="86" name="mod" description="mod"/>
  <text language="88" name="mod" description="mod"/>

User avatar
Omni-Orb
Posts: 324
Joined: Tue, 17. Nov 20, 13:42
x4

Re: [Tool] X4 Editor

Post by Omni-Orb » Wed, 31. Aug 22, 06:57

Hello. Im looking for a way to have extreme speed so that i can explore around planets and stars, and i was wondering how/if this editor can help, i was looking at the numbers, however i dont know what to change, it wasnt obvious to me what number represents engine speed.
Credence follow stars.

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Re: [Tool] X4 Editor

Post by apricotslice » Wed, 31. Aug 22, 08:18

PhotonPulse wrote:
Wed, 31. Aug 22, 06:57
Hello. Im looking for a way to have extreme speed so that i can explore around planets and stars, and i was wondering how/if this editor can help, i was looking at the numbers, however i dont know what to change, it wasnt obvious to me what number represents engine speed.
There isn't one number.

Speed is a function of mass, and then all the constraints on that mass.

The thing to do is look at the variables for an m5, and compare them with an M2.

You'll find all the numbers for the M2 are significantly bigger.

But if you were put the numbers for an M5 in place of the numbers for the M2, the M2 is suddenly as fast as the M5. Or even faster.

My preferred destroyer has a 2500 main speed. And it's just by plugging in M5 variables, and lowing the mass to M5 mass.

It makes no sense to the game itself, but I called them "custom modifications".

The game itself will use whatever you change, so make sure your super fast ship isn't what you'd normally be fighting.

The other thing is though, the game can't use speed properly on a capital ship. They move so fast they can't land a shot when you're in system. OS though they can be lethal.

You can check what I did in my mod if you're not sure what to change. Or grab the diff file out of mine for the M2, and use that as a guide for doing yours.

I'm like you, in so far as I don't like faffing about when I have somewhere to go. I've been playing since X2, and speed is the first thing I mod in any new game.

User avatar
Omni-Orb
Posts: 324
Joined: Tue, 17. Nov 20, 13:42
x4

Re: [Tool] X4 Editor

Post by Omni-Orb » Wed, 31. Aug 22, 13:21

apricotslice wrote:
Wed, 31. Aug 22, 08:18
PhotonPulse wrote:
Wed, 31. Aug 22, 06:57
Hello. Im looking for a way to have extreme speed so that i can explore around planets and stars, and i was wondering how/if this editor can help, i was looking at the numbers, however i dont know what to change, it wasnt obvious to me what number represents engine speed.
There isn't one number.

Speed is a function of mass, and then all the constraints on that mass.

The thing to do is look at the variables for an m5, and compare them with an M2.

You'll find all the numbers for the M2 are significantly bigger.

But if you were put the numbers for an M5 in place of the numbers for the M2, the M2 is suddenly as fast as the M5. Or even faster.

My preferred destroyer has a 2500 main speed. And it's just by plugging in M5 variables, and lowing the mass to M5 mass.

It makes no sense to the game itself, but I called them "custom modifications".

The game itself will use whatever you change, so make sure your super fast ship isn't what you'd normally be fighting.

The other thing is though, the game can't use speed properly on a capital ship. They move so fast they can't land a shot when you're in system. OS though they can be lethal.

You can check what I did in my mod if you're not sure what to change. Or grab the diff file out of mine for the M2, and use that as a guide for doing yours.

I'm like you, in so far as I don't like faffing about when I have somewhere to go. I've been playing since X2, and speed is the first thing I mod in any new game.
I figured it out and finnaly got to see the scale of the sectors, illusion broken, however with over 2000 hours in game i felt like i had to see what was beyond where the ships could go at normal speeds.
Credence follow stars.

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Tool] X4 Editor

Post by O'Shavah » Thu, 29. Dec 22, 21:00

how do i get XR catalog tool to extract the files if i don't own XRebirth? is there a work around?
Edit: it's available through steam even if you don't have X Rebirth

new question:
by data do you mean just all .cat files or eeevvverrryyyything? even the XX_sig.cat files? what about XML files?

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Re: [Tool] X4 Editor

Post by apricotslice » Fri, 30. Dec 22, 02:56

O'Shavah wrote:
Thu, 29. Dec 22, 21:00
how do i get XR catalog tool to extract the files if i don't own XRebirth? is there a work around?
Edit: it's available through steam even if you don't have X Rebirth

new question:
by data do you mean just all .cat files or eeevvverrryyyything? even the XX_sig.cat files? what about XML files?
You don't need Rebirth.

The tool was made for Rebirth, which is why it;s called that, but X4 uses the same file designs.

Just download the tool, and use on X4 cats.

Create a folder called unpack, and the unpack all the cat files into it. That gives you every file in the game.

Ignore the sig files. You edit the xml files.

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Tool] X4 Editor

Post by O'Shavah » Fri, 30. Dec 22, 06:20

thanks for the fast reply!!
new question: if all i want to do is increase the speed and maneuverability of some ships added from a mod, do i even need to load in the vanilla files? i've extracted all the vanilla files to one folder and each extension to a separate folders (e.g. split vendetta, tides of avarice, satellite2_plus,)

can i just load the extracted files from that mod, edit them, compile them back into a .cat file and replace it in my X4 game extensions folder in steamapps?

also, whats the differnece between yaw vs inyaw?
Last edited by O'Shavah on Fri, 30. Dec 22, 06:31, edited 1 time in total.

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Re: [Tool] X4 Editor

Post by apricotslice » Fri, 30. Dec 22, 06:31

O'Shavah wrote:
Fri, 30. Dec 22, 06:20
thanks for the fast reply!!
new question: if all i want to do is increase the speed and maneuverability of some ships added from a mod, do i even need to load in the vanilla files? i've extracted all the vanilla files to one folder and each extension to a separate folders (e.g. split vendetta, tides of avarice, satellite2_plus,)
No.

If the mod is in cat form, extract the cats, and then remove the cats from the folder. The game will use the actual files instead.

Then just edit the actual files how you want. I do that quite a lot, when mods do what I want, but not exactly how I want.

The only time you need the game file is if you want to add something new into the game based on something existing (like a new ship or gun), or you want to change the nature of something for all of that thing in the game. But you do general changes with diff files, not by copying the original.

The original game files unpacked are mainly for reference material to find out what needs changing where.

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Tool] X4 Editor

Post by O'Shavah » Fri, 30. Dec 22, 07:07

thanks you are so awesome!!!! hugs

User avatar
Whismerhill
Posts: 579
Joined: Wed, 20. Oct 04, 21:16
x3ap

Re: [Tool] X4 Editor

Post by Whismerhill » Sun, 15. Jan 23, 18:23

is it just me or this tool doesn't show/read ship shield, turrets & weapons values anymore ?
https://prnt.sc/WOJKNDlvncJY

User avatar
Baconnaise
Posts: 619
Joined: Sat, 23. Nov 13, 15:50
x4

Re: [Tool] X4 Editor

Post by Baconnaise » Sun, 16. Apr 23, 15:43

Downloading this tool now while typing. Does anyone know if we can edit station modules among other things besides ship stats? I know some asked about jobs which would be dandy but that's a big ask afaik.

Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: [Tool] X4 Editor

Post by Max Bain » Sun, 16. Apr 23, 16:13

Baconnaise wrote:
Sun, 16. Apr 23, 15:43
Downloading this tool now while typing. Does anyone know if we can edit station modules among other things besides ship stats? I know some asked about jobs which would be dandy but that's a big ask afaik.
WIth this tool, no you can only modify ships and modules. And I havent tested it with 6.0, even if I think it should still work.
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

User avatar
Baconnaise
Posts: 619
Joined: Sat, 23. Nov 13, 15:50
x4

Re: [Tool] X4 Editor

Post by Baconnaise » Sun, 16. Apr 23, 17:28

Max Bain wrote:
Sun, 16. Apr 23, 16:13
Baconnaise wrote:
Sun, 16. Apr 23, 15:43
Downloading this tool now while typing. Does anyone know if we can edit station modules among other things besides ship stats? I know some asked about jobs which would be dandy but that's a big ask afaik.
WIth this tool, no you can only modify ships and modules. And I havent tested it with 6.0, even if I think it should still work.
I have the last two major revisions/dlc unpacked already that I've been using so not a huge deal. Amazing tool regardless of my ambitions.

Post Reply

Return to “X4: Foundations - Scripts and Modding”