(01-04-2016, 06:42 PM)ThatTrueStruggle Wrote:(01-04-2016, 05:19 PM)Anexenaumoon Wrote: Hello all, I'm VERY close to getting this archive extracting all of the files. I've determined the endiness, and I know that there's an error in my loop, could anyone help me figure this out? Here's what I've got so far:
Code:endian big
idstring "VAGp\x00"
get archiveSize long
get unkownValue long
get null long
for i = 0 < fileCount
get pointer long
get length long
getdstring name 0x4
log name pointer long
next i
Here's a file sample:
http://www.filedropper.com/sfx
These are all probably supposed to be audio files, but I could seriously use some help re-writing a new script. (Sorry first time) Thank you!
~Anex
I'll take a look real quick
Code:endian big
for FILES = 0
FindLoc VAGOffset string "VAGp"
goto VAGOffset
idstring "VAGp"
get twenty long
get null long
get fileSize long
get unk long
get null longlong
get null long
get filename string
do
get single byte
while single == 0
savepos dataStart
math dataStart - 1
log filename dataStart fileSize
next FILES
Since there isn't a defined file count, I did it this way. Gets file names and extracts the file. If you need help understanding the script, you can ask for help. Also there are files in the archive with the same file name, so select the option to rename the same named ones
ADDED TO 3RD POST
Thank you very much for all of that .Thanks man! Now one more question, how would these be opened into sound files? EDIT: I think I get what you did with the script . This is a new learning process for me hehe