Users browsing this thread: 11 Guest(s)
[TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts!
#26
(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 timeSmile) Thank you!
~Anex

I'll take a look real quick Smile

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 Smile

ADDED TO 3RD POST
Reply
Thanked by: Pingus!


Messages In This Thread
RE: [Tutorial] Making BMS Scripts - by Saeid0034 - 03-21-2020, 05:17 AM
RE: [Tutorial] Making BMS Scripts - by justdancer - 07-02-2016, 01:53 AM
RE: [Tutorial] Making BMS Scripts - by dionn1993 - 07-10-2019, 12:06 AM
RE: [Tutorial] Making BMS Scripts - by SKYHAMSTER - 08-06-2020, 06:06 AM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 08:19 AM
RE: [Tutorial] Making BMS Scripts - by Shade - 11-18-2015, 05:31 PM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 05:04 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 06:59 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 10:42 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-24-2015, 08:14 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-24-2015, 08:57 PM
RE: [Tutorial] Making BMS Scripts - by nobody231 - 12-24-2015, 09:01 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-25-2015, 06:36 AM
RE: [Tutorial] Making BMS Scripts; Post and get help with your BMS scripts! - by Struggleton! - 01-04-2016, 06:42 PM

Forum Jump: