Game Development Community

Using Torque to make a tech demo.

by Derek Licciardi · in General Discussion · 09/23/2008 (12:35 pm) · 3 replies

I'm interested in using TGEA, TorqueScript, the GUI editor and TNL to build a demo for a networked game. The game itself needs a server that can be accessed by many different head ends including a console and a web browser.

What I'm curious to find out is if TorqueScript supports calling web service methods from within the game. Consider the following:

I need a logon server that can record logins from multiple different clients accessing the game. The intial clients will be a 3D application, a Windows Mobile 5/6 application, a console application and a Web Site hosted using ASP.Net 3.5. What I would like to do is implement a single web service based interface that all clients can access so that I can program login functionality once. The only unknown I have is do I use TorqueScript to do this or TNL or some combination of the two.

Ultimately I'd like to use TorqueScript because that seems to be well supported by the Gui Editor and what I'm really trying to accomplish is to get the game's UI elements to call a web service. Help would be appreciated.

Thanks
Derek Licciardi

About the author

Recent Threads


#1
09/23/2008 (12:41 pm)
@Derek - You can use the TCPObject or HTTPObject from TorqueScript to communicate via TCP or HTTP.
#2
09/23/2008 (1:01 pm)
Would it be up to me then to implement the SOAP headers and such to do the communication? Has anyone implemented a TorqueScript library that can call a Web Service? Raw HTTPObject is a start but it would be nice to have a proxy object already. Just seeing how far it has been implmented so I can judge how much of it needs to be done from scratch to support what we're trying to do.
#3
09/23/2008 (1:12 pm)
There are a couple of resources on the site that claim to enhance the HTTPObject to be better suited for SOAP, but i don't think anyone has posted a resource for SOAP with Torque. I would plan on writing it yourself, but check out the resources available.