SHARE
TWEET

V2L Extractor QuickBMS script

LuigiBlood May 31st, 2014 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ComType pkware
  2. Endian little
  3. Set NumsData SHORT 0
  4. Set Offset LONG 0 'Offset Used for Data Table.
  5. Set OffsetToDATA LONG 0 'Offset Used for getting uncompressed size and real data offset.
  6. Set DataOffset LONG 0 'Fake Offset from Data Table
  7. Set DataREALOffset LONG 0 'REAL Offset from OffsetToDATA (+4)
  8. Set DataCMPSize LONG 0 'Compressed Size from DATA Table
  9. Set DataREALCMPSize LONG 0 'REAL Compressed Size from DATA Table (-4)
  10. Set DataSize LONG 0 'Uncompressed Size from DATA.
  11. 'Set DATA_NAME String ""
  12. Set Test Byte 0 'Used for testing which offset the DATA Table begins.
  13. Get EXT EXTENSION
  14.  
  15. 'Offset 0x32 if "RICKBO"; Offset 0xB4 if "Memory".
  16. Get Test Byte
  17. If Test == 0x4D 'If it's a M
  18.         GoTo 0xa1
  19.         Math Offset += 0xa1
  20. Elif Test == 0x52 'If it's a R
  21.         GoTo 0x1f
  22.         Math Offset += 0x1f
  23. EndIf
  24. Get NumsData SHORT
  25. Math Offset += 23
  26. GoTo Offset
  27. For i = 1 <= NumsData
  28.         Get DataOffset Long 0
  29.         Get DataCMPSize Long 0
  30.         Math Offset += 8
  31.         GetDString DATANAME 15 0
  32.         Math Offset += 15
  33.         Math Offset += 4
  34.         If EXT == ""
  35.                 Math DataOffset += 4
  36.         EndIf
  37.         If DATANAME == "E_BOW126"
  38.                 Math DataOffset += 34
  39.         EndIf
  40.         If DATANAME == "E_BOW127"
  41.                 Math DataOffset += 11
  42.         EndIf
  43.         Set OffsetToDATA DataOffset
  44.         GoTo OffsetToDATA
  45.         Get DataSize Long
  46.         Set DataREALOffset DataOffset
  47.         Set DataREALCMPSize DataCMPSize
  48.         Math DataREALOffset += 4
  49.         Math DataREALCMPSize -= 4
  50.         If DataSize <= 500000
  51.                 If DATANAME <> "CONTROL_S"
  52.                         CLog DATANAME DataREALOffset DataREALCMPSize DataSize
  53.                 EndIf
  54.                 If DATANAME == "ALABELS_S"
  55.                         Log DATANAME DataOffset DataCMPSize
  56.                 EndIf
  57.         Else
  58.                 Log DATANAME DataOffset DataCMPSize
  59.         EndIf
  60.         Math DataOffset += DataCMPSize
  61.         GoTo Offset
  62. Next
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top