Game Development Community

iTGB HTTP?

by Kabe R. · in Torque Game Builder · 03/20/2009 (1:37 pm) · 4 replies

What are my options if i want to make HTTP requests with my iTGB game? I don't see any direct support for socket networking (not torquenet but custom) or HTTP specific requests in iTGB directly. How would i call out to Obj-C Apple classes that do support this?

Can i write some Obj-C and expose some objects to TorqueScript that provide this feature?

I currently don't see any examples (maybe they are in the kit that i can't find a demo for) that integrate Obj-C classes with TorqueScript.

Thanks!

About the author

Recent Threads

  • Texture/Material Strip?

  • #1
    03/21/2009 (12:31 pm)
    Quote:What are my options if i want to make HTTP requests with my iTGB game?
    There are ways of doing so, but I think your next thought is actually the best way to go with iTorque.

    Quote:Can i write some Obj-C and expose some objects to TorqueScript that provide this feature?
    Absolutely. We have a sample in the forums on how to write OBJ-C code to open the iPhone Keyboard, hook it into the C++ engine, and call that functionality from TorqueScript.

    It's actually really easy to do, and we are using this method to add support for Camera, Photo Lib browsing, and full motion video.

    It is my opinion that you want to use the UI and functionality of the iPhone SDK whenever possible if it is not specific to game play.
    #2
    03/25/2009 (1:21 pm)
    Hi Michael, thanks for the response.

    I can't seem to find any reference in the forums to the sample you are talking about. I would really like to know what it takes to expose Obj-C objects/functions to TorqueScript so i can understand the work flow i'm going to have. I would like to get around having to modify any C++/Torque code if possible.

    Can you give me the link to the sample? Also is there any documentation that describes this process?

    Thanks,
    #3
    03/25/2009 (10:13 pm)
    Here's the keyboard thread:
    http://www.garagegames.com/community/forums/viewthread/85799

    It should contain enough info to expose console functions.
    #4
    03/25/2009 (10:43 pm)
    It says i can't see the thread unless i own iTGB. I would like to understand how this works before i put my money down for it. I'm not sure what could be so private about that thread. Can someone post a simple example so i can see the process and what kind of overhead goes into exposing Obj-C to TorqueScript?

    Thank you.