Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

Dead or Alive 5 (DOA5) Retail (X360 / PS3)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
chrrox
Moderator
Posts: 2552
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1289 times

Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by chrrox » Fri Sep 28, 2012 1:57 am

Ok I want to get this out before the model script so people are ready when the time comes.
These are the tools to extract and decrypt the new format.
This will not be the fastest thing in the world but you only need to extract the game one time so.
first you must extract the .lnk and .bin files

Code: Select all

endian BIG
open FDDE LNK 0
open FDDE BIN 1
goto 0x8 1
get files long 1
goto 0x28 1
savepos offset 1
for i = 0 < files
goto offset 1
get arcnum long 1
get id long 1
get noff long 1
savepos offset 1
goto noff 1
get name string 1
putarray 0 i name
next i
getarray name 0 0
putarray 0 files name
goto 0xC
get files long
get unk01 longlong
get unk02 longlong
for i = 0 < files
get offset longlong
get zsize longlong
get size longlong
get arc longlong
set id i
getarray name 0 id
string name + .dat
if zsize == size
log name offset size
else
clog name offset zsize size
endif
next i
Ok then on the files that are put out you will want to run this 2nd script called doa5extract.bms.
use this command to batch process
quickbms -F "*.dat" c:\doa5extract.bms c:\DOA5\datfiles c:\output
now you will have a directory with a bunch of ext files
you will want to run doa5decrypt.bms
you can run it the same way
quickbms -F "*.ext" c:\doa5decrypt.bms c:\DOA5\extfiles c:\output2
(This will take a while)
ok so now you have a bunch of files with funky names that are extracted and decrypted.
the names they give will tell you how to find the characters models
for instance

Code: Select all

2R763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_001.TMC
2S763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_002.TMC
2T763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_003.TMC
2U763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_004.TMC
2V763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_005.TMC
2W763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_006.TMC
2X763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_007.TMC
2Y763@1S100@BB1G]]724I1G1J1FE198PQF1710M10{R721K = LEIFANG_COS_008.TMC

BR873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_001.TMCL
BS873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_002.TMCL
BT873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_003.TMCL
BU873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_004.TMCL
BV873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_005.TMCL
BW873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_006.TMCL
BX873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_007.TMCL
BY873@1S100@CC1]H]723C1G1J1GE1298PQF1610M10{R721K = LEIFANG_COS_008.TMCL
you can clearly see the pattern in the name

Code: Select all

2R151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_001.TMC
2S151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_002.TMC
2T151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_003.TMC
2U151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_004.TMC
2V151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_005.TMC
2W151@1S100A@S1]]J3372K52CQRE1410N10{S75131G = AYANE_COS_006.TMC

BR161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_001.TMCL
BS161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_002.TMCL
BT161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_003.TMCL
BU161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_004.TMCL
BV161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_005.TMCL
BW161@1S100B@S1]]2J372K42E1QRE1100N10{S65131G = AYANE_COS_006.TMCL

Code: Select all

2R052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_001.TMC
2S052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_002.TMC
2T052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_003.TMC
2U052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_004.TMC
2V052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_005.TMC
2W052@1S100@BF1G]]724B21G1PQ87710M10{R821F - MILA_COS_006.TMC

BR062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_001.TMCL
BS062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_002.TMCL
BT062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_003.TMCL
BU062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_004.TMCL
BV062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_005.TMCL
BW062@1S100@C71]H]723C212G1PQ87610M10{R821F - MILA_COS_006.TMCL

2R0K2@1S100@CG212H]2]B8341QA1I1DNA8H0100M{PQ1A = MILA_HAIR_001.TMC
2S0K2@1S100@CG212H]2]B8341QA1I1DNA8H0100M{PQ1A = MILA_HAIR_002.TMC
BR0K2@1S100@D7212]I1]C8300QA15I1DNA8H0100M{PQ1A = MILA_HAIR_001.TMCL
BS0K2@1S100@D7212]I1]C8300QA15I1DNA8H0100M{PQ1A = MILA_HAIR_002.TMCL
the first 2 characters tell what costume it is and the last 4 or 5 tell you what the model is.
so its very simple to match them up
I will try to make a wiki page and fill in the costume names and people can feel free to help :)
if you look at the tmc files in a hex editor the model name is clearly visible
You do not have the required permissions to view the files attached to this post.

Darko
double-veteran
double-veteran
Posts: 702
Joined: Mon Jul 13, 2009 6:16 pm
Has thanked: 70 times
Been thanked: 118 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by Darko » Fri Sep 28, 2012 5:49 am

LOL You're the boss here.

Thanks Chrrox.

Edit:

The scripts also work with the dlc files.
Image

