Help extracting RIFT (Trion) .pak files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
kyrandi
Posts: 1
Joined: Mon May 09, 2016 2:37 am

Help extracting RIFT (Trion) .pak files

Post by kyrandi »

Hello,

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?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help extracting RIFT (Trion) .pak files

Post by aluigi »

Please provide a sample file.

Note for Ekey: that script is yours:
http://www.progamercity.net/game-files/ ... cript.html
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help extracting RIFT (Trion) .pak files

Post by Ekey »

Yup