Help with decompression xbox360 files [rx2]

Textures, recreate headers, conversions, algorithms and parsing of image files
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Help with decompression xbox360 files [rx2]

Post by MITA996 »

So, I googled it, searched here about decompression rx2, and didn't find a clue. GHFear made tool for rx2, but I got error in noesis. Can someone help me, give a hint ;D

https://www.mediafire.com/file/tdt0d72r ... s.rx2/file
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

MITA996 wrote:So, I googled it, searched here about decompression rx2, and didn't find a clue. GHFear made tool for rx2, but I got error in noesis. Can someone help me, give a hint ;D

https://www.mediafire.com/file/tdt0d72r ... s.rx2/file



It's different that the other RX2 files I have been working with.
But what game is it? So I can add it to my Tool in the future :)
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

GHFear wrote:
MITA996 wrote:So, I googled it, searched here about decompression rx2, and didn't find a clue. GHFear made tool for rx2, but I got error in noesis. Can someone help me, give a hint ;D

https://www.mediafire.com/file/tdt0d72r ... s.rx2/file



It's different that the other RX2 files I have been working with.
But what game is it? So I can add it to my Tool in the future :)

fifa 06 road to the world cup. Oh I see, and also size of face textures are so big..
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

If you can, hit me up with some more samples so I can make sure everything is correct.
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

GHFear wrote:If you can, hit me up with some more samples so I can make sure everything is correct.

Sure mate, here you are. Also there are head_textures, I've never seen that xd
https://www.mediafire.com/file/pwu122dt ... s.rar/file
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files

Post by beedy »

Here is what I replied to mita996 with private message. I think It will help someone else.

Is your file Xbox 360 format? I have NHL Legacy xbox 360 script you can't use it because file header is different in fifa. I will see if I can fix it compatible with fifa. Texture data is same but it needs to reverse engineer several info about header: File count, text names, data offset, texture block size, width and height etc. Before the script you can easily convert files to xpr (Xbox 360 resource file)

Use .rdf file and bundler.exe ( you can find it from GHfears rx2 tool) to create .xpr file. Then copy data from offset 0x1000 from fifa file and paste it to created xpr from offset 0x80C.

Then use noesis with xpr script to view textures.

You can use .xpr file in attachment for all faces textures but if you want to convert other textures you need to compile rdf with it.

I made simple tutorial that helps you to compile rdf file

Red squared are the textures, there is 3 textures in fifa face file.

Green squared are the file formats:
52 = D3DFMT_DXT1
53 = D3DFMT_DXT3
54 = D3DFMT_DXT5
71 = D3DFMT_DXN

Blue squared are the width and heights
00 3F E1 FF = 512x512
00 7F E3 FF = 1024x1024
calculate example height:
00 3F is 63 in decimal then 63 + 1 = 64 * 8 = 512
00 7F is 127 + 1 = 128 * 8 = 1024

Width, you need binary calculator:
0xE1FF + 1 = 0xE200 AND 0x1FFF = 0x200 = 512
0xE3FF + 1 = 0xE400 AND 0x1FFF = 0x400 = 1024

Create blank texture named 1.tga and drag it same folder where bundler.exe and rdf file is
Then use bundler to create .xpr with this command:
Bundler.exe fifa_face.rdf -o example.xpr

Tutorial image:
https://imgur.com/a/JTClT1H

.Xpr file and xpr-script link:
https://ufile.io/aodgl
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

Adding to this discussion:
These files have footers with the texture information stored in them at the end of the file.
The header doesn't store the size and offset.
This format is an EARLY version of the XPR from the very early Xbox 360 SDK.
I am adding it to my tool right now. Will be ready tomorrow or the day after. Adding compatability with multiple files too. So no worries.
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

GHFear wrote:Adding to this discussion:
These files have footers with the texture information stored in them at the end of the file.
The header doesn't store the size and offset.
This format is an EARLY version of the XPR from the very early Xbox 360 SDK.
I am adding it to my tool right now. Will be ready tomorrow or the day after. Adding compatability with multiple files too. So no worries.

