Game Development Community

Test multiplayer mode with the demo

by Philippe C · in Technical Issues · 02/21/2006 (11:51 am) · 2 replies

I would like to test the multiplayer mode with the demo available with Torque.

1/ which demo works ?

2/ where can I found a tutorial or a how to ?


My purpose it just to test if it works and how. My test will be :

I would like to create my own server.
Join the master server ( not lan server)
Tell to a friend connect like that .... and join the master server like that ....
And see my avatar and his avatar in a common environment.

is it feasible ? If yes how ?

#1
02/22/2006 (4:56 am)
1) all the demos work
2) look into the Torque Developers Network all important resources are being migrated there. also If you are new you should probably read this book

Easy to make a server,
a) host game ( give it a unique name)
b) give a friend a copy of the example folder with exe ,scripts and art assets.
c) tell that person to query the master server ( be sure fire walls are off)
d)have friend find you uniquely named server and connect to it
e)have fun!
#2
02/26/2006 (9:42 am)
The test has been done on windows with Torque 1.4. and the starter.fps

I have modified the starter.fps files in order to have a unique name for my game 'PhilippeC':

---------- Find in Files ----------
> Searching for the string 'PhilippeC'...
C:\Torque\SDK\example\starter.fps\client\init.cs(37,30):    $Client::GameTypeQuery = "PhilippeC";
C:\Torque\SDK\example\starter.fps\client\prefs.cs(81,24): $Pref::Server::Name = "PhilippeC";
C:\Torque\SDK\example\starter.fps\client\client\init.cs(37,30):    $Client::GameTypeQuery = "PhilippeC";
C:\Torque\SDK\example\starter.fps\client\client\prefs.cs(76,24): $Pref::Server::Name = "PhilippeC";
C:\Torque\SDK\example\starter.fps\server\defaults.cs(12,24): $Pref::Server::Name = "PhilippeC";
C:\Torque\SDK\example\starter.fps\server\prefs.cs(9,24): $Pref::Server::Name = "PhilippeC";
C:\Torque\SDK\example\starter.fps\server\scripts\game.cs(26,25):    $Server::GameType = "PhilippeC";
C:\Torque\SDK\example\starter.fps\server\server\prefs.cs(9,24): $Pref::Server::Name = "PhilippeC";
> 8 occurrence(s) have been found.

I have send the files to my friend. My friend host the game in multiplayer , his ip adress is : 86.207.249.157

I start the same game on my PC , "join server" => "query master" , i get the folowing message :
"no servers found"


in the console on my PC i can read :
Received server list packet 1 of 1 from the master server (1 servers).
Pinging Server IP:86.207.249.157:50724 (3)...
Pinging Server IP:86.207.249.157:50724 (2)...
Pinging Server IP:86.207.249.157:50724 (1)...
Pinging Server IP:86.207.249.157:50724  ...
Ping to server IP:86.207.249.157:50724 timed out.
ServerQuery:  query Querying servers: 0 left... 0.5
ServerQuery:  done No servers found. 1


When my friend is not connected , i have the folowing messages in the console windows :
ServerQuery:  start Querying master server 0
No master servers found in this region, trying IP:216.116.32.49:28002.
Requesting the server list from master server IP:216.116.32.49:28002 (2 tries le
ft)...
Received server list packet 1 of 1 from the master server (0 servers).
ServerQuery:  done No servers found. 1


It seems that from my PC I can see the friend's "host server" but a "timed out" occurs.

any idea ?