JayK
veteran
Posts: 123
Joined: Fri Jun 01, 2012 10:08 am
Has thanked: 31 times
Been thanked: 66 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by JayK » Fri Sep 28, 2012 7:50 am

Thanks a lot Chrrox, this is good to learn from your scripts also. I Appreciate all the work you do!

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by TRDaz » Fri Sep 28, 2012 11:42 am

I get this when using doa5extract.bms:
You do not have the required permissions to view the files attached to this post.

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

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by chrrox » Fri Sep 28, 2012 12:49 pm

it cant be a folder in the area you are extracting.
works
c:\original files
c:\new files

not working
c:\coriginal files
c:\coriginal files\new files

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by TRDaz » Fri Sep 28, 2012 2:25 pm

chrrox wrote:it cant be a folder in the area you are extracting.
works
c:\original files
c:\new files

not working
c:\coriginal files
c:\coriginal files\new files
Huh? Im confused xD I made a folder named "new files" in my D: Drive to have the ext files extract there, but that didnt work either.

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

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by chrrox » Fri Sep 28, 2012 3:19 pm

in your example do this
make a new folder
d:\quickbms
install the newest quickbms there.
now open a command prompt and change to that directory
cd d:\quickbms
now do
quickbms.exe -F "*.dat" d:\doa5extract.bms d:\dat_file_folder d:\new_dat_file_folder
and put quotes around all your paths to be sure

Darko
double-veteran
double-veteran
Posts: 702
Joined: Mon Jul 13, 2009 6:16 pm
Has thanked: 70 times
Been thanked: 118 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by Darko » Fri Sep 28, 2012 3:42 pm

TRDaz wrote:
chrrox wrote:it cant be a folder in the area you are extracting.
works
c:\original files
c:\new files

not working
c:\coriginal files
c:\coriginal files\new files
Huh? Im confused xD I made a folder named "new files" in my D: Drive to have the ext files extract there, but that didnt work either.
He means there can't be any spaces between words.
Image

moge1975
n00b
Posts: 19
Joined: Thu Aug 09, 2012 11:32 am
Has thanked: 21 times
Been thanked: 1 time

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by moge1975 » Fri Sep 28, 2012 3:48 pm

good script work! :-D
I'm Defrosting was completed.
but noesis fmt_DOA5_NG3_tmc.py Load failure :blue:
1.4ver is old?

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by TRDaz » Fri Sep 28, 2012 5:31 pm

chrrox wrote:in your example do this
make a new folder
d:\quickbms
install the newest quickbms there.
now open a command prompt and change to that directory
cd d:\quickbms
now do
quickbms.exe -F "*.dat" d:\doa5extract.bms d:\dat_file_folder d:\new_dat_file_folder
and put quotes around all your paths to be sure
Thanks! This worked! Its extracting them right now :D I cant wait for the noesis script btw :D

EDIT: What happened? D:
You do not have the required permissions to view the files attached to this post.

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

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by chrrox » Fri Sep 28, 2012 5:52 pm

I am not sure not nearly enough information to know.
you should have about 700 or more files extracted.

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by TRDaz » Fri Sep 28, 2012 6:07 pm

chrrox wrote:I am not sure not nearly enough information to know.
you should have about 700 or more files extracted.
I have 454 files extracted D:

b0ny
mega-veteran
mega-veteran
Posts: 239
Joined: Sat May 22, 2010 10:10 am
Has thanked: 22 times
Been thanked: 118 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by b0ny » Fri Sep 28, 2012 6:26 pm

chrrox
thanks for the decrypting scripts - i thought my brains will start boiling because of all these pawerpc mnemonics :)

i think the script that exports lnk has an error. you should skip the names that belongs to attached lnk archives. these bin's have only one lnk attached, you don't have to calculate the offset, just skip 4 bytes.

Code: Select all

endian BIG
open FDDE LNK 0
open FDDE BIN 1
goto 0x8 1
get files long 1
goto 0x24 1  // you should fix it here to: "goto 0x28 1", else you'll use the archive name for the first file, and each next file will use the name of the precedent one

JayK
veteran
Posts: 123
Joined: Fri Jun 01, 2012 10:08 am
Has thanked: 31 times
Been thanked: 66 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by JayK » Fri Sep 28, 2012 6:27 pm

I had that error because I wasn't using the latest version of quickbms, but i think you are so I'm not sure, maybe try redownloading it just in case?

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Dead or Alive 5 (DOA5) Retail (X360 / PS3)

Post by TRDaz » Fri Sep 28, 2012 6:42 pm

rman2 wrote:I had that error because I wasn't using the latest version of quickbms, but i think you are so I'm not sure, maybe try redownloading it just in case?
Nah, that didnt work D:

Post Reply