Important information: this site is currently scheduled to go offline indefinitely by end of the year.

SD Gundam Mobile - CPK PNGs unviewable

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Nigoli
n00b
Posts: 12
Joined: Tue Mar 29, 2011 7:23 am
Has thanked: 7 times
Contact:

SD Gundam Mobile - CPK PNGs unviewable

Post 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.
herbert3000
veteran
Posts: 145
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 149 times
Contact:

Re: SD Gundam Mobile - CPK PNGs unviewable

Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by herbert3000 on Thu Jan 22, 2015 9:43 pm, edited 2 times in total.
Nigoli
n00b
Posts: 12
Joined: Tue Mar 29, 2011 7:23 am
Has thanked: 7 times
Contact:

Re: SD Gundam Mobile - CPK PNGs unviewable

Post 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!
herbert3000
veteran
Posts: 145
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 149 times
Contact:

Re: SD Gundam Mobile - CPK PNGs unviewable

Post by herbert3000 »

Great!
I'm glad I could help.

By the way, I just reuploaded the tool which can now handle multiple files.
Cheers!
Oinkmon
ultra-n00b
Posts: 2
Joined: Sat Nov 29, 2014 11:38 am
Has thanked: 2 times

Re: SD Gundam Mobile - CPK PNGs unviewable

Post 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.
herbert3000
veteran
Posts: 145
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 149 times
Contact:

Re: SD Gundam Mobile - CPK PNGs unviewable

Post by herbert3000 »

Here's the 32-bit version:
XOR_32bit.zip
You do not have the required permissions to view the files attached to this post.
Oinkmon
ultra-n00b
Posts: 2
Joined: Sat Nov 29, 2014 11:38 am
Has thanked: 2 times

Re: SD Gundam Mobile - CPK PNGs unviewable

Post by Oinkmon »

Thank you for all your efforts!
Post Reply