keith10456
04-09-2006, 12:27 AM
I'm a member of the Activity Mod forum (http://phpbb-amod.com). More or less, its a php open source community that allows individuals to have an arcade on their website - in which their members can play online games for free.
Just about all of the games are flash. The problem is, I came across some java games that their php script can use, but none of the members know how to decompile the java games (and/or know what programs to use).
Basically, the php script saves the game's data (username, score, etc.) to an SQL database.
An example of the the games we're trying to use is:
http://morrisania.com/test/SolitaireGames/calculation.html
(from http://www.idiotsdelight.net/)
If you need me to provide you with the files, etc. from the Java game let me know.
Below are instructions that were given a while back, but like I said, we're still at a lost - (where to put it, etc). Any and all help will be greatly appreciated - you will be contributing to an wonderful project.
-------------------------------
<FORM NAME="game" ACTION="{S_GAME_ACTION}" METHOD="post">
<INPUT TYPE="hidden" NAME="name" VALUE="{USERNAME}">
<INPUT TYPE="hidden" NAME="score" VALUE=0>
</FORM>
This should go in your template file, it's a small form that will hold the info needed for the username and score to be submitted into the newscore.php file. You then include this function in the java source. Code:
function updatescore()
{
document.game.name.value = user_name;
document.game.score.value = score;
document.game.submit();
}
and include it with your game over routine. Replace score with what ever your game is using for the score variable. Example :: MyGamescore = 3777; so I would change Code:
document.game.score.value = score;
toCode:
document.game.score.value = MyGamescore;
Just about all of the games are flash. The problem is, I came across some java games that their php script can use, but none of the members know how to decompile the java games (and/or know what programs to use).
Basically, the php script saves the game's data (username, score, etc.) to an SQL database.
An example of the the games we're trying to use is:
http://morrisania.com/test/SolitaireGames/calculation.html
(from http://www.idiotsdelight.net/)
If you need me to provide you with the files, etc. from the Java game let me know.
Below are instructions that were given a while back, but like I said, we're still at a lost - (where to put it, etc). Any and all help will be greatly appreciated - you will be contributing to an wonderful project.
-------------------------------
<FORM NAME="game" ACTION="{S_GAME_ACTION}" METHOD="post">
<INPUT TYPE="hidden" NAME="name" VALUE="{USERNAME}">
<INPUT TYPE="hidden" NAME="score" VALUE=0>
</FORM>
This should go in your template file, it's a small form that will hold the info needed for the username and score to be submitted into the newscore.php file. You then include this function in the java source. Code:
function updatescore()
{
document.game.name.value = user_name;
document.game.score.value = score;
document.game.submit();
}
and include it with your game over routine. Replace score with what ever your game is using for the score variable. Example :: MyGamescore = 3777; so I would change Code:
document.game.score.value = score;
toCode:
document.game.score.value = MyGamescore;