Page 1 of 1

SD Gundam Mobile - CPK PNGs unviewable

Posted: Mon Nov 17, 2014 6:06 am
by Nigoli
Hello,

For this game, it downloads new CPK packages for game content depending on the event that happens each week or new Gashapon that's given. I've been able to unpack CPKs fine, including HCA audio with fine playback for those files. But I'm having trouble viewing any of the PNGs. I put one through a Hex editor to notice that there's no header for PNGs at all.

But are these really PNG files in the end? I'm posting one PNG out of the pack as an attachment as an example file that I'm having problems with.

Thanks in Advance.

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Fri Nov 28, 2014 9:23 pm
by herbert3000
Hi,
the whole file was XOR'ed with this sequence: { 99, 199, 246, 235, 32, 40, 110, 148, 40, 209, 27, 162, 36, 84, 20, 9 }

I created a tool which transforms the PNG into its original format.
Usage: Just drag and drop one or multiple PNG files onto the EXE.
XOR.zip
(C source file and Windows binary)

Update: Instead of a single PNG you can now drag & drop multiple files onto the application.

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Sat Nov 29, 2014 8:32 am
by Nigoli
I can confirm the tool you've compiled works with all other PNGs like this for the game.

Thank you for taking the time to look into this!

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Sat Nov 29, 2014 6:09 pm
by herbert3000
Great!
I'm glad I could help.

By the way, I just reuploaded the tool which can now handle multiple files.
Cheers!

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Sat Nov 29, 2014 9:52 pm
by Oinkmon
If it's not too much trouble can you make a 32-bit version? this one seems to be for 64-bit systems only.

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Sun Nov 30, 2014 2:37 am
by herbert3000
Here's the 32-bit version:
XOR_32bit.zip

Re: SD Gundam Mobile - CPK PNGs unviewable

Posted: Sun Nov 30, 2014 1:45 pm
by Oinkmon
Thank you for all your efforts!