Users browsing this thread: 9 Guest(s)
[TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts!
Code:
# The Legend of Korra *.DAT
# Written By Anex For QuickBMS

idstring "DAT\x00"
get FCOUNT long
xmath CHECK "FCOUNT - 0x1"
get HEADERSIZE long
get FOLDNAMPOINTER long
get FNAMEPOINTER long
goto HEADERSIZE
savepos OFFTABLE
goto FNAMEPOINTER
get FNSIZE long
savepos FNAMETB

for i = 0 < FCOUNT
    getdstring NAME FNSIZE
    savepos FNAMETB
    goto OFFTABLE

if i == CHECK
  get OFFSET long
  goto OFFSET
  goto 0 0 SEEKEND
  savepos OFF2
  xmath SIZE "OFF2 - OFFSET"    
else
  get OFFSET long
  get OFF2 long
  xmath SIZE "OFF2 - OFFSET"
  math OFFTABLE + 0x4
endif
    log NAME OFFSET SIZE
    goto FNAMETB
next i

You can't just take the KYP script and change the first value to "DAT\x00". This archive is a completely different format than the KYP test archive.
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! - 06-19-2017, 02:00 PM

Forum Jump: