Gender: None specified
Rank: Desk Jockey
Joined: Sat Dec 17, 2011 9:34 am
So yeah, *.out files. Anyone have any information about the file format of those to share? Obviously it is an archive file format, but it doesn't look like it is any stock file format, so we will have to write a custom reader for it.
The files seem to contain a table of some sort in the beginning, most likely a pointer table. But I can not find any useful pointers in it.
Here's how I read the .out files:
The first 2 bytes are the number of files (big endian)
Then there's the length of each file (4 bytes per file, big endian)
Then each file.
It's quite simple actually.
All the part*.out files are organized the same way. They all have 5 files:
- File 0 is another "out" archive containing the game script and more data that I don't understand
- File 1 is another "out" archive that contains "IAN" archives that contain the sprite sheets in PNG format
- File 2 is another "out" archive that contains the backgrounds, evidence pictures and such in PNG format
- Files 3 & 4 are lists of music or something
As far as I can tell, the scripts are all in file 14 (counting from 0) of File 0 of each part*.out archive. They are encoded with Shift-JIS. I managed to read a few lines, but the format is not straightforward so more research is needed.
(There are also other files in File 0 that look like they are encoded with Shift-JIS, but I haven't tried to read them.)
IAN archives are another format. I'm not totally sure, but it looks like this:
The first 3 bytes are "IAN", then there's a byte that's either 04 or 05, then a byte that's the length of a string, then said string, then a byte that's the number of files in the archive, then an unknown byte. After that, for each file there's 2 unknown bytes, then the file length (4 bytes, big endian) directly followed by the data of that file. The files are usually PNGs, but there's also a GIF and a few unknown files.
After the last file, at the end of the IAN archive, there is more data. Somehow I assume it's the animation data, but I haven't tried to look into it.
Now that I've tried to read the other text files: in File 0 (first file of the main archive), file 1 seems to be the text of the evidence and profiles, file 19 (when it exist) contains the location names, and file 21 (when it exist) seem to be the names of the topics of discussion when you talk to a character. They are all encoded with Shift-JIS as expected.
Last edited by Jozerick on Tue Feb 14, 2012 1:21 pm, edited 1 time in total.