SHARE
TWEET

eso_mnf_blocksonly.bms

Byvar Oct 4th, 2013 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. idstring 0 "MES2"
  2. get NAME basename 0
  3.  
  4. endian little
  5. get DUMMY short 0
  6. get NUMBER_DAT_FILES byte 0
  7. get DUMMY long 0
  8. get EOF_OFFSET long 0
  9. goto 0x0A 0 SEEK_CUR #unknown part
  10. endian big
  11. comtype ZLIB
  12. get FILECOUNT long 0
  13. goto 0x4 0 SEEK_CUR #2nd file count
  14.  
  15. get BLOCK_SZ long 0 #block 1 size
  16. get BLOCK_ZSZ long 0 #block 1 compressed size
  17. savepos OFFSET 0
  18. get NAME basename 0
  19. string NAME += "_1.mes2"
  20. clog NAME OFFSET BLOCK_ZSZ BLOCK_SZ 0
  21. goto BLOCK_ZSZ 0 SEEK_CUR #skip zlib block
  22.  
  23. get BLOCK_SZ long 0 #block 2 size
  24. get BLOCK_ZSZ long 0 #block 2 compressed size
  25. savepos OFFSET 0
  26. get NAME basename 0
  27. string NAME += "_2.mes2"
  28. clog NAME OFFSET BLOCK_ZSZ BLOCK_SZ 0
  29. goto BLOCK_ZSZ 0 SEEK_CUR #skip zlib block
  30.  
  31. get BLOCK_SZ long 0 #block 3 size
  32. get BLOCK_ZSZ long 0 #block 3 compressed size
  33. savepos OFFSET 0
  34. get NAME basename 0
  35. string NAME += "_3.mes2"
  36. clog NAME OFFSET BLOCK_ZSZ BLOCK_SZ 0
  37. goto BLOCK_ZSZ 0 SEEK_CUR #skip zlib block
  38.  
  39. savepos OFFSET 0
  40. print %OFFSET%
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
Top