Game Development Community

Online High Score System...

by Harvey Greensall · in Torque Game Engine · 07/28/2006 (6:13 am) · 7 replies

Hi all.

We're well into our first project now, and are turning to the inevitable High score table online. We'd also like to tie it in with some kind of login and password to play the game if possible too.

Can anyone point us in the direction of a good resource to do this? I notice most torque games have an online highscore, even fairly small projects, but can't find anything telling us how to go about it. i'm just wondering if it's a tough task or not... I'm an artist you see...

Many thanks in advance

Harv...

#1
07/28/2006 (7:36 am)
Um just a thought database entry ???
#2
07/28/2006 (7:39 am)
A PHP/MySQL solution would probably be the easiest to pull off.
#3
07/28/2006 (7:54 am)
Yeah, so I hear. PHP/MySQL is the way to go.

Not something I could do myself though without code help... If anybody wants to donate some of their time or customise their existing system and get this working for me, I'd gladly trade for 3Dartwork / texture work. I've many years industry experience, and would provide the working exported models to drop straight into your torque title... You can see some examples of my work here at www.stickmanstudios.co.uk .....
#4
07/28/2006 (8:13 am)
Do you know what I'd do?

new HttpObject(HttpObject);
%ret = HttpObject.post("stickmanstudios.co.uk:80", "/game/postScore.php", "username="@$UserName@"&password="@$Password@"&score="@$Score);

You'd need to set $UserName, $Password, and $Score, from whatever.

Then have a shiney PHP page that returns, BAD_PASSWORD (even if user doesnt exist) or OK.

Then I think you could switch$ %ret. (And ask for credentials again if incorrect!)

Sorry for the lack of PHP code hehe.

-- Ricky
#5
07/28/2006 (8:33 am)
Yeah, cheers he he he... I'm gonna have to get me a programmer to do it I think...
#6
07/28/2006 (8:45 am)
You people do realize its very easy to post false scores into the system? By using a http sniffer like Charles, its easy to find out the url being used to submit the values, and the name of those values. So one could just copy that url from charles in his webbrowser and change his score to a billion.
So, defently encrypt the values you send over the web like that. I also like to use a real webservice instead of just a php or asp page to post the values to. Although, stock Torque can't communicate with webservices i believe.
#7
07/28/2006 (9:03 am)
Okay, that all sounds pretty logical, it would be v.important to us to have the high-scores secure as it's a big part of our gameplay... What webservice would you recommend?

These guys have a great high score table by the way (torque game)... http://www.roboherd.com/