Modding question : How to generate a diff file ?

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

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

Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

Modding question : How to generate a diff file ?

Post by Bifidus »

Hi everyone, first thing i'm super new to modding and I just like poking around to see what can be changed so if I really misunderstood something please don't hesitate to correct me :)

From what I understand to mod something in the core .xml files of the games I need to generate a patch diff file with the same name as the core file, I looked at a variety of mods and it makes sense for simple values like movement speed and stuff like that.
But I'd like to change what npcs appear on stations, I found in what file the game generates them and in wich proportions and all that but now I'm stuck and don't really know how to proceed...
Is there a tool you guys use that could compare the two files and create the code needed to patch the modified parts ?

Thanks for any help you can provide
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13486
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Modding question : How to generate a diff file ?

Post by euclid »

Hi Bifidus :-)

For a start I recommend this guide on XML patching. Also you should unpack the game files so you see were to alter what ;-) The sticky here explains how to extract them from the catalogues.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Return to “X4: Foundations - Scripts and Modding”