Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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 »

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: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Decrypt Xbox360 cat file

Post by aluigi »

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 »

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.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Decrypt Xbox360 cat file

Post by chrrox »

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 »

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.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: How do i extract the files from onechanbara kagura

Post by howfie »

nice... i see see obvious index and vertex buffers. i'm sure somebody is gonna reverse this one soon. looks easy peazy.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: How do i extract the files from onechanbara kagura

Post by howfie »

Geometry very easy to find. Wonder if the textures are swizzled...
Image
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: How do i extract the files from onechanbara kagura

Post by chrrox »

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 »

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 »

@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??
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: How do i extract the files from onechanbara kagura

Post by howfie »

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 »

Thanks for the hint, I'll check it up right away!
And Good luck for your work on those 3 games!
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: How do i extract the files from onechanbara kagura

Post by howfie »

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 »

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 »

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