+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  (NDS) Hotel Dusk Room 215. Need help to text extract
Pages: [1]
Author Topic: (NDS) Hotel Dusk Room 215. Need help to text extract  (Read 1 times)
pedro_
Guest
« on: November 03, 2010, 09:30:13 am »

Hi guys. I want to translate game into my language. I found fonts and text. With fonts i do not have problems. Text located is in the textdata_usa.wpf, i think this is the archive that located many small files, i thought edit the text without unpacking, right through hex-editor, but.. i see text with missing some words.

pics from yerenkow


maybe can somebody help me with compress/decompress the text?
sorry if in my post a lot of mistakes  Smiley
« Last Edit: November 03, 2010, 09:36:13 am by pedro_ »
Tauwasser
Guest
« Reply #1 on: November 03, 2010, 09:46:08 am »

Chances are it's a sliding window compression if the text gets more and more unintelligible towards the end. To say anything more about it, you'd really have to show us the file header etc.

cYa,

Tauwasser
pedro_
Guest
« Reply #2 on: November 03, 2010, 10:39:29 am »

ok.

this is should help
Quote from: yerenkow-gbatemp
12 3D DA - header;
01/00 - type of file;
4 next bytes = unknown yet;
8 bytes = size of used part of file (adding to this number 16, increasing to nearest number, which divide on 16, and this is real filesystem size)

1byte = some flag; (in filetype 01 there are three of these flags: FF,FD,FB)
2 bytes = count of pointers with offsets (could be 1 byte instead of two, maybe there are resemblance with previous flag)
3 bytes = another header, common for many files;
1 byte = unknown;
After that, starts pointer table with such structure:
[2 bytes offset][2 bytes pointer] FF (delimeter)
[2 bytes offset][2 bytes pointer][2 bytes offset][2 bytes pointer] FF (delimeter)
....
[2 bytes offset][2 bytes pointer][2 bytes offset][2 bytes pointer] FF (delimeter)
[2 bytes offset][2 bytes pointer] (can be leading 00 00)

Count of pointers and offsets can be even, so table will ends after FF.

Text starts in point 16 + (count of pointers with offsets)*9/2

and the file http://www.datafilehost.com/download-9b124f15.html
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC