How does TRES translate the text in. dat file header [Zack and Wiki Quest for Barbaros Treasure]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
wjm456
Posts: 2
Joined: Sat Sep 28, 2019 1:34 pm

How does TRES translate the text in. dat file header [Zack and Wiki Quest for Barbaros Treasure]

Post by wjm456 »

msgENG.dat

Hello, how to extract the text from this dat file? We need to translate the text and package it into a dat file. We need this tool software.
The game is Zack and Wiki Quest for Barbaros Treasure
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How does TRES translate the text in. dat file header [Zack and Wiki Quest for Barbaros Treasure]

Post by aluigi »

Script for quickbms

Code: Select all

endian big
idstring "TRES"
get STRINGS long
get TOC_SIZE long
get STRINGS_OFF long
savepos BASE_OFF
for i = 0 < STRINGS
    get OFFSET long
    getdstring DUMMY 12
    math OFFSET + BASE_OFF
    math OFFSET + STRINGS_OFF
    slog "" OFFSET -1
next i
wjm456
Posts: 2
Joined: Sat Sep 28, 2019 1:34 pm

Re: How does TRES translate the text in. dat file header [Zack and Wiki Quest for Barbaros Treasure]

Post by wjm456 »

aluigi wrote:Script for quickbms

Code: Select all

endian big
idstring "TRES"
get STRINGS long
get TOC_SIZE long
get STRINGS_OFF long
savepos BASE_OFF
for i = 0 < STRINGS
    get OFFSET long
    getdstring DUMMY 12
    math OFFSET + BASE_OFF
    math OFFSET + STRINGS_OFF
    slog "" OFFSET -1
next i

Thank you very much.