Petschko / RPG-Maker-MV-Decrypter

You can decrypt RPG-Maker-MV Resource Files with this project ~ If you don't wanna download it, you can use the Script on my HP:
https://petschko.org/tools/mv_decrypter/
MIT License
647 stars 107 forks source link

File-Header is messed up #1

Closed Petschko closed 2 years ago

Petschko commented 7 years ago

I've got an E-Mail of somebody who get only cryptic stuff as decrypt-result. It seems that the file is decrypted but the header is messed up.

I asked for files to reproduce the problem but for me it was decrypted like normal. Maybe some other have the same issue please tell me here!

The bad result look like this: `‰PNG

��� IHDR�� °�� Ð ���€ ‰¯��� pHYs�� Ä�� Ä •+ ��9ìiTXtXML:com.adobe.xmp�����<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>

Adobe Photoshop CC 2015.5 (Windows) 2016-07-13T00:34:07+02:00 2016-07-13T00:37+02:00 2016-07-13T00:37+02:00 image/png 3 xmp.iid:5e95182a-00f0-6547-87c8-7448816dbccc adobe:docid:photoshop:1be91543-4881-11e6-a4c6-f9df7db8ff39 xmp.did:f215f640-69ff-bc4f-9f59-da40c09785c5 created xmp.iid:f215f640-69ff-bc4f-9f59-da40c09785c5 2016-07-13T00:34:07+02:00 Adobe Photoshop CC 2015.5 (Windows) saved xmp.iid:5e95182a-00f0-6547-87c8-7448816dbccc 2016-07-13T00:37+02:00 Adobe Photoshop CC 2015.5 (Windows) / 1 960000/10000 960000/10000 2 65535 1200 720 `
Petschko commented 7 years ago

Please tell me if somebody is able to reproduce this problem... Please tell me which Browser (+Version) you use. Please also tell me your OS. I need more information to remove this bug because I'm not able to reproduce it...

Petschko commented 7 years ago

Bug occours on:

Petschko commented 7 years ago

Bug seems to appear only in chrome

Petschko commented 7 years ago

Checked this one again. You can't view it in the Browser. But if you Download it, you get the right image... so its works, may Google-Chrome has some problems displaying blob-files?

r4sas commented 2 years ago

A little hint where to dig: https://github.com/Petschko/RPG-Maker-MV-Decrypter/blob/33d8db9ff03ad1d7a08b2215108afcdd721bdea3/scripts/RPGFile.js#L189 Blob() constructor can handle MIME type in second parameter, like Blob([ buf ], { type: mediaType }).

Petschko commented 2 years ago

Oooh!

Thank you for the information, I will try that out!

r4sas commented 2 years ago

And what about saving files on IE: data URI is not supported, so check out navigator.msSaveBlob. Set it on "Save" onclick option like navigator.msSaveBlob(blob, fileName), where blob is this.blob in previous comment.