ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Dec 14, 2017 12:15 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Aug 18, 2017 3:26 pm 

Joined: Wed Oct 08, 2014 1:03 pm
Posts: 30
Game: http://store.steampowered.com/app/219910/

Image


Attachments:
00001695.ogg [3.35 MiB]
Downloaded 23 times
Top
   
PostPosted: Wed Aug 23, 2017 9:37 am 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 146
Try the quickbms scripts. Use both on the ogg file. Don't delete the NULL from end of string.
Export
Code:
goto 8
get name basename
string name += .dat
get size long
get zsize long
clog name 16 zsize size
open FDSE name
log MEMORY_FILE 0 0
get name basename
string name += .txt
set end 0
do
findloc offset string "\xff\xff\xff\xff\x04\x00\x00\x00" 0 ""
if offset == ""
cleanexit
endif
math offset -= 8
goto offset
get var1 long
get var2 long
if var1 != var2
getdstring d 8
else
getdstring d 8
get size long
savepos pos
get check byte
get check2 byte
get check3 byte
get check4 byte
if check = 0x00 ||  check = 0xff || check2 = 0x00 || check2 = 0xff
elseif check3 != 0x00 &&  check3 != 0xff && check4 != 0x00 && check4 != 0xff
set end 1
endif
endif
while end == 0
findloc offset string "\xb5\x4a\x05\x06" 0 "" 0
math offset += 4
goto offset
get files long
for i = 1 to files
get size long
getdstring string size
getdstring dummy 12
get number long
for n = 1 to number
get size long
getdstring string size
get size2 long
getdstring dummy size2
get dummy long
if size > 0 && n = 2
putdstring string size MEMORY_FILE
put 0x0a0d short MEMORY_FILE
endif
next n
next i
get size asize MEMORY_FILE
log name 0 size MEMORY_FILE


Import
Code:
log MEMORY_FILE3 0 8
get name basename
get name2 filename
string name += .dat
open FDSE name
get name basename
string name += .txt
open FDSE name 1
log MEMORY_FILE 0 0
get asize asize
set offset1 0
set end 0
do
findloc offset2 string "\xff\xff\xff\xff\x04\x00\x00\x00" 0 ""
if offset2 == ""
cleanexit
endif
math offset2 -= 8
goto offset2
get var1 long
get var2 long
if var1 != var2
getdstring d 8
else
getdstring d 8
get size long
savepos pos
get check byte
get check2 byte
get check3 byte
get check4 byte
if check = 0x00 ||  check = 0xff || check2 = 0x00 || check2 = 0xff
elseif check3 != 0x00 &&  check3 != 0xff && check4 != 0x00 && check4 != 0xff
set end 1
endif
endif
while end == 0
findloc offset2 string "\xb5\x4a\x05\x06" 0 "" 0
math offset2 += 4
goto offset2
get files long
for i = 1 to files
get size long
getdstring string size
getdstring dummy 12
get number long
for n = 1 to number
savepos offset2
get size long
getdstring string size
if size > 0 && n = 2
xmath dsize "offset2 - offset1"
append
log MEMORY_FILE offset1 dsize
append
get msize asize MEMORY_FILE
goto msize MEMORY_FILE
getct string string 0x00 1
get ad short 1
strlen len string
math len += 1
put len long MEMORY_FILE
putdstring string len MEMORY_FILE
savepos offset1
get size2 long
getdstring dummy size2
get dummy long
else
get size2 long
getdstring dummy size2
get dummy long
endif
next n
next i
xmath dsize "asize - offset1"
append
log MEMORY_FILE offset1 dsize
append
get size asize MEMORY_FILE
comtype zlib_compress
clog MEMORY_FILE2 0 size size MEMORY_FILE
get zsize asize MEMORY_FILE2
goto 8 MEMORY_FILE3
put size long MEMORY_FILE3
put zsize long MEMORY_FILE3
append
log MEMORY_FILE3 0 zsize MEMORY_FILE2
append
get size asize MEMORY_FILE3
log name2 0 size MEMORY_FILE3

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Thu Aug 24, 2017 7:22 am 

Joined: Wed Oct 08, 2014 1:03 pm
Posts: 30
Thanks a lot swuforce, I'm finally going to be able to end the translation of this game begun with the old cxml file. :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited