Game Development Community

Compare and post score online?

by Isaac Barbosa · in Torque Game Builder · 07/23/2007 (5:59 pm) · 5 replies

Hello folks,

This is beyond my knowledge and I will need orientation/help for sure:

What should I do to send the game score to a server and compare it against other scores? and in the event the score is bigger than posted on server, take its place on the list?

I believe I can manage the lists and comparations stuff because i can do it locally, but online.... those are big words for me.

Any directions on this would be greatly appreciated.

Thanks

#1
07/24/2007 (9:59 am)
TGB doesn't have a whole lot of networking and I know little of even that, however, I am very interested in how this would be done. It seems like there are two main "tasks".

1. You need is a small program which runs on your "server" just waiting for score submittions and score list requests. I don't know enough about TGB networking to know if this "could" be written in TGB but it could be written in just C++ or C# probably.

2. You need to be able to submit scores and get the online scores list from within your game.

The logic of maintaining a sorted highscore list is not that difficult, but maybe someone else knows more about TGB networking, like establishing a connection with another computer, sending data, listening for a connection, recieving data?
#2
07/24/2007 (11:59 am)
That would be a great problem. I learn to program (and I'm no an expert) with flash, using AS.... and then I jump into Torque (using TGB), and if I had to use C++.... I thing I can't start to forget that scoring list for now :(
#3
07/24/2007 (5:22 pm)
This is doable in script.... try searching up "HTTPObject" and/or "TCPObject"... This link might help.
#4
07/24/2007 (6:26 pm)
Thanks Matthew,

I read the link and it seems a little bit confusing because it is pretty new for me. But for sure I will try it... and i will keep posting for help ;)
#5
08/05/2007 (8:08 pm)
Check out these topics :
www.garagegames.com/mg/forums/result.thread.php?qt=57558

You can create an online ranking on any php server with MySQL. Though you'll need to figure out yourself the php part.