xdanieldzd / Scarlet

Game data conversion/export/import helper libraries - UNMAINTAINED
Other
99 stars 22 forks source link

Converting .btx for DRAE:UDG PC #8

Open quasqade opened 7 years ago

quasqade commented 7 years ago

It looks like Danganronpa Another Episode: Ultra Despair Girls for PC uses slightly modified SHTXFS format for sprites with headers SHTXFs or SHTXFf. Sprites with SHTXFs can be converted just like like SHTXFS. Sprites with SHTXFf header are without palette and use BGRA instead of RGBA. Another .btx format are compressed .dds textures that can be decompressed, resulting in DDS1DDS header. If leading DDS1 is removed so file starts with DDS, it can be opened as a .dds texture.

Examples.zip

Liquid-S commented 6 years ago

@xdanieldzd Sorry to bother you, but would you please look at this? Your code work just fine with the Vita files, however with the PC ones not, the palette is wrong. If you add this line to your code:

imageBinary.InputPaletteFormat = PixelDataFormat.FormatArgb8888;

it would work only with the PC version, however I have not idea about how to automatically distinguish the Vita files from the PC files.

I attached some examples from Vita and PC.

Vita: act_bb_todome- 0017 shtx act_bb_todome- 0018 shtx

PC: act_bb_todome-0017 shtx act_bb_todome-0018 shtx

Danganronpa Another Episode Examples.zip

quasqade commented 6 years ago

It's good that someone smarter than me figured what needs to be done, I'd really appreciate if you could fix it, @xdanieldzd

Mriwinos commented 1 month ago

@xdanieldzd Sorry to bother you, but would you please look at this? Your code work just fine with the Vita files, however with the PC ones not, the palette is wrong. If you add this line to your code:

imageBinary.InputPaletteFormat = PixelDataFormat.FormatArgb8888;

it would work only with the PC version, however I have not idea about how to automatically distinguish the Vita files from the PC files.

I attached some examples from Vita and PC.

Vita: act_bb_todome- 0017 shtx act_bb_todome- 0018 shtx

PC: act_bb_todome-0017 shtx act_bb_todome-0018 shtx

Danganronpa Another Episode Examples.zip

can you please give an example for the code thing? i don't know how it's supposed to be written