Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ssringo
Posts: 23
Joined: Sat Dec 19, 2015 2:28 am

Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by ssringo »

I'm looking for a way to get just the textures out of the .cat archives. Current scripts for extracting textures from Tamsoft games do not work on these files. daemon1 is working on model extraction over on xentax. Texture extraction is supposedly easy enough (although I'm a dummy and can't do it myself) but he's working on the models right now. Hoping someone can help out with the texture portion.

A bunch of samples

http://www.mediafire.com/file/47o55qsyf6lk4o7/OZ2.rar
ssringo
Posts: 23
Joined: Sat Dec 19, 2015 2:28 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by ssringo »

So daemon1 released a tool to convert Onechanbara Z2 Chaos (PC) models to smd/mesh.ascii and it works pretty good. However, he has left it up to others to figure out textures and the dlc extraction but nobody has released anything. While we can get textures with some ninjaripper shenanigans (still be nice to have a proper script for extracting), the dlc models are packed up and unusable with his tool (but apparently work if extracted). Hoping someone can help out with extracting the files for use with his tool. I'm guessing the dlc file has multiple .cat files inside for the different characters.

Here are the tools and what I was able to dig up about the dlc files.

-The base game files are *.cat archives while the dlc files are, according to chroxx, "just a .cat file xored with 0xEDDCBBE1C1FEDAAA

-The Tamsoft.cat bms script I posted here (that I didn't write) was used for extracting the base game *.cat files that are used with his tool. It does not extract the dlc files at all.

Here are a few dlc samples. Will upload more if needed.

https://mega.nz/#!joxXFIbI!Dr47Pb9Ub-FO ... 1_F35fihwY
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by Acewell »

here is a bms script that will extract the texture data from the *.cat and *.dlc (xored cat) files with names and dds headers :D
*updated May 10, 2017*
Onechanbara_DLC&CAT_ddsExtract.zip

supports dxt1, dxt5, argb8
added a condition to detect *.cat or *.dlc (xored cat) file :D


i replied to your other cat samples on Xentax here too with a *.cat extraction script
http://forum.xentax.com/viewtopic.php?p=130505#p130505
Last edited by Acewell on Thu May 11, 2017 3:22 am, edited 1 time in total.
ssringo
Posts: 23
Joined: Sat Dec 19, 2015 2:28 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by ssringo »

I saw you other post earlier. Thank you again Acewell. All we need is model extraction and Z2 Chaos is good to go.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by Acewell »

i updated the previous script to auto-detect *.cat or *.dlc files so you only need to use the one for both types instead of 2 scripts. :D
ssringo
Posts: 23
Joined: Sat Dec 19, 2015 2:28 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by ssringo »

Still hoping someone can help out with DLC model extraction. Haven't gotten any replies from here or xentax (aside from a couple others asking about DLC models) with this. The information above is still correct regarding the files and my sample link still works but here it is again.

https://mega.nz/#!joxXFIbI!Dr47Pb9Ub-FO ... 1_F35fihwY
ssringo
Posts: 23
Joined: Sat Dec 19, 2015 2:28 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by ssringo »

Bumping for another attempt at assistance with this. The DLC models still don't have an extraction script although everything else does. The uploaded samples in my previous post still work.
phay007
Posts: 18
Joined: Tue Nov 07, 2017 3:01 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by phay007 »

Acewell wrote:i updated the previous script to auto-detect *.cat or *.dlc files so you only need to use the one for both types instead of 2 scripts. :D

can you make a script to unpack the .dat(no xor .dll) file and get the model file?
phay007
Posts: 18
Joined: Tue Nov 07, 2017 3:01 am

.dlc file -onechanbaraz2_pc

Post by phay007 »

Hello,i can't extract onechanbaraz2 chaos pc .dat files(no xored .dlc files)
i'm using the quickbms 0.8.0 and bms (viewtopic.php?f=9&t=3426&p=18998&hilit=onechanbara#p18998)
This script only for the .dat files not include the .dlc or .dat files(no xored .dlc files).
can you help me? :cry:
here are some samples(no xored .dlc files)https://mega.nz/#!DpojXQ7T
:cry:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .dlc file -onechanbaraz2_pc

Post by aluigi »

Your link for the samples is invalid.
phay007
Posts: 18
Joined: Tue Nov 07, 2017 3:01 am

Re: .dlc file -onechanbaraz2_pc

Post by phay007 »

aluigi wrote:Your link for the samples is invalid.

:o sorry~please try this link~https://mega.nz/#!qkI1EQ6Z!bleaktwIVMYVh_k7PfAp1QWqJH1C-FVtLQerQU-ugPc
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by aluigi »

The format of the CAT files is simple:

Code: Select all

get FILES long
for i = 0 < FILES
    get OFFSET long
    get SIZE long
    get SOME_CRC long
    get FLAGS long
    log "" OFFSET SIZE
next i
No encryption or compression.
I don't know what are the extracted files, maybe 3d models? Not my field.
phay007
Posts: 18
Joined: Tue Nov 07, 2017 3:01 am

Re: Onechanbara Z2 Chaos (PC) *.cat and *.dlc

Post by phay007 »

aluigi wrote:The format of the CAT files is simple:

Code: Select all

get FILES long
for i = 0 < FILES
    get OFFSET long
    get SIZE long
    get SOME_CRC long
    get FLAGS long
    log "" OFFSET SIZE
next i
No encryption or compression.
I don't know what are the extracted files, maybe 3d models? Not my field.

I test the script,it can extract some .vap files.They are not the models .this page,AceWell had made a script to extract the .dds texture files.but I use the Hex editor to open the .cat file.I find some message.
01.JPG

Are the .dae file 3d model files? or other files are model file,for example:.gxt?----》http://zenhax.com/viewtopic.php?f=9&t=3426&p=18998&hilit=onechanbara#p18998 I use this script to unpak some .cat in game folder(not the samples .dlc file).It can extrat some .gxt file.