How to play Codename Gordon in real 1080p (or any resolution) by extracting the .swf file (video example)
As most of you know, the game normally runs in a low 4:3 resolution. However, we all know that this is a flash game, so there's got to be a way to play it in a flash player. Well, guess what? I found that the entire .swf is stored in memory when you play the game. Using HxD, I extracted it and saved it as a file. It works perfectly fine in the browser or the standalone flash player. I simply fullscreened it, and recorded it using Dxtory (make sure to watch it on YouTube so you can get a fullscreen 1080p experience):http://www.youtube.com/watch?v=uC5jSMdHPEQ
Clearly, most of the graphics are raster, so they're going to have pixelation. But things like text and light beams are vector, and when you watch in 1080p you'll see how much better it looks than any other video on YouTube. Most people seem to either upload it at the original resolution (which causes YouTube to do a low quality encode), or use blurry upscaling (Or worst, stretching. Ugh!) to get it to 1080p before uploading. Not in this case. I simply rendered it out in Sony Vegas and uploaded the file straight to YouTube, no scaling or anything done.
I could put up a full tutorial on how to do this yourself, but it’s really quite simple. I actually used Hex Workshop as well. I first used HxD to dump the program’s memory, then Hex Workshop to scan for the bytes that make up a .swf file (FWS are the first three, as specified in this PDF file[wwwimages.adobe.com]
). Skipping the version identifier byte after that is a 32-bit value (I think) that indicates how long the file is. I simply selected that length starting from the FWS, copied it into a new file, and saved it. There were a few duds in the RAM, but the main flash file itself was 44.1 MB (46,298,111 bytes).
There’s probably a better way of extracting it, but all the tools for this that I tried failed. This method also worked for The Binding of Isaac, by the way. Anyway, enjoy all that a .swf has to offer, including the ability to extract resources from it or mod the game using flash de-compilers, or even running on different platforms like Mac OS or Linux. But that’s out of my hands – I’m simply putting the information out there on how to get the most out of this awesome game. Have fun.
P.S. I am NOT going to post the file here, and you shouldn't either. If it were legal, I'd have put a link to it, but I am not at all condoning copyright infringement. You should do this if you downloaded the game yourself.