-
Notifications
You must be signed in to change notification settings - Fork 1
TXT
Jocelyn Beedie edited this page Nov 28, 2020
·
2 revisions
Text files, which usually have the type_id
of "TXT" (although not all files with a type_id
of "TXT" are text files; for example, Python scrips have a type of "TXT" too), have a special format:
struct Text {
uint32_t size;
char text[size];
};
Essentially, the first four bytes are the size of the file, and the rest of the file's data is the text content itself.
The Python scripts in the game are written in Python 2.2. Scripts can be decompiled using uncompyle6.
Some TXT files have the extension ".TRS". These files are used by Jimmy Neutron: Boy Genius to store translation data for each level. Each TRS file contains many smaller text files, but the exact format is unknown.