Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting .btx for DRAE:UDG PC #8

Open
quasqade opened this issue Jun 29, 2017 · 3 comments
Open

Converting .btx for DRAE:UDG PC #8

quasqade opened this issue Jun 29, 2017 · 3 comments

Comments

@quasqade
Copy link

quasqade commented Jun 29, 2017

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
Copy link

Liquid-S commented Jul 4, 2018

@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
Copy link
Author

quasqade commented Jul 4, 2018

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
Copy link

Mriwinos commented Sep 1, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants