[TOOL] CAT/DAT Extractor

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

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

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

[TOOL] CAT/DAT Extractor

Post by Seidr » Sun, 17. Nov 13, 11:41

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 » Sun, 17. Nov 13, 12:41

Oh boy!

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

Post by socros » Sun, 17. Nov 13, 12:59

How launch the script?with the extract.py?

Deleted User

Post by Deleted User » Sun, 17. Nov 13, 13:09

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 » Sun, 17. Nov 13, 13:18

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 » Sun, 17. Nov 13, 13:24

thanks. only 2.7? what about the newer version?

poster55
Posts: 21
Joined: Wed, 16. Nov 05, 08:20
x3

Post by poster55 » Sun, 17. Nov 13, 13:33

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

Deleted User

Post by Deleted User » Sun, 17. Nov 13, 13:45

thanks!

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

Post by socros » Sun, 17. Nov 13, 13:52

Thank, the file Out contain only "assets" file ?

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Mon, 18. Nov 13, 04:47

I have some IO errors.. Normal ?
[ external image ]

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

Post by Seidr » Mon, 18. Nov 13, 08:12

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”