Game Development Community

HttpObject not work in ITorque 2D 1.5

by Nora Ky · in iTorque 2D · 12/12/2011 (1:48 am) · 7 replies

HttpObject seem not work in iT2D 1.5.
It work on Windows, but on device not work.
Can someone fix it?

#1
12/12/2011 (2:10 am)
On iOS you would want to focus on using the iOS NSURLConnection object, not some TCP socket based workaround (which the HTTP Object is, which btw was written by a user in TGE days if I recall right, on top of TCPObject which is what you can use too. Unsure if its considered 'official functionality').
But that naturally means that it wouldn't work outside the iOS simulator and device or it would work inconsistently
#2
12/12/2011 (2:46 am)
Marc,
I see the thread, it seem HTTPObject work previous version with (War Evolved) :
http://www.garagegames.com/community/forums/viewthread/105757

Do you clear that TCPObject work with IOS Device?
#3
12/12/2011 (3:16 am)
Ah, already test TCPObject. It also not work on IOS Device.
#4
12/12/2011 (5:47 am)
If you simply want to open a web page, try to use gotoWebPage("http://yoursite.com")
#5
12/13/2011 (12:34 am)
Prior 1.5 it worked, but required that you enable 'use networking' in the settings.
The 1.5 changelogs mention that there is no networking anymore, so I'm unsure if the TCPObject is affected or not. if it is its relatively easy to merge it back in from 1.4.x though as that code has not changed since TGE 1.3 at least
#6
12/13/2011 (1:34 am)
@SysRat, Thanks. I will use it to let player go to my website. But I need httpObject for check for update.

@Marc, I have been solve this problem in c++ code. It is disable Pref:usenetwork in 1.5. I don't know why but maybe conflict with GameKit.
#7
12/13/2011 (3:32 am)
potentially
but as mentioned that pref is / was controlled through the project settings in the editor itself (Use Network)