Perfect, beedy helped me with exporting textures, thanks for your tools, guys, looking forward to see that :)
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

Here is a script attached I made for unpacking the textures from the RX2 packages (for QuickBMS) and also a script I made for Noesis to view them.
This way you have the individual raster files :)
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

GHFear wrote:Here is a script attached I made for unpacking the textures from the RX2 packages (for QuickBMS) and also a script I made for Noesis to view them.
This way you have the individual raster files :)

Greeeat news, will there be script for models maybe, or the only way is model researcher? :D So thankful for thissss
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

MITA996 wrote:
GHFear wrote:Here is a script attached I made for unpacking the textures from the RX2 packages (for QuickBMS) and also a script I made for Noesis to view them.
This way you have the individual raster files :)

Greeeat news, will there be script for models maybe, or the only way is model researcher? :D So thankful for thissss


Once I have the whole header for the RX2 model format reverse engineered, I will make a script for Model Researcher Pro that exports the models as OBJ.
So yeah, it may take a pretty long while. Since I have to learn enough Python to write the scripts and also reverse engineer insanely large headers x) But it should be done until 2020 at least. :)
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

GHFear wrote:
MITA996 wrote:
GHFear wrote:Here is a script attached I made for unpacking the textures from the RX2 packages (for QuickBMS) and also a script I made for Noesis to view them.
This way you have the individual raster files :)

Greeeat news, will there be script for models maybe, or the only way is model researcher? :D So thankful for thissss


Once I have the whole header for the RX2 model format reverse engineered, I will make a script for Model Researcher Pro that exports the models as OBJ.
So yeah, it may take a pretty long while. Since I have to learn enough Python to write the scripts and also reverse engineer insanely large headers x) But it should be done until 2020 at least. :)

That will be awesomeeeeeee. Can't wait buddy :)))) Best regards and all the best
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files

Post by beedy »

I made script for rx2 models and updated NHL texture script supporting skate 3 and Def jam. Materials isn't supported yet. Fifa 06 files are so different so it too complex to get same script.
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Help with decompression xbox360 files

Post by GHFear »

beedy wrote:I made script for rx2 models and updated NHL texture script supporting skate 3 and Def jam. Materials isn't supported yet. Fifa 06 files are so different so it too complex to get same script.


Nice one dude! :D The model extraction works for a lot of the standalone character meshes. That's awesome.
Thank you.
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files

Post by MITA996 »

beedy wrote:I made script for rx2 models and updated NHL texture script supporting skate 3 and Def jam. Materials isn't supported yet. Fifa 06 files are so different so it too complex to get same script.

Great Beedy, is it work with other fifa version, like fifa 08, fifa 09?
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

If you send some samples I will test if it works with fifa files
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

Here is script for fifa 06 heads model.
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files [rx2]

Post by MITA996 »

beedy wrote:Here is script for fifa 06 heads model.

Magnificent mate. But, strange thing happened, just the head 933, that I posted already can be viewed with noesis and even just one part.. Here are more samples of heads.
https://www.mediafire.com/file/016dtddd ... 6.rar/file
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

You can cycle sub-models to view all parts. To extract all parts you need to cycle all sub-models separately and select export from preview. If you want to view all parts together go to Tools->Data viewer->Draw all models. You can't extract all meshes at the same time only cycle sub-models and extract from preview.

Here is updated script for heads:
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help with decompression xbox360 files [rx2]

Post by MITA996 »

beedy wrote:You can cycle sub-models to view all parts. To extract all parts you need to cycle all sub-models separately and select export from preview. If you want to view all parts together go to Tools->Data viewer->Draw all models. You can't extract all meshes at the same time only cycle sub-models and extract from preview.

Here is updated script for heads:

Thank you very much. It works great :D