[TOOL] CAT/DAT Extractor

The place to discuss scripting and game modifications for X Rebirth.

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

Seidr
Posts: 13
Joined: Thu, 14. Nov 13, 19:38

[TOOL] CAT/DAT Extractor

Post by Seidr »

After turning up empty handed for a tool to extract the .cat/.dat files, I wrote a quick Python script to extract the data.


Feel free to improve upon this script. To use it, just chuck it into the X Rebirth directory (the one that contains all of the .cat and .dat files), and run it. It will create a new directory called 'out', which will contain all of the extracted assets in their original directory structure.


This should give modders some nice data to play around with :)


https://bitbucket.org/Seidr/x-rebirth-c ... r/overview
Zakuak
Posts: 85
Joined: Mon, 4. Nov 13, 22:29

Post by Zakuak »

Oh boy!
socros
Posts: 43
Joined: Thu, 27. Aug 09, 22:16
x4

Post by socros »

How launch the script?with the extract.py?
Deleted User

Post by Deleted User »

agreed, I have no idea how to use it :P Windows here, child of the GUI era.
Seidr
Posts: 13
Joined: Thu, 14. Nov 13, 19:38

Post by Seidr »

I would convert it to an EXE, but I imagine people would be dubious of downloading and running it.

Download Python 2.7 from here: http://www.python.org/getit/

Once installed, open up a command prompt (press Windows+R, and type in cmd, and press OK).

Type in the following, and press enter
cd "C:\Program Files (x86)\Steam\SteamApps\common\X Rebirth"
The 'extract.py' file needs to be in this directory.

Once the above has been done, in the command prompt you should simply need to type 'python extract.py'.

If this does not work, you could possibly execute it by browsing to that directory, and double clicking on 'extract.py'.
Deleted User

Post by Deleted User »

thanks. only 2.7? what about the newer version?
poster55
Posts: 21
Joined: Wed, 16. Nov 05, 08:20
x3

Post by poster55 »

Only 2.7. The newer version will spit an error at you because syntax is different.
Deleted User

Post by Deleted User »

thanks!
socros
Posts: 43
Joined: Thu, 27. Aug 09, 22:16
x4

Post by socros »

Thank, the file Out contain only "assets" file ?
User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix »

I have some IO errors.. Normal ?
[ external image ]
Seidr
Posts: 13
Joined: Thu, 14. Nov 13, 19:38

Post by Seidr »

Expected, that's due to the end file path length. Try copying the CAT/DAT files to a directory in your root, such as c:\x.

Return to “X Rebirth - Scripts and Modding”