Game Development Community

Connecting to a database using TorqueScript

by Frédérick Imbeault · in Torsion · 05/26/2010 (8:32 am) · 4 replies

Hello,

I began playing with TGB and Torsion a couple of days ago, and I was wondering if there was a way I could connect to a database using TorqueScript, like a SQL, SQLlite of event Microsoft Access database ?

I did not see anything about databases in the offline documentation, and I did not bought the licence of TGB and Torsion yet, I want to know if the engine will respond to my needs before buying.

Thanks for your answers !

#1
05/26/2010 (10:00 am)
You will either need to make source modifications (requiring Pro) or use an intermediary technology such as a web server and HTTPObjects or a TCP listener that then utilizes the database.
#2
05/26/2010 (11:29 am)
So there is no way of doing it without a web server ? And does TorqueScript support such TCP Sockets or HTTPObjects ?
#3
05/26/2010 (11:36 am)
Yes, both TCP and HTTPObjects are supported in TorqueScript. You should find a number of resources and forum posts on them.
#4
05/26/2010 (11:39 am)
Ok I'll check this up, thanks for the answer !