Disclaimer: I am not an expert in this area by any means. I am really only sharing what I'm learning, that way others can create their own maps quicker for entertainment, or for modding purposes. I am also using Windows 10, so steps or programs may vary on other Operating Systems. Also, if I'm wrong about something, please correct me, and I will fix it.
The Right Things
First, before we can begin we need to have the right things for the job. What we will need is:
- The Game, obviously. You can acquire that from Steam, (https://store.steampowered.com/app/3921 ... undations/) GOG,(https://www.gog.com/en/game/x4_foundations) and even the Egosoft website! (https://www.egosoft.com/shop/default.asp?cat=6)
- A Good Text Editor I'd recommend Notepad++, which can be downloaded at their website. (https://notepad-plus-plus.org/downloads/)
- A 3D Editor, I'll be using Blender, as it's free. You can download it on their website. (https://www.blender.org/download/)
- The X Catalog Tool, which is included in the X Tools provided by Egosoft. You can find them in the Tools section of your Steam Library, or they can be downloaded here. (https://www.egosoft.com/download/x_rebirth/bonus_en.php)
- The XRConverters, which is made by arc_ and will convert .xmls into .daes for Blender. The old link is dead, but fortunately you can still download it here, thanks to an upload to Google Drive by BrummBear02. (https://drive.google.com/file/d/0B5I84p ... _hAdPaa-DQ)
Now that we have what we need, we can get started. But first, we need to lay the foundation.
Navigate to the 'extensions' directory where X4 is installed. If you have it installed on Steam, it'll be somewhere around here: (...\Steam\steamapps\common\X4 Foundations\extensions)
Right-Click, and create a folder, you can give it whatever name you like, just make sure it's not too crazy, as it'll be a pain to type later.
Next, open the folder you just made, right-click and create a new .txt file. (Text Document) Name it 'content'. It's case-sensitive, so it must be typed that way, or it won't work.
Now, we're going to change the file extension from '.txt' to '.xml'. Turn 'File name extensions' on in the 'View' tab of your file browser, if you haven't already. Click the 'View' tab at the top of your file browser, and navigate your cursor to the 'File name extensions' option, and click the box. You should now be able to see each file's extension. Right-Click 'content.txt', and choose rename, hit Right Arrow, until the cursor is at the end, and hit backspace until only the '.' remains, then type in 'xml'. It should be '.xml', hit enter, a warning popup will appear, but don't worry, it's empty so nothing will break. Hit 'Yes' and then celebrate, (crucial step ) because you've created the first (technically second) part of your mod.
(Note: For the purposes of this guide, when I refer to 'Notepad' I mean Notepad++.)
Open 'content.xml' in Notepad, and it should empty. If it isn't then you're reading ahead!
Copy this...
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<content id="[ID]" version="[VERSION]" name="[NAME]" description="[DESCRIPTION]" author="[YOU!]" date="[DATE]" enabled="0" save="0">
</content>
Next, you'll need to replace everything with brackets with your own stuff. It should look somewhat like this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<content id="test" version="001" name="Test Mod" description="I can type what I want, don't tell me what to do." author="Tranxalive" date="2200-01-01" enabled="0" save="0">
</content>
Now that we've done that, we can move on to some actual content. Oh, no wait. You need to unpack the catalogs if you haven't already. You can launch your X Tools from Steam, and unpack them using the GUI tool. But we'll be doing things the old fashioned way.
First make a copy of X4, that way we can unpack everything and still be able to play the game. These next steps will take a long time, so you may as well do something else while your computer is working.
Once X4 is copied, place 'XRCatTool' in the copy of X4. Next, make a .txt file, but give it the extension of '.bat'. Open it up and copy this:
Code: Select all
[Drive Letter]:
cd "...\X4 Foundations"
XRCatTool.exe -in 01.cat -in 02.cat -in 03.cat -in 04.cat -in 05.cat -in 06.cat -in 07.cat -in 08.cat -in 09.cat -out "...\X4 Foundations"
pause
cd "...\X4 Foundations\extensions\ego_dlc_split"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "...\X4 Foundations\extensions\ego_dlc_split"
pause
cd "...\X4 Foundations\extensions\ego_dlc_terran"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "...\X4 Foundations\extensions\ego_dlc_terran"
pause
cd "...\X4 Foundations\extensions\ego_dlc_pirate"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "...\X4 Foundations\extensions\ego_dlc_pirate"
pause
cd "...\X4 Foundations\extensions\ego_dlc_boron"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "...\X4 Foundations\extensions\ego_dlc_boron"
pause
cd "...\X4 Foundations\extensions\ego_dlc_ventures"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "...\X4 Foundations\extensions\ego_dlc_ventures"
pause
Paste it. You'll need to replace the '[Drive Letter]' with the letter of the drive you stored it on, such as C: or D:. You'll also need to replace the '...' with the path to \X4 Foundations. You can get that easily by clicking the "Directory Navigation Thingy" at the top of your file browser, copy it, and paste it and replace the ellipses with them. After that, it should look something like this:
Code: Select all
C:
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations"
XRCatTool.exe -in 01.cat -in 02.cat -in 03.cat -in 04.cat -in 05.cat -in 06.cat -in 07.cat -in 08.cat -in 09.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations"
pause
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_split"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_split"
pause
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_terran"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_terran"
pause
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_pirate"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_pirate"
pause
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_boron"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_boron"
pause
cd "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_ventures"
XRCatTool.exe -in ext_01.cat -in ext_02.cat -in ext_03.cat -out "C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\ego_dlc_ventures"
pause
After that, save the file, and exit. Double click the .bat and let it do it's thing. If you kept all the pauses in there, be sure to check regularly to continue the process.
Once that's done, while we're here, we'll convert all the .xmls into .daes, as you'll need them in that format to open the sector backgrounds in Blender later.
Make a copy of the files you just unpacked, yes, it takes up space, but it's good to have both. Copy and paste all of the XRConverters into the file you just put all of the copied unpacked catalogs in. Create another .bat file, and copy and paste this into it:
Code: Select all
FOR /R "..\[Path]\" %%f IN (*.xml) do (
XRConvertersMain.exe importxmf "..\[Path]" "%%f"
)
pause
Replace the '[Path]', with... well, the path. It should look something like this:
Code: Select all
FOR /R "..\.cats and .dats\" %%f IN (*.xml) do (
XRConvertersMain.exe importxmf "..\.cats and .dats" "%%f"
)
pause
Once, that's finally done, the most painful part (for you) is over. And we can get started at last...