Users browsing this thread: 1 Guest(s)
[TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts!
Certainly!
So firstly I ignored the first byte, because it didn't really correspond to anything.

The next byte (One before the name you see there in the archive with the extension) corresponds to the length of each file name when you highlighted it. So i used the command:

getdstring NAME FNAMELENGTH

the fnamelength, being from the byte we grabbed from before.

now another issue we faced is that the offset data was weird. Because, it was padded/aligned data, so we needed to skip over those 0's until we got to the offset, which came after that "20" value. So, i wrote that little do while statement in order to skip over the zero's, until it grabbed the 20 byte and broke as the condition becomes false, as the byte grabbed is no longer a zero.


The script then starts off at the position one byte after the "20" byte, which would be the size value, followed by the offset value. The way i checked this was, the first value had an offset of 0x270 (it was in little endian). So i jumped to that position and the file began after the filenametable. From there, i took the last value and added it to the offset, to check if it was the size. It was, as it was 0x2 bytes under the next supposed offset in the data table.



Then i saved the file using the log command, then started again at the top with grabbing the null byte(the script loops). and continued to loop until it broke out to an incorrect file input size value, which ends after all the files have been read.
Reply
Thanked by:


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 Pingus! - 03-18-2017, 11:25 PM

Forum Jump: