READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

How do i extract the files from onechanbara kagura

Read or post about compression. And decompression. Or ask questions how to decompress your files.
User avatar
dj082502
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Oct 13, 2010 3:47 am
Has thanked: 37 times
Been thanked: 21 times

How do i extract the files from onechanbara kagura

Post by dj082502 » Fri Jan 20, 2012 7:45 am

Hi, all
I'd like to extract cat file from Onechanbara Z Kagura.
May be cat file is encrypted.
the first 4 bytes

Code: Select all

.х.н
Image
Could anyone please take a look?
Here is a sample.
delete
Last edited by dj082502 on Sat Jan 21, 2012 9:29 am, edited 3 times in total.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: Decrypt Xbox360 cat file

Post by aluigi » Fri Jan 20, 2012 9:21 am

copy&paste from another post of mine:
---
job for xbdecompress.exe (Xbox SDK)
when you see a file that starts with the bytes 0f f5 12 that one is the tool you need

remember these 3 bytes and make it your new religion because you will see them a lot in many x360 games :)
---

User avatar
dj082502
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Oct 13, 2010 3:47 am
Has thanked: 37 times
Been thanked: 21 times

Re: Decrypt Xbox360 cat file

Post by dj082502 » Fri Jan 20, 2012 9:46 am

aluigi wrote:copy&paste from another post of mine:
---
job for xbdecompress.exe (Xbox SDK)
when you see a file that starts with the bytes 0f f5 12 that one is the tool you need

remember these 3 bytes and make it your new religion because you will see them a lot in many x360 games :)
---

Thank your for your assistance
I clean forgot about it until now.

User avatar
chrrox
Moderator
Posts: 2550
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1279 times

Re: Decrypt Xbox360 cat file

Post by chrrox » Fri Jan 20, 2012 12:35 pm

Dont post like this.
please say how do i extract the files from onechanbara kagura.

User avatar
dj082502
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Oct 13, 2010 3:47 am
Has thanked: 37 times
Been thanked: 21 times

Re: Decrypt Xbox360 cat file

Post by dj082502 » Fri Jan 20, 2012 12:56 pm

chrrox wrote:Dont post like this.
please say how do i extract the files from onechanbara kagura.
O.K. I'll be more careful.
It combines decrypted file and encrypted file in a single file, and fix the title, so just calm down.
delete
Last edited by dj082502 on Fri Apr 13, 2012 6:45 pm, edited 1 time in total.

User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 263 times

Re: How do i extract the files from onechanbara kagura

Post by howfie » Fri Jan 20, 2012 8:13 pm

nice... i see see obvious index and vertex buffers. i'm sure somebody is gonna reverse this one soon. looks easy peazy.

User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 263 times

Re: How do i extract the files from onechanbara kagura

Post by howfie » Sat Jan 21, 2012 1:30 am

Geometry very easy to find. Wonder if the textures are swizzled...
Image

User avatar
chrrox
Moderator
Posts: 2550
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1279 times

Re: How do i extract the files from onechanbara kagura

Post by chrrox » Sat Jan 21, 2012 2:44 am

they are swizzled but they are standard xpr files.
just use the sdk tool unbundler on them

User avatar
dj082502
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Oct 13, 2010 3:47 am
Has thanked: 37 times
Been thanked: 21 times

Re: How do i extract the files from onechanbara kagura

Post by dj082502 » Sat Jan 21, 2012 5:48 am

howfie wrote:Geometry very easy to find. Wonder if the textures are swizzled...
Image
Really fast.
How to extract *_.cat file?

gggrrrhhh2000
n00b
Posts: 11
Joined: Fri Aug 13, 2010 7:34 am
Has thanked: 3 times
Been thanked: 1 time

Re: How do i extract the files from onechanbara kagura

Post by gggrrrhhh2000 » Sat Jan 21, 2012 2:47 pm

@howvie : great job you've done there :)!

I also managed to get the mesh's vertices just like your picture.
However I'm totally clueless about the UV coordinates data, have you locate them??

User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 263 times

Re: How do i extract the files from onechanbara kagura

Post by howfie » Sat Jan 21, 2012 11:46 pm

Did you try normalized unsigned shorts for uv coords? Also try to read vertex data that is not word aligned. If that doesn't work try looking at I think Surveyor's old Onechanbara thread; it might use a similar vertex structure and there might have been a trick. I don't have too much time to work on this. I am working on like 3 other games atm. I did the above in like 10 minutes just to try out the xbdecompress thing.

gggrrrhhh2000
n00b
Posts: 11
Joined: Fri Aug 13, 2010 7:34 am
Has thanked: 3 times
Been thanked: 1 time

Re: How do i extract the files from onechanbara kagura

Post by gggrrrhhh2000 » Sun Jan 22, 2012 2:17 am

Thanks for the hint, I'll check it up right away!
And Good luck for your work on those 3 games!

User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 263 times

Re: How do i extract the files from onechanbara kagura

Post by howfie » Sun Jan 22, 2012 3:01 am

actually i am about to give up on finding the bones on tekken hybrid, so if you get stuck let me know so we can bash heads on this one. i am currently redumping onechanbara from my home machine so i'll take a look again at it sometime tonight. btw welcome to the forums.

gggrrrhhh2000
n00b
Posts: 11
Joined: Fri Aug 13, 2010 7:34 am
Has thanked: 3 times
Been thanked: 1 time

Re: How do i extract the files from onechanbara kagura

Post by gggrrrhhh2000 » Sun Jan 22, 2012 3:43 am

The UV is written in unsigned shorts indeed, just need to normalize them to view properly (thanks to howfie).
Now just need to find the Material id and split the UVs.

gggrrrhhh2000
n00b
Posts: 11
Joined: Fri Aug 13, 2010 7:34 am
Has thanked: 3 times
Been thanked: 1 time

Re: How do i extract the files from onechanbara kagura

Post by gggrrrhhh2000 » Sun Jan 22, 2012 7:52 am

About the textures, I decompressed them and can see the "XPR2" Header from the Hex data.
But strangely, I tried "XPR Express" "MiteeXpr" "XPRextract" tools, none of them were able to extract the .xpr files into .dds textures as written in the hex.

Anyone has an idea?

EDIT :
After hours of info searching, Those tools above seem to work on XPR, but these textures are XPR2, that's why they didn't work.
Finally managed to extract these XPR2 files, using the xdk tool unbundler.exe. (Ah, chrrox mentioned it above, how could I miss that :( )
Last edited by gggrrrhhh2000 on Sun Jan 22, 2012 4:42 pm, edited 2 times in total.

Post Reply