Game Development Community

Question about networking

by Marco Meier · in Torque Game Engine · 12/23/2001 (10:23 am) · 11 replies

i've got i big problem. when i do a multiplayer game. my other clients can't see this session. i can't find it. has anybody the same problem and a solution? i thought, there hasn't to be a master server in a lan.

other question. when running the testapp and going to options, my register about network is empty. is this normal? there's nothing in there.


Thanks alot.

#1
12/23/2001 (12:52 pm)
If your running on a lan, and the clients are on the same leg, then they should be able to see the server. The test app is set to broadcast on the lan be default.

Which version of the SDK do you have? 1.0, 1.1 or the head revision? On an earlier release, if you start the client and server on the same machine, they try to bind the same port address and one will fail (and thus not have a lan connection). You can check the console log and make sure you don't have a bind error on either the server or client. If they are all on seperate machines, then there should not be a problem.

The blank lan options is normal, that tab hasn't been completed.
#2
12/23/2001 (11:21 pm)
currently i'm using 1.1. there's no bind error. but i can think of the other problem. i think they aren't in the same subnet. so, i have to chek that. i'll post later again.
one small other thing. is the dedicated-server working in version 1.1? i can't get running it. it always says, it doesn't found the map. i use the following synops:
torquedemo_debug.exe -dedicated -mission data/missions/waterWorld.mis
as example. but it doesn't work. maybe i'm to stupid.

btw. i just looked at the Torque Game Engine Features and saw this

Windows client with OpenGL and DirectX
Linux server
Linux & Mac clients under development

is there no server for windows? such a stupid question i know. but i'm running my server on linux. i haven't tried it out on windows.

thank you.
#3
12/24/2001 (8:50 am)
There is a Windows server, I should probably add it to the list :)

The mission file argument is just the path to the mission file, if your using 1.1, then the missions are located in fps/data/missions. Your command line should be -mission fps/data/missions/waterWorld.mis
#4
12/25/2001 (1:46 am)
thanks tim. i think i should get it working now.
much thanks.
#5
01/18/2002 (6:38 am)
all right. the network isn't running. anyone any suggestions? i'm using torque 1.1.1 i've tried to call the connect-function from the console ingame. result: server timed out. what i'm doing wrong? are there any options or settings i haven't seen until now?

Thank you all.
#6
01/18/2002 (2:20 pm)
Tim didn't you change the port address recently? Perhaps the current system has the new port address and the other systems have an earlier version with the old port address?
#7
01/18/2002 (10:20 pm)
I did change the port recently, I think it's in the changelog... 28000 has always been the client address, but a long while back I changed the dedicated server to be 28001 because I was running into conflicts while testing on my machine (I was running a dedicated server and a client on the same machine). Anyway, turns out that wasn't a good idea because all the clients broadcast on 28000 (their default port) when looking for servers on the same sub-net. So the local dedicated servers weren't showing up for people, my bad. Anyway, I changed the dedicated servers back to 28000, what 1-2 week's ago maybe?
#8
01/19/2002 (4:23 am)
so, does this say, you can't host a dedicated server and play on the same machine? i have too check my ports. maybe, i'm still on port 28001. i go and check it later.
#9
01/19/2002 (9:43 am)
You can, you just have to override the port on the client. You can override the server port if you like, but then it wouldn't be visible on the sub-net. That may not matter to you if your other clients are all going through the master server. You can change the port settings in the client/server preference files.
#10
01/20/2002 (3:46 am)
ok, good. when i override the port on the client, should i see the game in the "join game" register? or have i to work with the connect-function over the console?

Sorry about this kind of stupid questions.
#11
01/20/2002 (8:27 am)
Great! it work's now. thank you.