Page 1 of 1

Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Tue Dec 08, 2015 12:16 pm
by Fedor
No need anymore.

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Wed Dec 09, 2015 12:51 am
by emu_kidid
Upload what you believe is a "compressed" image on here in a zip file and someone will be able to work it out. You say they're just .bmp on PS2, but on GameCube they might be TPL.

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Wed Dec 09, 2015 9:55 am
by Fedor
files are deleted

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Wed Dec 09, 2015 6:42 pm
by Fedor
files deleted

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Thu Dec 10, 2015 3:37 am
by tueidj
Gonna take a wild guess here: if you've got two identically sized files and the PS2 version can be opened and the NGC version can't, the tool you're using probably can't handle big-endian data.

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Wed May 11, 2016 3:11 am
by Fedor
no need anymore

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Wed May 11, 2016 4:05 am
by emu_kidid
I had a quick look, the .txs sfiles need to be flipped every 4 bytes as you've discovered. When you then run it through the Texture tool, the files that come out the other end are incorrect as you say, most likely because the format the decompressed files store the data in is GameCube specific rather than just 8-bit per pixel bitmap data.

It looks like the texture tool has some smarts to it because it correctly recognises that the GameCube format is different and tries to produce a 4-bit per pixel bitmap image. If someone with a bit of time can be bothered, and if you are able to get the source code from the texture tool, this will probably be fairly easy to do.

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Thu May 12, 2016 5:28 am
by Fedor
files deleted

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Thu May 12, 2016 6:25 am
by novenary
Dolphin can only extract and replace textures once the game's own logic has decoded them. Wouldn't be useful on hardware

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Thu May 12, 2016 6:36 am
by Fedor
no need

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Posted: Thu May 12, 2016 10:37 am
by tueidj
The textures are probably compressed, indexed or low bit depth and getting converted to RGB32 before being dumped as bitmaps.