[Tool] X4 Editor

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

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

ravayen
Posts: 56
Joined: Mon, 25. Jan 16, 02:02
x4

Re: [Tool] X4 Editor

Post by ravayen » Fri, 7. May 21, 00:19

Would you consider adding the jobs xml to this at all?
'Coming like a train baby'
'Choo choo'

StopBanningMe7_III
Posts: 47
Joined: Wed, 24. Feb 16, 05:23
x4

Re: [Tool] X4 Editor

Post by StopBanningMe7_III » Fri, 18. Jun 21, 09:13

So... It's been 18 months since I last asked. I figure it's not impolite to ask again. Is the source code for this mod available?

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

Re: [Tool] X4 Editor

Post by Max Bain » Tue, 22. Jun 21, 11:14

StopBanningMe7_III wrote:
Fri, 18. Jun 21, 09:13
So... It's been 18 months since I last asked. I figure it's not impolite to ask again. Is the source code for this mod available?
Sorry, I missed your response :(. I will PM you a link, but I can not give you support on this and therefore I dont want to post the link public.
Be warned, some code is very bad, especially because I just started to learn xml reading and writing.

If you made some cool improvements and you want them to be in the official version, you can send them to me, but no guarantee or time frame when I will include them.
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

illinaru
Posts: 2
Joined: Mon, 15. May 17, 15:08
x3ap

Re: [Tool] X4 Editor

Post by illinaru » Mon, 6. Dec 21, 18:00

Hi, when i export, all my modification have decimals and i can't re-import it because of it.

WintermuteX
Posts: 16
Joined: Tue, 19. Apr 05, 10:10
x4

Re: [Tool] X4 Editor

Post by WintermuteX » Sun, 24. Apr 22, 13:56

There seems to be a problem with the new DLC: after I extracted the maingame and all 3 DLCs (in the right order, sorted by release date) the editor crashes when I click on "Read Vanilla", when I click on "Read All" I at least get an error message:

"Failed to read <path to extracted files>. Reason: Error reading wares.xml: Die Eingabezeichenfolge hat das falsche Format. weapon_gen_s_torpedo_01_mk2"

weapon_gen_s_torpedo_01_mk2 looks fine to me in wares.xml, but as it is the last entry in the file I guess it simply stops there but is not the reason for the error in the first place.

Also I have the same problem as someone else on the thread: I create a mod and it doesn't change anything in the game.

EDIT: I modified a Terran ship and I didn't get the path of my mod right. For anyone having such issues -> extensions\<your mod folder>\extensions\ego_dlc_terran\assets
So you need an "extensions" folder inside your mod folder and in it the DLC path your modified files are sourced from.
Egosoft - known for self righteous and arrogant forum moderation on all platforms. :)

User avatar
alexalsp
Posts: 1820
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: 1458
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”