Dreamfall The Longest Journey [PAK files]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
MuslimCyberGames
Posts: 220
Joined: Sun Nov 06, 2016 3:28 pm

Dreamfall The Longest Journey [PAK files]

Post by MuslimCyberGames »

Image
Dreamfall: The Longest Journey (GOG)

Hello, can anyone make some bms script for extracting this game files?

This game made from Shark 3D Engine from SPINOR

I just want to research and examine the Localization files.

This some Header (I guess?):
Image

I attach some files for sample test: Common Files (116MB)

Thanks for help.
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Dreamfall The Longest Journey [PAK files]

Post by h3x3r »

For unpacking *.pak files

Code: Select all

####################################
get FILENAME basename
idstring "tlj_pack0001"
get FILES long

for i = 0 < FILES
   get UNK0 long
   get UNK1 long
   get OFFSET long
   get SIZE long
   get UNK2 long
   string NAME p= "%s/%08x.dat" FILENAME OFFSET
   savepos TMP
   if SIZE > 0
      goto OFFSET
      get SIGN0 long
      get SIGN1 short
      goto OFFSET
      get STRSIGN string
      if SIGN0 == 542327876
         string NAME p= "%s/%08x.dds" FILENAME OFFSET
      elif SIGN0 == 796160609
         string NAME p= "%s/%08x.font" FILENAME OFFSET
      elif SIGN0 == 1179011410
         string NAME p= "%s/%08x.wav" FILENAME OFFSET
      elif SIGN0 == 1430672467
         string NAME p= "%s/%08x.uft" FILENAME OFFSET
      elif SIGN1 == 28261
         string NAME p= "%s/%08x.loc" FILENAME OFFSET
      elif STRSIGN == shark3d_snake_binary
         string NAME p= "%s/%08x.bin" FILENAME OFFSET
      endif
      log NAME OFFSET SIZE
   endif
   goto TMP
next i

Loc file is serialized in a way i don't understand how to output.
There are 14016 ID's and 14016 offsets. But string references count is only 10040. In a short table uses multiple same offsets for one string reference with ID's combination.
MuslimCyberGames
Posts: 220
Joined: Sun Nov 06, 2016 3:28 pm

Re: Dreamfall The Longest Journey [PAK files]

Post by MuslimCyberGames »

Okey, I'm gonna to tried now.

Thanks for helping, btw.