Game:http://store.steampowered.com/app/503400/Four_Last_Things/
Four Last Things - vbin
-
- Posts: 233
- Joined: Thu Oct 16, 2014 4:39 pm
Re: Four Last Things - vbin
Try the quickbms scripts. Use both on the ogg file. Don't delete the NULL from end of string.
Export
Import
Export
Code: Select all
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
goto 2160153
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
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: Select all
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
set offset2 2160153
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
-
- Posts: 77
- Joined: Wed Oct 08, 2014 1:03 pm
Re: Four Last Things - vbin
Thanks a lot swuforce!