02-12-2019, 06:09 PM
(02-10-2019, 06:32 PM)Pingu! Wrote: Download vgmstream:
vgmstream
Make sure you get "test.zip"
Unzip this file and drop it into the root folder of vgmstream (where "test.exe" is located):
Finally extract the provided samples using this QuickBMS script. Copy and paste this code into a txt file and run it with QuickBMS. (QuickBMS can be found here):
Code:idstring "SGXD"
get NULL long
get OFFSET long
get NULL long #timestamp?
idstring "WAVE"
get NULL longlong
get ENTRIES long
get ZERO long
for i = 0 < ENTRIES
get FNOFF long
savepos CUR_OFF
goto FNOFF
get NAME string
goto CUR_OFF
get NULL long
get FREQUENCY long
goto 0x1c 0 SEEK_CUR #skip
get SIZE long
goto 0xC 0 SEEK_CUR #another skip
string NAME += ".dat"
log MEMORY_FILE 0 4
putvarchr MEMORY_FILE 0 FREQUENCY long
log MEMORY_FILE2 0 4 MEMORY_FILE
append
log MEMORY_FILE2 OFFSET SIZE
append
get FSZ asize MEMORY_FILE2
log NAME 0 FSZ MEMORY_FILE2
math OFFSET + SIZE
next i
Once you finish that, you should be able to drag the .dats onto "test.exe" in the vgmstream folder, and they will convert to wav.
While I was able to convert them to .wav files, another problem arose. The sounds themselves just broken garbled messes.