Game Development Community

How to refer to resorces on the internet.

by Peterjohn Griffiths · in Torque Game Engine · 12/27/2005 (2:35 pm) · 7 replies

Hi,
I am a total noob to Torque, only purchased it yesterday and have a question about the indie version.
Is it possible to point image locations to websites instead of the local drive.
I have followed the GameOne example and tried changing the bitmap field of the MainMenuGui to "http://www.mywebsite.net/gameonebg.jpg" and uploaded the file to my website.
I can view this file fine through iexplorer but it doesn't work through the game.
Anyone got any idea's on how to do this?.
Also would it be possible to keep the mission files and stuff on the website aswell and have the game access them from there?.
Many thanks
Pejayuk.

#1
12/27/2005 (2:37 pm)
Hi again,
If the engine isn't capable of this, any idea what I would need to read up on in C++ to amend Torque to be able to do this?.
Many thanks again.
#2
12/27/2005 (3:49 pm)
Try the demo and see if there is something in there that opens the default web browser.
#3
12/27/2005 (6:59 pm)
What I am trying to do is have the image stored on the website and use it in the game. Opening the default web browser isn't going to display the image in the game, unless I have miss understood your reply.
#4
12/27/2005 (7:14 pm)
Look into the SQL resources. Then, take the data gathered (image location) and stream it into the engine from an external database. That way you only need to update the database to update content. Your scripts and source will do it seemlessly.
#5
12/29/2005 (5:44 am)
Thanks David for your reply, but do you mean, have the URL of the image stored in the database?. Would this then mean when the code changes the location of the image it would steam it from the URL or do you mean store the image in the database?.
Many thanks.
#6
12/31/2005 (2:57 pm)
There's an HTTPObject - download the file to disk, then open it with a guibitmapctrl.
#7
02/22/2006 (7:16 pm)
Thank you Ben. That is just what the doctor ordered.
Thanks everyone for there help on this one.
Pejayuk.