Help with decompression xbox360 files [rx2]

Textures, recreate headers, conversions, algorithms and parsing of image files
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

It isn’t that different that I thought. I will try it in the next few days.
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

beedy wrote:It isn’t that different that I thought. I will try it in the next few days.

awesome, I will wait your achievements ;)
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

I edit the script for Def Jam but unfortunately get it work with first geometry file from tops_hoodiezipup_model.rx2. Problem is amount of faces that does not match the vertexgroups. tops_hoodiezipup_model.rx2 include 4 geometry files:
hoodzipShape.0
hoodzipShape_hoodie_zip_0
hoodzip_physicsShape.0
hoodzip_physicsShape_hoodie_zip_physics_0
There are 4 vertex group in the model (that's right) but only 2 face groups (two are missing?) so I can't load all geometry shapes right.

luda_mob_base.rx2 includes 10 vertex groups but only 8 face groups and 2 are missing too. I tried to load geometry manually with Model Researcher but didn't succeed.
Edit. I download the game demo and test the script with other models. I extracted char_models.viv and gear_model.viv and some character/gear models can be viewable. That's all I can help this time.

Edit2. I think models which name include _model are viewable. _mob _base _blend are possibly morphs or something and I don't know how do I read them.
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

beedy wrote:I edit the script for Def Jam but unfortunately get it work with first geometry file from tops_hoodiezipup_model.rx2. Problem is amount of faces that does not match the vertexgroups. tops_hoodiezipup_model.rx2 include 4 geometry files:
hoodzipShape.0
hoodzipShape_hoodie_zip_0
hoodzip_physicsShape.0
hoodzip_physicsShape_hoodie_zip_physics_0
There are 4 vertex group in the model (that's right) but only 2 face groups (two are missing?) so I can't load all geometry shapes right.

luda_mob_base.rx2 includes 10 vertex groups but only 8 face groups and 2 are missing too. I tried to load geometry manually with Model Researcher but didn't succeed.
Edit. I download the game demo and test the script with other models. I extracted char_models.viv and gear_model.viv and some character/gear models can be viewable. That's all I can help this time.

Edit2. I think models which name include _model are viewable. _mob _base _blend are possibly morphs or something and I don't know how do I read them.


Its a great news!!! Thank you beedy, god bless.
I think that problem cause main characters have morphs, anyway its good progress,
I will test it today with many models, cause now I check only tops hoody and it works,
luda head isnt imported... hope you can fix it later

Edit2. yeah I got only models of clothes, hairs, and some girl characters in char_lic.viv.
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

Image
I tried to open luda_mob_base.rx2 in ModelResearcher and got vertices right but got error loading faces. Face blocks are type 0x0200EB and vertex blocks type 0x0200EA in index table. There are 10 vertex block and 9 faces block in the file and when I load face and vertex blocks the first in order in ModelResearcher I got faces error. That's very complex and I don't know why faces and vertices doesn't match. I tried all formats for faces.
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

beedy wrote:I tried to open luda_mob_base.rx2 in ModelResearcher and got vertices right but got error loading faces. Face blocks are type 0x0200EB and vertex blocks type 0x0200EA in index table. There are 10 vertex block and 9 faces block in the file and when I load face and vertex blocks the first in order in ModelResearcher I got faces error. That's very complex and I don't know why faces and vertices doesn't match. I tried all formats for faces.

Maybe problem with submeshes, I heard ModelResearcher Pro have better work with submeshes. Or just like correct edges on a blend file?

Edit2: Also I check your settings in that model by ModelResearcher 2.7 and have fully another result, with wrong verticles position..

And girls models with multi submesh also exproted from noesis have wrong UV
https://prnt.sc/r1ev0h
Lazov
Posts: 20
Joined: Thu Apr 06, 2017 9:47 am

Re: Help with decompression xbox360 files [rx2]

Post by Lazov »

Wak
The pro version will not help you. If only you skip write. There, in some strange form, the faces lie. Looks like StripFF.
Here is a template with a complete full model:

Code: Select all

v 0x6bd00 10452 40 0 Float XYZ
f 0x05f000 10 0 0 Short TStripFF
bo >
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

Wak wrote:
beedy wrote:Edit2: Also I check your settings in that model by ModelResearcher 2.7 and have fully another result, with wrong verticles position..


I did the process the same way that I did all other games rx2 files. I made bms script to split rx2 format by parts.
Example (luda_mob_base.rx2)

First faces part: part39_000200eb_faceindex0 (index) and part38_00010031 (data)
First vertex part: part482_000200ea_vertexindex0 (vertex index) part481_00010031 (vertex data)

Face index part stores faces count which is 23923 (0x5D73)
Vertex Index part stores VBlock size which is 0x34 and vertex buffer size which is 20176 (0x4ED0)

When I try to read first mesh: part38_00010031 (first face data) and part481_00010031 (first vertex data) I got error for faces. That's the problem, I can do this for all other games with rx2 format but not this. I don't understand why faces and vertices doesn't match even though they should.

When I edit the script to load third mesh (change for i in range(0, meshCount): to for i in range(2, 3): in row 99) I got something like this:
Image
second mesh (for i in range(1, 2):)
Image
I can't do anything else, unfortunately.
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

Lazov greetings ;) thank you for a tool.


beedy wrote:
Wak wrote:
beedy wrote:I did the process the same way that I did all other games rx2 files. I made bms script to split rx2 format by parts.
Example (luda_mob_base.rx2)

First faces part: part39_000200eb_faceindex0 (index) and part38_00010031 (data)
First vertex part: part482_000200ea_vertexindex0 (vertex index) part481_00010031 (vertex data)

Face index part stores faces count which is 23923 (0x5D73)
Vertex Index part stores VBlock size which is 0x34 and vertex buffer size which is 20176 (0x4ED0)

When I try to read first mesh: part38_00010031 (first face data) and part481_00010031 (first vertex data) I got error for faces. That's the problem, I can do this for all other games with rx2 format but not this. I don't understand why faces and vertices doesn't match even though they should.

When I edit the script to load third mesh (change for i in range(0, meshCount): to for i in range(2, 3): in row 99) I got something like this:

second mesh (for i in range(1, 2):)

I can't do anything else, unfortunately.


In game structure main characters files have a part named ".blend"
like
luda_mob_base.rx2
luda_mob_base_blend.rx2

Did you check this files, maybe it can help?
samples in attachment
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

Hey guys, I have a new idea, just export Def Jam Icon from PS3, and I saw files have another things.
Now, all files in .rpsgl and have other size then xbox files:/
beedy tool works with yours rx2.bms script but still not open in Noesis, and
have another structure and ModelReseacherPro (Im not expert of this tool), but
samples in attachment
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

The models are too hard for me, I don't know about the structure enough. Rpsgl header is different compared to NHL rpsgl texture script I wrote before. I edit the texture script but I don't know "_ao" texture dxt compression. I guess that byte in offset 0x154 is format sign. 0x88=dxt5, 0x81=?.

Here is script for textures
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

beedy wrote:The models are too hard for me, I don't know about the structure enough. Rpsgl header is different compared to NHL rpsgl texture script I wrote before. I edit the texture script but I don't know "_ao" texture dxt compression. I guess that byte in offset 0x154 is format sign. 0x88=dxt5, 0x81=?.

Here is script for textures


Good work, dear friend!
I check textures its fully same like in xbox version, I mean size and qualitty.
so _ao dont have much sense, cause I got it in xbox. Now only models neded,
I understand you make all what you know, and thats great

That forum read many peoples, can someone please help to us,
cause beedy make a lot of work, now we on finish..
Maybe somebody with ModelResearcher who have good expirience
can help?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Help with decompression xbox360 files [rx2]

Post by Acewell »

beedy wrote:I edit the texture script but I don't know "_ao" texture dxt compression.

looks like morton swizzled a8 or r8
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

Hello guys, I found some new information, its
old tools for NBA series, some from them use .viv and .rx2 files fromat.

First I check wDOLFFIN Live 2.1.b
https://forums.nba-live.com/downloads.php?view=detail&df_id=12
I loaded file characters_morph.viv (xbox version) and give some info (attached in screens)
when I try extract it to .fsh, will export decomressed file in rx2,
also have chance to export in .xsh
But can't load it in oedit:(

I cant found models converter, but Fshline, oedit or
MorphMesh tool should

Also many tools are here
https://forums.nba-live.com/downloads.php?cat=1
Maybe something will be helpfull

Edit: Also, with Dolphin I can export uncompressed models, and
it looks a bit another have another size, when plugin
ea4_big export, has decompress, maybe then lost some data
RobbieD_PL
Posts: 1
Joined: Wed Nov 25, 2020 10:47 pm

Re: Help with decompression xbox360 files [rx2]

Post by RobbieD_PL »

Hi guys,

I'm trying to extract the image files from the following ui .big files from the XBOX 360 version of UEFA Euro 2008:

https://www.mediafire.com/file/82n5t7pp ... 60.7z/file

They are the menu images of the host stadiums from that videogame. If anyone can help, I will be really grateful!
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

1. Extract big using quickbms and ea_big4.bms script:
https://aluigi.altervista.org/bms/ea_big4.bms

2. Add extension .rx2 for biggest file you extracted. In this case stadium_164.big -> 2.rx2

3. Open rx2 in Noesis using tex_NHLLegacy_X360_rx2.py script in plugins/python folder

4. Export rx2 to tga in Noesis and add -texnorepfn in Advanced options:
https://imgur.com/tqLf59d

5. Modify your tga but don't change file name and Use NHL Legay rx2 Patcher tool to patch "2.rx2" file.
In Rx2 Patcher click "Patch rx2" and select the folder where modified tga (in this case 2.tga) found.

6. Remove .rx2 extension: 2.rx2 -> 2 and use quickbms reimport mode to replace file in big.
Use quickbms reimport.bat, select ea_big4.bms, select stadium_164.big, select same folder that you selected in extraction.

Rx2 Patcher and latest tex_NHLLegacy_X360_rx2.py (in folder Noesis script v1.3) found here:
https://app.box.com/s/k7nrb9p867x178k7bwrl9oxg3rttiu31

edit.
If you want only extract the image you don't need to do steps 5 and 6 but I made steps how to edit and replace image in big if someone else want to do that.
fbiBr
Posts: 2
Joined: Sat Dec 05, 2020 5:44 am

Re: Help with decompression xbox360 files

Post by fbiBr »

Hello, how do I repack the .xst X-360 or .cst PS3 files red dead redemption? I want to translate for Brazil.
Could you make the used tools available?
Wak
Posts: 26
Joined: Mon Dec 18, 2017 9:30 pm

Re: Help with decompression xbox360 files [rx2]

Post by Wak »

Hello beedy is it any updates about Def Jam Icon of characters faces?
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

Wak wrote:Hello beedy is it any updates about Def Jam Icon of characters faces?

Hello WAK!
I realized how the rx2 format indexing parts and submodels works. Here is updated script for X360 Def Jam Icon. Works perfectly with the samples you uploaded previously. If you want to view all models same time in Noesis window toggle "Draw all models" on in Noesis -> Tools -> Data Viewer.

Edit. Fixed the script
Last edited by beedy on Sun Apr 25, 2021 8:38 pm, edited 1 time in total.
beedy
Posts: 81
Joined: Sat Aug 26, 2017 8:09 am

Re: Help with decompression xbox360 files [rx2]

Post by beedy »

Found bugs reading submeshes in def jam script. I will try to fix it.