WordPress.org

Forums

Flash Games with high scores database like Arcade (28 posts)

  1. aksd
    Member
    Posted 8 years ago #

    hi,
    is there a plugin or something for wordpress like Arcade for php-nuke? that keeps the high scores of flash games?
    i want to put neave snake and asteroids on my blog... i've searched a few hours about how to keep the high scores but i didn't find anything
    please help me! :)
    thanks!

  2. aksd
    Member
    Posted 8 years ago #

    com on, people.. there must be someone who knows.. :(

  3. aksd
    Member
    Posted 8 years ago #

    :(

  4. aksd
    Member
    Posted 8 years ago #

    this is wack...

  5. whooami
    Member
    Posted 8 years ago #

    as someone who worked with both the writers of the 2 main phpBB aracde mods, and helped to develop the current modifications to the games themselves I can tell you there is nothing like this, and probably wont ever be -- unless you aspire to write the code, and modify the flash games as needed.

    Hows that for wack.

  6. drmike
    Member
    Posted 8 years ago #

    Are they still having all sorts of legal issues with those games as well? I know we finally stopped supporting them with my hosting. Was going to band them outright due to all the headaches and Cease and Desists we got on them...

  7. whooami
    Member
    Posted 8 years ago #

    I dont know -- I have very little to do with them anymore. it became one of those "time to move on" things for me.

  8. aksd
    Member
    Posted 8 years ago #

    i only want to be able to keep the highscores, i don't need an interface.. i've searched in neave snake with a flash decompiler, but i didn't find anything about database and highscores

  9. whooami
    Member
    Posted 8 years ago #

    ... i don't need an interface.

    Yes you do. You need the game to send the score.

    .. with a flash decompiler

    Let me guess -- youre between the ages of 13-17.

    No thanks. people like you are why my flash is encrypted.

  10. aksd
    Member
    Posted 8 years ago #

    what am i supposed to do? i don't know any flash, php and other web related stuff :D
    i'm 18

  11. whooami
    Member
    Posted 8 years ago #

    close enough.

  12. aksd
    Member
    Posted 8 years ago #

    can you help me, please, if you know flash
    i found this script in the swf, and i know now that the scores are kept in games_score.php. i've replaced that adress with the adress of my site, and created a games_score.php, but it doesn't work.. there's something more, but i don't know what, can you help me?
    this is the adress of the game http://www.neave.com/games/snake/snake.swf

    and bellow is the code of the script

    [moderated: too much code. Please use a pastebin service such as http://wordpress.pastebin.ca or a link to the code in a txt file instead]

  13. aksd
    Member
    Posted 8 years ago #

    can you? :D

  14. what am i supposed to do? i don't know any flash, php and other web related stuff :D

    Then you do what everybody else does:
    a) Learn, or
    b) Pay somebody.

    Begging on forums for people to do a lot of work for you for free isn't really the best way to go about doing things.

    i'm 18

    Yeah. We can tell. Put that education to work. Learn. Figure it out. Buy a book on programming and read it. Heck, go to college.

    The questions you're asking show that you know absolutely nothing of the topic, and have not bothered to try to sit down and work out the answers. We're really not inclined to assist those that are not inclined to learn.

  15. aksd
    Member
    Posted 8 years ago #

    i'm very inclined to learn!
    yesterday i got a head ache from this
    i found something...
    the data that is sent to games_score.php from the swf:
    game=snake3&url=http%3A%2F%2Fwww%2Eneave%2Ecom%2Fgames%2Fsnake%2Fsnake%2Eswf&name=asdddsadasdasda&score=64
    on my site is similar, except the adress, of course (it should work, right?) but somehow the data is not written in games_score.php (the chmod is 777)
    i'm getting closer :))

  16. but somehow the data is not written in games_score.php (the chmod is 777)

    That's not PHP works. It doesn't magically write the data. the games_score.php file needs to be a script which will accept the data and write it somewhere.

  17. aksd
    Member
    Posted 8 years ago #

    that's what i was afraid of..

  18. aksd
    Member
    Posted 8 years ago #

    i hate doing this, but i guess i'll have to give up.. :( there's no way i'll find the original games_score.php

  19. You don't need the original games_score.php. If you would get a book on PHP and read it, you would have the answers to your questions.

    Seriously, even the most basic PHP knowledge would tell you exactly how to do what you are trying to do.

  20. aksd
    Member
    Posted 8 years ago #

    ok, thanks

  21. aksd
    Member
    Posted 8 years ago #

    i quit

  22. Foreel
    Member
    Posted 8 years ago #

    Wow whooami and otto...

    You guys are pretty harsh. No need to be rough on him, he is obviously trying to learn. Your telling me that neither of you have ever been helped before? And what does his age have to do with anything? I know some 18 year olds that can do some amazing stuff with websites.

    What happened to this forum being about helping each other?

    If your not going to help. Don't Post!!

    Jerks...

    aksd, I'm sorry that this is all of the information (if you can even call it that) that you got from anyone. Unfortunately, I can't help you with your PHP issue. But don't give up. I have learned incredible things just reading forums and building my own websites. Good Luck!

  23. aksd
    Member
    Posted 8 years ago #

    THANKS A LOT, Foreel! the world needs more people like you :)
    i didn't give up
    i finally did it, the scores are stored in the database, and displayed in a php

  24. adam-
    Member
    Posted 8 years ago #

    Let's see :>

  25. whooami
    Member
    Posted 8 years ago #

    Wow whooami and otto... blah blah blah ...

    lol, you registered to say that?

    That tells me a lot.

  26. aksd
    Member
    Posted 8 years ago #

    http://amsite.z1.ro/?page_id=45
    this is the page with the games

  27. motin
    Member
    Posted 8 years ago #

    lol, you registered to say that?

    That tells me a lot.

    I'll happily register to post this: Sorry whooami but you should probably stay away from these kind of posts and think of how you are spending your time. Don't post if you are not going to help, aksd is apparently inclined to learn.

    I whole-heartedly agree with Foreel's opinions, remembering how forum posts helped me understand the mysteries of dynamically changing webpages named xhtml, asp, php or had cgi-bin in the path name. Sure I was 13 not 18 but anyway.

    akds: Here is a long list of plugins for different CMSs. The one for Joomla has 180 high-score saving enabled games. Use Joomle for your website or learn from the source code.

    I just sent some upgrades to the Joomla component adding many features - hopefully the authors will include them in the next version.

    aksd - your page is really slow right now. 2min+ to access.

    Why not share the source code you figured out for others like you to learn from?

  28. aksd
    Member
    Posted 8 years ago #

    thanks, motin! :)
    this is the code i put in games_score.php

    <?
    require('config.php');
    
    $game = stripslashes($_POST['game']);
    $name = stripslashes($_POST['name']);
    $score = stripslashes($_POST['score']);
    
    $databaseLink = mysql_connect($databaseHost, $databaseUser, $databasePassword);
    mysql_select_db($databaseName, $databaseLink);
    
    $game = addslashes($game);
    $name = addslashes($name);
    $score = addslashes($score);
    
    $query = "INSERT INTO $databaseTableName (game, name, score, <code>date</code>) VALUES('$game', '$name', '$score', NOW())";
    $result = mysql_query($query, $databaseLink);
    ?>success=true

    this is the code i added in the last frame of the game, the one with the scores table :

    getURL("/games/scores.php", "_blank");
    gotoAndPlay(1);

    and this is the code from the scores.php :

    <?
    //connect to mysql
    //change user and password to your mySQL name and password
    mysql_connect("mysql_host","db_user","db_pass"); 
    
    //select which database you want to edit
    mysql_select_db("db_name"); 
    
    //select the table
    $result = mysql_query("SELECT * FROM <code>highscores</code> WHERE game  = 'snake3' && score !=0 order by score desc limit 0, 10");
    
    echo "<table border='1'>
    <tr>
    <th>Name</th>
    <th>Score</th>
    </tr>";
    while($row = mysql_fetch_array($result))
      {
      echo "<tr>";
      echo "<td>" . $row['name'] . "</td>";
      echo "<td>" . $row['score'] . "</td>";
      echo "</tr>";
      }
    echo "</table>";
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic