this is a php highscore thingy i did. i woulda used jerone's but my moronic isp doesn't have mysql (or won't let me use it). i needed the highscore to save a little extra for each high score. my game is a racing type game so i wanted to save the time for each checkpoint so i could show where the player was on the highscore list at each checkpoint.
things you can do with it;
1. change the sort key by clicking on the column header (default=score)
2. change the order from ascending to descending by clicking on the column header again (default=ascending)
3. the high score will maintain only one entry for each name
4. you got the extra field to add stuff to (like a date mabey)
anyway if you interested here's the .zip
thing's you can't do with it;
1. generate a html high score http://www.nlc.net.au/~oceana/highscore/highscore.zip
copy the highscore.php and highscore.swf to your server. change highscore.php to executable and your in business.
if you just wanna perv on it then; http://www.nlc.net.au/~oceana/highscore/highscore.swf
/
i don't know jack about the security issues so any advice there would be really helpfull.
thanks
blink
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
it's configurable. in my case i want the lower scores to be better coz it's time based (a race). if you click on the column heading of the score it will reverse the order (and the logic by which it adds a new score).
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
heh, being a php retard im always looking for a good highscores method... cant get jers to work on my host either but im getting a new host sorted in the next couple of days so maybe!!...
The highscore system doesn't use a database, it uses a flat file.
--------------------------------------------------------
Make sure you follow these steps;
1. ftp highscore.php and highscore.swf to your server
2. change the permissions for highscore.php to executable;
2.1 unix: login and chmod 0777 highscore.php
2.2 win: connect to ftp server, right click on the file and make it executable (i think)
--------------------------------------------------------
This is a debug kinna thing you can use to mabey see what's goin wrong; http://www.nlc.net.au/~oceana/highscore/debug.swf
change the score and click insert first. then wait a bit and click dump (post a screen dump of the values if you can)
--------------------------------------------------------
thanks for all the help
Blink
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
Originally posted by BlinkOk
The highscore system doesn't use a database, it uses a flat file.
--------------------------------------------------------
Make sure you follow these steps;
1. ftp highscore.php and highscore.swf to your server
2. change the permissions for highscore.php to executable;
2.1 unix: login and chmod 0777 highscore.php
2.2 win: connect to ftp server, right click on the file and make it executable (i think)
--------------------------------------------------------
This is a debug kinna thing you can use to mabey see what's goin wrong; http://www.nlc.net.au/~oceana/highscore/debug.swf
change the score and click insert first. then wait a bit and click dump (post a screen dump of the values if you can)
--------------------------------------------------------
thanks for all the help
Blink
Trying it now... How easy would it be to convert this flat file to save to a database?
ok chmoddedededededededed to 777 still no change. If I try to add an entry via the swf, it does nothing. I tried refreshing. If I try to view the php file directly it tells me:
Warning: file("scores.tbl") - No such file or directory in /****/******/highscore.php on line 84
&msg=&done=1
Originally posted by Markp.com ok chmoddedededededededed to 777 still no change. If I try to add an entry via the swf, it does nothing. I tried refreshing. If I try to view the php file directly it tells me:
first you need to insert a score. that should create the file. if it doesn't then login and use the command;
touch scores.tbl
thanks for the help, this is great!
Blink
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
Originally posted by BlinkOk first you need to insert a score. that should create the file. if it doesn't then login and use the command;
touch scores.tbl
thanks for the help, this is great!
Blink