.ccgame files and what to do with them

Per RB Whitaker's fantastic wiki, .ccgame files (XNA Creators Club Game files) are packaged XNA projects for sharing with other XNA users or for deployment on Xbox 360/Zune.

Now, I have the XNA Game Studio 4.0 Platform Tools. When you install them, they're located in "Program Files (x86)\Common Files\Microsoft Shared\XNA" and the tool in question is called XnaPack. Open your .ccgame file with this application.

"Error 2164: The packages game does not have a valid target registered for its supported platform(s). You must register at least one target with XNA Game Studio Device Center before unpackaging this game. Use /listplatforms to see the list of platforms supported by this game package."

You need to add a device (Xbox 360 or Zune) with an active connection before you can unpackage it.

For Xbox, this requires an XNA Creators Club subscription.

These subscriptions were discontinued in 2015.

No worries though, as you can still unpack these files albeit with a bit more effort. Open your .ccgame file as archive with 7-Zip File Manager and you'll see a series of numbered files along with XCabInfo.resources.

File 0 is always your executable. This can be decompiled with ILSpy (available as a Visual Studio extension) into the C# source code.

Everything else is XNB assets. XCabInfo.resources provides a list of their original names along with an embedded PNG package icon. Luckily the icon isn't compressed so you can just select everything from %PNG to IEND®B`‚ and save as image.

You can tell that the other numbered files are XNB assets because they start with the XNBx header when viewed in a text editor.

No comments:

Post a Comment