No account yet?
 

Subscriptions

ImageWhen you sign up as a premium subscriber, you get more than access to a host of fantastic features. You become a member of a flourishing community that continuously improves the very projects that run your website. Why not sign up today?

Subscriber Benefits

  • Subscriber only addons and plugins!
  • Latest beta code and SVN builds!
  • Access new versions before anyone else!
  • Premium Priority Support!
  • User Manuals for our components!
Read On!
How do I modify a flash game to work with PUAarcade?
Friday, 05 January 2007

This how to describes the process to modify a flash game so that it will submit it's scores to PUArcade.
Note:  Since PUArcade plays games compatible with phpbb arcade, the process is essentially the same as the process you would find for that arcade.  http://www.phpbb-arcade.com/kb.php?mode=article&k=34.

******************************************************************************

DON'T modify games without permission!  You can not just take a game from anywhere you want and perform this process.  That is considered rude, and possibly illegal, depending on where you are.  Games from www.miniclip.com and xgenstudios have previously expressed that they do not want people modifying and using their games.  So don't do it.

If you want to modify a particular game, you should probably just email the author and ask him if its ok.  9 times out of 10, the author has no problem with it. 

Please don't add other things to the game, like lame links to your website, yourself in the credits, remove author credit, etc. 

***************************************************************************** 

You need to obtain the source code for the game in one of two ways:  Either get it from the author, or decompile the game.  To do this, you can use a program called "sothink swf quicker" .  This is not a free program, but does come with a free trial.  Note that games done during this free trial will display a sothink footnote in them.  Anyone who had the full version can remove it.

  1. Open Sothink SWF Quicker.  Use it to browse to and open the .swf file of the game you want to modify.
  2. Once open, there will be a lot of frames.  We are looking for some particular information in this.
  3. Each game will have different frames, different places to keep score, and requires thinking to make it work properly.  On the other hand, some games are very easy.
  4. You need to find what the score value is.  Browse around in Sothink and find a place where the score is displayed in the game.  Its usually in a box somewhere on the playing screens.  If you look in the properties of that box, you'll see a label called variable: and then the name of the variable that holds the score.  Usually it is _root.score.  Remember this variable name.  In the below examples, we'll assume it is _root.score.
  5. Now, go to the gameover frame.  If the game already has a button to submit the score, just change the URL it submits to so that it looks like this:
    score = _root.score;
    game_name = "EnterYourGameNameHere";
    getURL("newscore.php", "_self", "POST");
  6. If the game does not have a submit score button, find stop() in the gameover frame, and replace it with the following:
         puarcade = new LoadVars();
         puarcade.score = _root.score;
         puarcade.game_name = "EnterYourGameNameHere";
         puarcade.send("newscore.php", "_self", "POST");

  7. Export the game as a flash movie using Sothink.  Make sure you name the SWF file the same as you entered for game_name above, except with a .swf extenstion.  So in our example it would be EnterYourGameNameHere.swf.
  8. Install the game in PUArcade. 
  9. Test it.
  10. If it works, and you have the authors permission, contact me or the guys at phpbb-arcade.com so we can share it!
Last Updated ( Thursday, 08 February 2007 )
 
< Prev   Next >

My Amazon.com Wish List