FanTranslatorsInternational / Kuriimu2

Kuriimu is a general purpose game translation project manager and toolkit for authors of fan translations and game mods.
GNU General Public License v3.0
308 stars 56 forks source link

Ghost Trick IOS Image Files (.sdt) #241

Open TypeBrince opened 2 years ago

TypeBrince commented 2 years ago

Game Name: Ghost Trick: Phantom Detective (capcom) Console: IOS Format extension(s): .sdt
Type: Image

First 8 or more bytes of the file(s): [.sdt] - [hex: 73 64 74 2E 01 00 00 00] - [ASCII: sdt.☺���]

More details: Attempted to use raw image viewer feature as well as raw texture cooker and not sure whether it's bc1 or something else. Game not well documented. There may be other image within the game other than .sdt but this is what I know of. Files gained by using the quickbms script for ghost trick (albeit with a small change to allow more files to be extracted) on the "cpac2d.bin", "cpac3d.bin" and "allmotion3.pac" file and I will provide some of extracted contents in the drive link below. These sdt files were only in the cpac3d.bin as far as I've checked.

Other files include .dat files with nothing in the first bytes but 'bws' soon after, unsure what kinda files these are and whether they would be worth pursuing so I'll keep it to these ones initially.

Also provided is an image of what one of the files should in theory look like, able to deduce from what I was able to get from testing the raw image viewer which I hope may be of help

Sample files (if possible): https://drive.google.com/drive/folders/1w-lPjF09AJ8pol07NKWTp3eD4xex4apT?usp=sharing

TypeBrince commented 2 years ago

The particular file I provided a reference for has a width of 521 I believe. There may be a start offset..? The file ends too soon for that though. The palette has me confused most of all

TypeBrince commented 2 years ago

Update: Caleb and I managed to find the palette offset for that example file (0x028024) and the component order (bgr) and using I8 and RGB555 we managed to make it work (palette found near the header at the 21st byte I believe. Attempting to find the palettes for other files is difficult and I'm working on trying to get another file working which is a sprite file, probably has alpha. I'll provide a drive link with that sprite and what it's meant to look like here since I don't think I included it above... https://drive.google.com/drive/folders/1gqTuSHTLordU9bcOyxdcG8lIYOhSpg6-?usp=sharing