Game Development Community

Can torque link to database?

by Selin · in Torque Game Builder · 03/09/2011 (5:44 pm) · 7 replies

I using torque game builder. it is possible torque to link database? how?

Thanks for your help.

#1
03/10/2011 (5:52 am)
You need to have source code access for that, but there are resources made for TGE/TGEA/T3D that will work with TGB/T2D to allow it to connect to ODBC or other data sources.

Alternatively, you can use HTTPObjects to send and receive data from PHP pages on a web server which is connected to a database. No source code needed for that.
#2
03/10/2011 (6:23 am)
I've always gone the php route.

It is clean and simple as long asy ou don't need massive amounts of data...

it also makes it so you can get your data from anywhere just by logging in to an account
#3
03/10/2011 (7:18 pm)
Thanks for the information. Did you got any source about it? I quite new of using TGB.
#4
03/10/2011 (7:38 pm)
@Chris: PHP route is more secure too.

@Selin: No source code access is needed to establish connections to a PHP database (MySQL), only knowledge of the HTTP POST method, and a TCPObject/HTTPObject.
#5
03/10/2011 (7:57 pm)
Thanks, Robert
#6
03/15/2011 (3:01 am)
Robert: Did u got any resource about the tcp object?
#7
03/15/2011 (9:15 am)
@Selin: Do a Google search for "site:www.garagegames.com tcpobject". That should yield a good amount of information for you.