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?
#2
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 :-)
08/26/2008 (11:40 pm)
This will help: http://www.garagegames.com/blogs/32/10202I 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 :-)
Torque Owner David Janik-Jones