I'm trying to extract Rift .pak files with the following script:
Code: Select all
get VERSION long 
get PAKSIZE long 
get UNKNOWN long 
get TABLESIZE long 
math FILES = TABLESIZE 
math FILES /= 0x3c 
for i = 1 to FILES 
  getdstring TRASH 0xc 
  get HASH long 
  get NULLS long 
  get ZSIZE long 
  get SIZE long 
  get UNKNOWN long 
  get OFFSET long 
  getdstring TRASH 0x18 
  string NAME p= "%08X" HASH 
  if ZSIZE == SIZE 
    log NAME POINTER SIZE 
  else 
    clog NAME POINTER ZSIZE SIZE 
  endif 
next i  
but I get the error:
Code: Select all
  
  offset           filesize   filename
--------------------------------------
  0000000000000000 672136     6A7B69CD
Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      0000000000000000
       input size  0x000000000004184b 268363
       output size 0x00000000000a4188 672136
       result      0xffffffffffffffff -1
Error: the uncompressed data (-1) is bigger than the allocated buffer (672136)
Last script line before the error or that produced the error:
  22  clog NAME POINTER ZSIZE SIZE
  Can anyone help please?