Game Development Community

Pulling in XML from web into two-column table

by David Janik-Jones · in Torque Game Builder · 08/12/2008 (10:51 am) · 2 replies

Can someone tell me how simple, code wise, it is to pull an XML file with two values (score and name) from an online server into a table-based area with two columns so that it turns into a scrolling area showing the top 100 high scores in a TGB project?

#1
08/13/2008 (11:33 am)
BTW, I'm not asking anyone to write the code, just explain to me how difficult this is one a scale of 1-10. Thanks.
#2
08/26/2008 (11:40 pm)
This will help: http://www.garagegames.com/blogs/32/10202

I used this code to upload scores to a PHP page in my game (you can get the source code for that here: http://www.garagegames.com/mg/forums/result.thread.php?qt=75763)

The TCPScoreSender::onLine(%this, %line) function in my code echoes the response from the webserver into a %line variable which you could use to draw your ingame scoreboard.

On a difficulty scale of 1 to 10, I'd say it's a 1. Assuming your CTRL-C and CTRL-V keys work :-)