Night of azure 2 gz extraction PSVITA

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
xperiagenerator
Posts: 34
Joined: Fri Dec 23, 2016 2:57 pm

Night of azure 2 gz extraction PSVITA

Post by xperiagenerator »

Hi
i m trying to extract model from this archive
i found this bms script for the pc version but it doesnt work for the psvita

i wonder if a little fix will solve the problem


Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.html

//Decompression
comtype zlib_noerror
get NAME basename
do
   get ZSIZE long
   savepos OFFSET
   append
   clog memory_file OFFSET ZSIZE ZSIZE
   append
   math OFFSET + ZSIZE
   goto OFFSET
while ZSIZE != 0
//Extraction
goto 0x0 -1
idstring -1 "CRAE"
get UNK long -1
get TOTAL_DATA_SZ long -1
get START_TABLE long -1
get TABLE_SZ long -1
get FILES long -1
get UNK2 long -1
for i = 0 < FILES
   get OFFSET long -1
   get SIZE long -1
   getdstring NAME 0x40 -1
   log NAME OFFSET SIZE -1
next i


CH000_ALUSHE_00.elixir.gz
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Night of azure 2 gz extraction PSVITA

Post by Acewell »

that looks like one i posted on Xentax :)
http://forum.xentax.com/viewtopic.php?p=137369#p137369
anyway this works on your PSVita sample

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

idstring "CRAE"
get UNK long
get TOTAL_DATA_SZ long
get START_TABLE long
get TABLE_SZ long
get FILES long
get UNK2 long
for i = 0 < FILES
   get OFFSET long
   get SIZE long
   getdstring NAME 0x40
   log NAME OFFSET SIZE
next i
Last edited by Acewell on Tue May 08, 2018 8:28 pm, edited 1 time in total.
xperiagenerator
Posts: 34
Joined: Fri Dec 23, 2016 2:57 pm

Re: Night of azure 2 gz extraction PSVITA

Post by xperiagenerator »

it works thankyou

and yes i found it on xentax
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Night of azure 2 gz extraction PSVITA

Post by aluigi »

Script 0.3 covering all the known versions of this format:
http://aluigi.org/bms/futuremark.bms