RSS Viewer for Torque
by Harold "LabRat" Brown · 10/27/2003 (9:40 am) · 12 comments
Download Code File
########################################
# RSS Feed Viewer for Torque
# Version: 1.0b
# Programmer: Harold 'LabRat' Brown
# Date: February 10, 2005
#######################################
#######################################
# History
#######################################
02/10/2005 - Fixed "Bitmap Array" crash
10/23/2003 - Cleaned up the HTML -> Torque ML
10/20/2003 - Cleaned up the PHP RSS Parser code
10/18/2003 - Finished up the RSS GUI
10/17/2003 - Cleaned up the Script Code
10/16/2003 - Initial Version
#######################################
# What is it?
#######################################
This is a resource that will allow you to view RSS News feeds within the Torque Game Engine (TGE).
As a resource it demonstrates several TorqueScript objects that may be of interest:
a. TCPObjects
b. FileObjects
c. Interfaceing with PHP
d. Custom GUI Profiles
#######################################
# Instalation
#######################################
1. Copy the rssnews.php file to your webserver.
2. Copy the RSS folder into your Torque Example folder.
3. Create a shortcut to your Torque .exe and add '-mod RSS' to it.
4. Edit the RSS/main.cs file
Change the following two lines:
$rss::site = ""; // The URL and port to your webserver. Do not include http://
$rss::folder = ""; // Path to the rssnews.php file on your webserver, include leading and trailing /'s
$rss::site = "www.yourdomain.com:80"; <-- The Port number is required, port 80 is the default HTTP port
$rss::folder = "/rssfeed/"; <-- This is the URL folder appended to the domain where the rssnews.php file is located
IE. www.yourdomain.com/rssfeed/rssnews.php
5. Start up Torque with the shortcut you created.
#######################################
# Known Issues
#######################################
1. The button doesn't appear in an ideal spot for every Torque version (I used the latest HEAD/1.2.0 to develop on)
2. There is no GUI to delete an RSS Feed once it has been added.
########################################
# RSS Feed Viewer for Torque
# Version: 1.0b
# Programmer: Harold 'LabRat' Brown
# Date: February 10, 2005
#######################################
#######################################
# History
#######################################
02/10/2005 - Fixed "Bitmap Array" crash
10/23/2003 - Cleaned up the HTML -> Torque ML
10/20/2003 - Cleaned up the PHP RSS Parser code
10/18/2003 - Finished up the RSS GUI
10/17/2003 - Cleaned up the Script Code
10/16/2003 - Initial Version
#######################################
# What is it?
#######################################
This is a resource that will allow you to view RSS News feeds within the Torque Game Engine (TGE).
As a resource it demonstrates several TorqueScript objects that may be of interest:
a. TCPObjects
b. FileObjects
c. Interfaceing with PHP
d. Custom GUI Profiles
#######################################
# Instalation
#######################################
1. Copy the rssnews.php file to your webserver.
2. Copy the RSS folder into your Torque Example folder.
3. Create a shortcut to your Torque .exe and add '-mod RSS' to it.
4. Edit the RSS/main.cs file
Change the following two lines:
$rss::site = ""; // The URL and port to your webserver. Do not include http://
$rss::folder = ""; // Path to the rssnews.php file on your webserver, include leading and trailing /'s
$rss::site = "www.yourdomain.com:80"; <-- The Port number is required, port 80 is the default HTTP port
$rss::folder = "/rssfeed/"; <-- This is the URL folder appended to the domain where the rssnews.php file is located
IE. www.yourdomain.com/rssfeed/rssnews.php
5. Start up Torque with the shortcut you created.
#######################################
# Known Issues
#######################################
1. The button doesn't appear in an ideal spot for every Torque version (I used the latest HEAD/1.2.0 to develop on)
2. There is no GUI to delete an RSS Feed once it has been added.
About the author
#2
10/27/2003 (10:06 am)
This is awesome. Great work.
#3
10/29/2003 (7:07 am)
Looks like a borked linkQuote:
The page you requested was not found.
We're sorry. The Web address you entered is not a functioning page on our site. Please check the URL for proper spelling and capitalization.
Click here to visit the GarageGames home page
#5
11/02/2003 (2:11 pm)
awesome resource, we already put it in Produce Panic, now the game not only has a news feed from Penny Arcade, but we have set it up to take the latest comic and display it in game.
#7
"Failed to create the bitmap array" on line 90 of \engine\gui\guiscrollctrl.cc
Any ideas on what i got wrong?
11/11/2003 (6:49 pm)
Hm, i tested this out on the latest HEAD, and get an error when i click the RSS Feeds button:"Failed to create the bitmap array" on line 90 of \engine\gui\guiscrollctrl.cc
Any ideas on what i got wrong?
#8
12/09/2004 (10:08 am)
I get the same error...
#9
12/27/2004 (6:39 pm)
Does this work "out of the box" for anyone else?
#10
02/10/2005 (12:04 pm)
It should be fixed now
#12
08/01/2014 (8:44 pm)
Nevermind, there is a version of this example in the Torque 3D Script Manual. 
Associate Kyle Carter