Jump to content

Making online Flash games available offline?


Telecommunist

Recommended Posts

Hello all, I am new here and would like to say hi. Recently, I have become very addicted to this game called Fantastic Contraption - http://fantasticcontraption.com/. Great game, but I need to be able to play it offline, heh. I don't know much about Flash, but I know it accesses some type of database during navigation through the interface. Does anyone have any ideas on how I can play offline, even if it is just a level or two? Thanks, and have a good one.

Link to comment
Share on other sites

i used to use a copy of this prog... http://www.flashkeeper.com/fk.htm have a looksee at it, im sure you could find a errm well yknow...around torrent sites.

it may require a copy of flash player exe (from memory it wraps the *swf file with the flashpla.exe?)

if so i have it laying about somewhere

lemme know how you get on.

Link to comment
Share on other sites

This game can't be made to play offline unles syou can change where it checks for the domain. It logs on to the website and if it can't reach fc.pegproductions.com as part of its local domain then it blocks access to the game.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
   <allow-access-from domain="fantasticcontraption.com" />
</cross-domain-policy>

You could try ettercap for this though and see if you can trick it when it tries to go out anc check for the crossdomain, change it to be localhost, or 127.0.0.1, or your ip address. I am sure it can be done, but a hack would need to be in place to make it happen. I tried decompiling it, but couldn't get flash 8 to load the files.

One other thought is to have apache on your local machine and add something like your own crossdomain.xml file and redirect any requests for fc.pegproductions.com to your local server with a modified

<allow-access-from domain="fantasticcontraption.com" />

to

<allow-access-from domain="localhost" />

or something.

Im gonna play with this to see if I can get it to work.

Link to comment
Share on other sites

Ok, I have it working offline! This will require some sort off web-server software on your local machine. Easiest setup to use is Apache (xampp is what I am using for this).

Add the following to your windows HOSTS file

(in Window XP the path is c:\windows\system32\drivers\etc\HOSTS)

127.0.0.1    fc.pegproductions.com
127.0.0.1    fantasticcontraption.com

Then copy all files for the game. You will need the following copied to the xampp htdocs folder:

http://fc.pegproductions.com/crossdomain.xml

http://fc.pegproductions.com/menuLoop.mp3

http://fantasticcontraption.com/game/Contraption.swf

Then in your browser, just go to http://fantasticcontraption.com/Contraption.swf or create an html file with it embeded at 700x500 and put it in the htdocs folder, then navigate to http://fantasticcontraption.com/somefile.html where somefile.html is whatever embeded html file you created. Works for all the default buttons on the front except the login to the site(obviously).

somefile.html:

<center>
<embed src="Contraption.swf" width="700" height="500"></embed>
</center>

Link to comment
Share on other sites

*bows*

Wow! Great find! I am going to try that tomorrow when I get time to setup Apache. You used Flashkeeper? Also, you are using Flash 8? I ask because I want to replicate exactly what you have done. So do any of the features not work? Can you browse through all of the player levels?

The game often has changes made to the physics engine, so I can just do it again when that happens right?

Thanks a lot DigiPirate, GREAT find!

Link to comment
Share on other sites

*bows*

Wow! Great find! I am going to try that tomorrow when I get time to setup Apache. You used Flashkeeper? Also, you are using Flash 8? I ask because I want to replicate exactly what you have done. So do any of the features not work? Can you browse through all of the player levels?

The game often has changes made to the physics engine, so I can just do it again when that happens right?

Thanks a lot DigiPirate, GREAT find!

Just go with my second post, it is all you need to get it working offline.

I was just tyring to hack the swf file itself using Flash 8(The program to create flash swf files, not the flash player 8) to bypass the crossdomain check, but used the second method instead to trick it into playing offline.

I never heard of Flashkeeper, so no, I am not using it either. For obvious reasons, the login features do not work, but all levels (from what I can see) play out fine.

Link to comment
Share on other sites

  • 4 weeks later...

I have beaten all 20 levels!! Now I have to register to see what the other stuff is about.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...