Diff compiler tool?

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

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

h2o.Ava
Posts: 349
Joined: Sun, 12. Oct 08, 04:04
x4

Diff compiler tool?

Post by h2o.Ava »

is there a tool that compiles all the diffs so that i can see the completed files that are loaded into the game?
User avatar
Duncaroos
Posts: 719
Joined: Wed, 4. Jan 12, 22:23
x4

Re: Diff compiler tool?

Post by Duncaroos »

Have you tried viewtopic.php?t=468623 ?

I'm having issues with it, but I think I just need to be fast with a print screen to catch an error message I'm getting.
Playing X4+All_DLC on:
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080

Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
h2o.Ava
Posts: 349
Joined: Sun, 12. Oct 08, 04:04
x4

Re: Diff compiler tool?

Post by h2o.Ava »

oh ! didn't notice its patch ability.

yeah, that's what i'm looking for !!

thx. i'll try it out.

(ideally, i want it to process the entire extensions folder)
User avatar
Duncaroos
Posts: 719
Joined: Wed, 4. Jan 12, 22:23
x4

Re: Diff compiler tool?

Post by Duncaroos »

I think it's possible, you just have to do it carefully one by one. The next iteration your patched xml would be your "main" XML to apply the diff.
Playing X4+All_DLC on:
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080

Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
User avatar
ChemODun
Posts: 433
Joined: Mon, 12. Feb 07, 21:58
x4

Re: Diff compiler tool?

Post by ChemODun »

h2o.Ava wrote: Thu, 6. Feb 25, 06:17 oh ! didn't notice its patch ability.

yeah, that's what i'm looking for !!

thx. i'll try it out.

(ideally, i want it to process the entire extensions folder)
It can
use a path tool

There is a new version on github.
Fixed some issues and will not be identified as virus ;-)

The idea is simple :

Code: Select all

XMLPatch 0.2.14
Developed by Chem O`Dun

  -o, --original_xml    Required. Path to the original XML file or directory.

  -d, --diff_xml        Required. Path to the diff XML file or directory.

  -u, --output_xml      Required. Path for the output XML file or directory.

  -x, --xsd             Path to the diff.xsd schema file.

  -l, --log-to-file     (Default: false) Log to a file.

  --help                Display this help screen.

  --version             Display version information.
In your case:

Code: Select all

XMLPatch -o extracted_game_files -d mod_files -u empty_folder_to_be_filled
Multiply entropy by absolute zero

Freedom in space
h2o.Ava
Posts: 349
Joined: Sun, 12. Oct 08, 04:04
x4

Re: Diff compiler tool?

Post by h2o.Ava »

oh, nice nice.

hmm, so to make it a one and done, we'd want to get the enabled extensions file and all of the content.xmls.
create a build order based on the enabled extensions' content.xml dependencies.
then have it go through the build order, diffing on top of the prior extension.

Return to “X4: Foundations - Scripts and Modding”