Page 1 of 1

DEAD OR ALIVE XTREME 3: SCARLET

Posted: Fri Mar 22, 2019 4:33 pm
by chrrox
Here is a quickbms script to extract this game.
Image

Code: Select all

#script by chrrox
#use quickbms
#http://aluigi.altervista.org/quickbms.htm
open FDSE "package_data.bin" 1
comtype zlib_noerror
goto 0x68 1
get FILES long 1
goto 0x80 1
get NSTART1 long 1
get LNKNAME1 long 1
get UNK long 1
get SEC3START long 1
math LNKNAME1 + 0x90
savepos TMP 1
goto LNKNAME1 1
get REMOVE string 1
string REMOVE + /
get LNKFILE string 1
string LNKFILE R REMOVE ""
open FDSE LNKFILE
goto TMP 1
for i = 0 < FILES
set MEMORY_FILE2 binary ""
set MEMORY_FILE3 binary ""
goto TMP 1
get HASH long 1
get UNK1 long 1
get NOFF long 1
get UNK2 long 1
get UNK3 long 1
get FLAG long 1
get UNK4 longlong 1
get UNK5 long 1
get UNK5 long 1
get FBASE long 1
savepos TMP 1
math NOFF + 0x90 1
math NOFF + NSTART1 1
goto NOFF 1
get NAME string 1
#print "%NAME%"
math FBASE * 0x20
math FBASE + 0x20
    goto FBASE
    get OFFSET longlong
    get SIZE longlong
    get ZSIZE longlong
    get COMP longlong
    #print "1 %OFFSET% %SIZE% %ZSIZE% %COMP%"
    if SIZE > ZSIZE
      log MEMORY_FILE2 OFFSET ZSIZE
      append
      do
        get CSIZE long MEMORY_FILE2
        savepos COFF MEMORY_FILE2
        #print "Yay %SIZE% %COFF% %CSIZE%"
        if SIZE > 0x4000
          math CSIZE & 0x7FFF
          #print "%COFF% %CSIZE%"
          clog MEMORY_FILE3 COFF CSIZE 0x4000 MEMORY_FILE2
          math SIZE - 0x4000
          math COFF + CSIZE
          goto COFF MEMORY_FILE2
          padding 16 MEMORY_FILE2
        else
          math CSIZE & 0x7FFF
          clog MEMORY_FILE3 COFF CSIZE SIZE MEMORY_FILE2
          math SIZE - SIZE
        endif
      while SIZE > 0
    append
    get TSIZE asize MEMORY_FILE3
    log NAME 0 TSIZE MEMORY_FILE3
    else
      log NAME OFFSET ZSIZE
    endif
next i

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sat Mar 23, 2019 4:37 pm
by chrrox
Here is a script to extract the ktss files from the xhs files.
You can then play them with vgmstream

Code: Select all

#script by chrrox
#use quickbms
#http://aluigi.altervista.org/quickbms.htm
get ARC basename
goto 0x14
get FILES long
savepos TMP
for i = 0 < FILES
goto TMP
get OFFSET long
savepos TMP
goto OFFSET
get NULL long
get SIZE long
set NAME ARC
string NAME + i
string NAME + .ktss
log NAME OFFSET SIZE
next i

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sat Mar 23, 2019 6:32 pm
by TerryXX
Hi chrrox, these scripts work on which version, ps4 or Switch?

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sat Mar 23, 2019 7:56 pm
by chrrox
switch version there is no way to get ps4 files.

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sun Mar 24, 2019 12:00 am
by TerryXX
Hi chrrox, so the version I have of the game the file ends with .nsp I extracted the files with a python script "nspx.py", but the files are not .bin I tried to rename but obviously your script gave me an error, I need to do some specific procedures to create these .bin files?
Thx.

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sun Mar 24, 2019 11:49 am
by chrrox
You need to use hactool to extract to raw files.
just google extract nsp and the first result will give you tools.
you want version 1.6 of the bat file
NCA-NSP-XCI_TO_LayeredFS.bat

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sun Mar 24, 2019 4:36 pm
by TerryXX
Sorry if I still bother you chrrox but I found yet another error :( so I extracted the .bin file and renamed to package_data.bin, load quickbms_4gb_files select our script etc etc but this error happens:

error in src\file.c line 487: fdnum_open()
Error= No such file or directory

Last script line before the error or that produced the error:
20 open FDSE LNKFILE

Definitely I skip something but I don't know what :(

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sun Mar 24, 2019 5:38 pm
by chrrox
You should never need to rename any files they will show up when you extract the nca correctly

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Sun Mar 24, 2019 10:31 pm
by TerryXX
Eureka, after several attempts I understood what I was wrong I used the command Romfs.bin instead of Romfs Folder, I am trying to extract also the various dlc and for now everything seems to work, thx again chrrox.

Re: DEAD OR ALIVE XTREME 3: SCARLET

Posted: Tue Mar 26, 2019 1:35 pm
by xperiagenerator
@chrrox
How to open tmc/tmcl files of the game?