Game Development Community

GameConnection Object ? in TGE ?

by Tim Kin Chu · in Torque Game Builder · 09/08/2006 (1:32 am) · 3 replies

I saw
%conn = new GameConnection(ServerConnection);
   %conn.setConnectArgs($pref::Player::name);
   %conn.connect(%ip);

in checker demo, but is it only in TGE??

is it doing something on checker demo??

it is tcp / udp ?

#1
09/08/2006 (11:00 am)
It's the same networking as TGE. TGB just doesn't have it's objects written to be used in a realtime networked environment. So all you can use in TGB is commandToServer and commandToclient for actually running a networked game.
#2
09/13/2006 (8:28 pm)
Basically TGB's GameConnection class is a trimmed down version of TGE's GameConnection class :)
#3
09/13/2006 (11:22 pm)
Matt did the conversion to get NetEvents (what "turn based networking" really means) working in TGB so he's the expert, but the fundamental difference between TGE's networking and TGB's networking is that TGB has no concept of ghosting, and doesn't have NetObject (the ghosted object implementation) in the inheritence hierarchy.