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

Decrypt SHTX and SHTXFS before convert them to PNG. #3

Closed
Liquid-S opened this issue Nov 29, 2016 · 7 comments
Closed

Decrypt SHTX and SHTXFS before convert them to PNG. #3

Liquid-S opened this issue Nov 29, 2016 · 7 comments

Comments

@Liquid-S
Copy link

There are lots of images in Danganronpa 1, 2 and Another Episode for PSVITA that are encrypted, so I was wondering whether you could add to your tool the code done by BlackDragon --> https://github.com/BlackDragonHunt/Danganronpa-Tools/blob/master/dr_dec.py
That way it won't be necessary anymore to use dr_dec.py before using your tool and users won't need to install python either.

@xdanieldzd
Copy link
Owner

Added in commit ad79158, based on BlackDragonHunt's script. I've only tested this with about 100 files from Danganronpa Another Episode that I have here, but these all appear to decompress, and of course convert to PNG correctly.

I'm still considering this not well tested yet, tho, so if you're able to build Scarlet yourself, it would be great if you could maybe test more files from the other games, and give some feedback as to whether they convert properly or not.

@Liquid-S
Copy link
Author

Liquid-S commented Nov 30, 2016

Thank you very much for adding the decompression!
I'm gonna test the tool, don't worry!

There are some black lines in some images. These ones are from DR2 (PSVITA) and they are gxt files compressed.
I can send you the files, if you need them.
screenshot 2016-11-30 19 35 33

PS: The tool doesn't delete the decompressed images after convert them to png.

@xdanieldzd
Copy link
Owner

It would be great if you could ex. pack up and upload any files that have issues, such as these black lines.

As for the tool not deleting the decompressed images, the way it currently works might not lend itself to automatically deleting them, but I'll have a look into making that an option.

@Liquid-S
Copy link
Author

Liquid-S commented Dec 5, 2016

Inside this zip you can find some of those files with black and grey lines.
fla_411.zip

Understood, thank you!

@xdanieldzd
Copy link
Owner

Possibly fixed the black lines with commit 8bd483d. This still needs more testing with GXTs from other games, tho, as there's a chance that I might've broken conversion of some of them. I'll be doing that later today or tomorrow but so far it's looking alright, with previously problematic images from ex. Dengeki Bunko Fighting Climax and Puyo Puyo Tetris still converting fine.

Do feel free to try out this latest commit and check if you're still getting lines in any of the Danganronpa GXTs!

temp473

@Liquid-S
Copy link
Author

Everything seems to be ok with the DR GXTs.
Thank you very much!

@xdanieldzd
Copy link
Owner

xdanieldzd commented Jan 6, 2017

Hm, I had to revert 8bd483d because it turned out to be causing problems with GXTs from various other games. So, for the Danganronpa GXTs, you should stay on that commit until I've worked out the correct fix for this issue; I'll also keep this report open.

Edit: commit a55415a redid some logic, and has hopefully fixed the Danganronpa GXTs without breaking any others. These, along with various GXTs from other games as listed in that commit's description, have been tested and work fine now. I hope I'll never have to mess around with that logic again, but with my luck, who knows :P

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

2 participants