Dragon Quest 3

How to translate the files of a game
cyberdog
Posts: 12
Joined: Mon Nov 23, 2020 6:42 am

Dragon Quest 3

Post by cyberdog »

Hello everyone.
Sorry for noob questions, but i try to extract text from dq3.
1. I successfully unpacked a game and extract resource files.
2. I found a text file without extensions, i introspect it with hex.

I also successfully unpacked and translate dq1 - dq2 with scripts from this site and help community in this topic

But provided scripts doesn't work properly, because it's little bit different format.
Maybe somebody help me with direction where to dig, or provide script for unpack/pack text data.
I attach text.bin for researching, thanks a lot for reading
Last edited by cyberdog on Sat Jan 14, 2023 7:01 am, edited 1 time in total.
cyberdog
Posts: 12
Joined: Mon Nov 23, 2020 6:42 am

Re: Dragon Quest 3

Post by cyberdog »

Some insights:
1. Byte direction big indian
2. The file is not encrypted
3. The file is not an archive
4. Each line of text begins with bytes 00 00 ??, these bytes indicate the number of characters in the line, towards the end there is 00 ?? which breaks the script from dq1\dq2
6. The data structure is very similar to dq1\dq2, but have additional structure
7. First letters in file - Japanese, English next
cyberdog
Posts: 12
Joined: Mon Nov 23, 2020 6:42 am

Re: Dragon Quest 3

Post by cyberdog »

I finally did it with python, but it's crazy unpacking and packing, maybe somebody can rewrite it on beautiful Quickbms?
I publish script on: https://pastebin.com/NTMyQ2Gk