Networking only half working =)
by Stephen Walsh · in Torque Game Engine · 11/11/2005 (5:25 am) · 4 replies
Hello, i have a slight networking problem. its an easy answer if you know what your doing but i just can't figure it out (not enough experience).
i have a modified version of this Demo- "http://www.codesampler.com/torque.htm" basicly i took it and re-did all the objects. players and terrain. Now i want to get it networked. i opened the File "Main.cs" in the root directory and changed
createServer("SinglePlayer",expandFilename("./data/missions/test1.mis"));
to this to make it networked ...
createServer("MultiPlayer",expandFilename("./data/missions/test1.mis"));
it worked as i was able to connect to it via the standard torque demo (the one that came with the SDK)
then i took the "joinServerGui" out of the torque Demo and placed it in my game. The gui worked when i "exec" it in code.
but its wont ping with anything , it keeps saying "No Servers Found" ( keep in mind there is a server online)
it has to be something to do with the client side - but i cant figure it out.
Thanks
Stephen Walsh
i have a modified version of this Demo- "http://www.codesampler.com/torque.htm" basicly i took it and re-did all the objects. players and terrain. Now i want to get it networked. i opened the File "Main.cs" in the root directory and changed
createServer("SinglePlayer",expandFilename("./data/missions/test1.mis"));
to this to make it networked ...
createServer("MultiPlayer",expandFilename("./data/missions/test1.mis"));
it worked as i was able to connect to it via the standard torque demo (the one that came with the SDK)
then i took the "joinServerGui" out of the torque Demo and placed it in my game. The gui worked when i "exec" it in code.
but its wont ping with anything , it keeps saying "No Servers Found" ( keep in mind there is a server online)
it has to be something to do with the client side - but i cant figure it out.
Thanks
Stephen Walsh
#2
1. It lags really bad, I have no idea why, it may be because something I added. One of the GG members was saying it may be because something is taking up a lot of "time", I'm not sure.
2. Master server does not work. The settings by default do not work, I think you need to change the gametype and a few other things, forgot what I did.
3. IT DOES NOT CONFIGURE MULTIPLAYER GAME JOINING AT LAUNCH! You may not know what this means, but you need to allow the application to go out to the network, an easy way to fix this is to start loading a multiplayer mission, cancel it in the middle, and then you can join any hosted server. It does not bind the port to 0 like the FPS Starter Kit does.
You have the right idea for launching a multiplayer game, I have a deticated server working as well. If you have AIM, ICQ, IRC, MSN, Yahoo, Google Talk, Skype, or XFire. I'd be happy to help you through this. I'd also like to see if your lags and compare it to my game code.
-Pig
11/12/2005 (10:04 am)
I have done the same thing you did. I built my game off tut.base and have it networked. There are the following problems with it...1. It lags really bad, I have no idea why, it may be because something I added. One of the GG members was saying it may be because something is taking up a lot of "time", I'm not sure.
2. Master server does not work. The settings by default do not work, I think you need to change the gametype and a few other things, forgot what I did.
3. IT DOES NOT CONFIGURE MULTIPLAYER GAME JOINING AT LAUNCH! You may not know what this means, but you need to allow the application to go out to the network, an easy way to fix this is to start loading a multiplayer mission, cancel it in the middle, and then you can join any hosted server. It does not bind the port to 0 like the FPS Starter Kit does.
You have the right idea for launching a multiplayer game, I have a deticated server working as well. If you have AIM, ICQ, IRC, MSN, Yahoo, Google Talk, Skype, or XFire. I'd be happy to help you through this. I'd also like to see if your lags and compare it to my game code.
-Pig
#3
msn address is walsh dot stephen at gmail dot com
so what you saying is that i'd be better taking my data and moving it to SDK demo?
11/13/2005 (2:09 pm)
Yes that would be great , msn address is walsh dot stephen at gmail dot com
so what you saying is that i'd be better taking my data and moving it to SDK demo?
#4
11/14/2005 (12:45 pm)
I was thinking that, but I got networking working in an hour or so I figured it was easier. I had a few days of work to convert to the FPS demo so it was the best decision for me. I could get it working for you in maybe 20 min. I'll add you to my list.
Torque 3D Owner Michael Cozzolino
Big Monk Games