About Operation Way of Torque 3D
by Tom Giant · in Torque 3D Professional · 11/16/2010 (7:39 am) · 1 replies
As far as I know, Torque 3D can operate in three different modes.
1.Single Mode: server-side and client-side are in the same process (only need one executable file to run)
Process Organization: "myproject.exe"
2.LAN Mode: my one process including one server-side and one client-side as a host, then my multiple client-sides can join the host. (But I don't know whether or not the "host" need to connect the "GG Master Server")
Process Organization:
"myproject.exe"("host" should be checked) <<=======>> multiple client processes "myproject.exe"
3.Internet Mode: There is a "GG Master Server" in Internet, my one or multiple "Dedicated Server" will connect the "GG Master Server", then my multiple client-sides can join my any "Dedicated Server". Of course, this mode can work for LAN Game besides Internet Game, but the dedicated server have to access Internet for the "GG Master Server".
Process Organization:
"GG Master Server" <<====>> multiple processes as dedicated server "myproject.exe -dedicated -mission ..." <<====>> multiple client processes "myproject.exe"
Am I right?
I'm going to make a LAN Game. It needs several PC as supervisor like teacher or coach(maybe, they are a knid of client, too, but their GUI is different from student side) and needs a lot of PC as student(client-side). Then, which mode should I use? Or is there any other solution?
Thanks for any help.
1.Single Mode: server-side and client-side are in the same process (only need one executable file to run)
Process Organization: "myproject.exe"
2.LAN Mode: my one process including one server-side and one client-side as a host, then my multiple client-sides can join the host. (But I don't know whether or not the "host" need to connect the "GG Master Server")
Process Organization:
"myproject.exe"("host" should be checked) <<=======>> multiple client processes "myproject.exe"
3.Internet Mode: There is a "GG Master Server" in Internet, my one or multiple "Dedicated Server" will connect the "GG Master Server", then my multiple client-sides can join my any "Dedicated Server". Of course, this mode can work for LAN Game besides Internet Game, but the dedicated server have to access Internet for the "GG Master Server".
Process Organization:
"GG Master Server" <<====>> multiple processes as dedicated server "myproject.exe -dedicated -mission ..." <<====>> multiple client processes "myproject.exe"
Am I right?
I'm going to make a LAN Game. It needs several PC as supervisor like teacher or coach(maybe, they are a knid of client, too, but their GUI is different from student side) and needs a lot of PC as student(client-side). Then, which mode should I use? Or is there any other solution?
Thanks for any help.
About the author
Torque 3D Owner Nicolas Buquet
A Torque game/simulation consists of 2 sides :
- the server side
- the client side
The server side handles the state of the world. It doesn't render anything on screen. It transmits the state changes of elements to the client sides.
The client side renders the world for the client, and grab the input to transmit them to the server side.
The server side can be run alone on a computer (it is the dedicated server), or it can be included in a client exe (checking the 'host' box).
When the server is run in the same exe as the client, the 2 sides still exists, and the client part of the exe communicates with the server part of the exe (note here that I use 'part' instead of 'side' to emphasize the small difference).
On a LAN, the clients can query (on the LAN) for a server, and the server can advertise its presence. Then, clients can connect to the server with the 'connect(ip_adress:port)' command.
On Internet, for the clients to find a server, the server advertises itself to a master server. Then, the client can ask the master server for the adress of available internet servers.
Note that it is always the server (side or part) that decide which mission will be loaded. It then transmits this mission datas to the client.
Hope it is clearer now.
Nicolas Buquet
www.buquet-net.com/cv/
edit:
On your LAN, you can use a mixed client/server program, or best, a dedicated server that can handle more connections, because no CPU is dedicated to rendering or sound.