Master server question
by Vijay Myneni · in Torque Game Engine · 02/18/2005 (5:12 pm) · 6 replies
Hi,
I've read all the posts related to the GG master server, and tried everything I could think of based on those posts, but I still can't get my game to show up in any queries to the master server. I changed the $Client::GameTypeQuery in client/scripts/init.cs and the $Server::GameType in server/scripts/game.cs. I also changed the gameName variables in the server and client side prefs.cs and in defaults.cs.
I also set up port forwarding on my router. I just can't think of anything else to try. When I try querying the master server, it finds the server and returns a server list, but it's always a list of 0 servers, even if I have another computer hosting a game.
If I change the $Client::GameTypeQuery back to "FPS Starter Kit", it successfully gets back a list of 3 servers, so I know everything is fundamentally working, network-wise. I just can't seem to get my game onto the master server, or find it once it's there. Any ideas? I'm so excited to finally test this over the internet, after getting it to work over LAN so well.
I've read all the posts related to the GG master server, and tried everything I could think of based on those posts, but I still can't get my game to show up in any queries to the master server. I changed the $Client::GameTypeQuery in client/scripts/init.cs and the $Server::GameType in server/scripts/game.cs. I also changed the gameName variables in the server and client side prefs.cs and in defaults.cs.
I also set up port forwarding on my router. I just can't think of anything else to try. When I try querying the master server, it finds the server and returns a server list, but it's always a list of 0 servers, even if I have another computer hosting a game.
If I change the $Client::GameTypeQuery back to "FPS Starter Kit", it successfully gets back a list of 3 servers, so I know everything is fundamentally working, network-wise. I just can't seem to get my game onto the master server, or find it once it's there. Any ideas? I'm so excited to finally test this over the internet, after getting it to work over LAN so well.
About the author
#2
02/18/2005 (6:37 pm)
Hey man, don't beat yourself up, everybody does things like that. It is amazing how fast you fix things after you finally give up and post a question about them, though, isn't it? :-)
#3
Which actually leads to a really good troubleshooting/brainstorming technique: If you are ever stuck on something, write an email to yourself explaining the exact problem, and what you've covered so far. If, by the time you look at the email an hour later, you haven't figured it out, then post! I've started doing this in a way (I don't actually email, but I do write it and leave it in draft), and then take a break. Normally by the time I'm back I've resolved the issue.
02/18/2005 (7:12 pm)
I'm a classic for that--check out a lot of my posts in the RTS-SK forums!Which actually leads to a really good troubleshooting/brainstorming technique: If you are ever stuck on something, write an email to yourself explaining the exact problem, and what you've covered so far. If, by the time you look at the email an hour later, you haven't figured it out, then post! I've started doing this in a way (I don't actually email, but I do write it and leave it in draft), and then take a break. Normally by the time I'm back I've resolved the issue.
#4
02/25/2005 (1:04 pm)
However, sometimes it's good to post your problem and resolution (assuming it hasn't been posted already somewhere), giving the rest of us a chance to avoid or fix our own similar problems...
#5
i have onServerCreated() function call in createServer function so this cant be like the one Vijay Myneni was having...
any suggestions??
03/08/2005 (6:23 pm)
Ok I have a similar problem. I cant see my game in the master server, in the cmd it says 0 server found. Also I cant see anything on the masterServer gui when the gametype is "FPS Starter Kit" even though cmd says 1 server found. i have onServerCreated() function call in createServer function so this cant be like the one Vijay Myneni was having...
any suggestions??
#6
03/08/2005 (6:46 pm)
I think I found the problem I forgot to change the GameType in common/server/game.cs file now all the GameType values are same but this time master.garagames.com id down :(( no pinging...
Torque Owner Vijay Myneni
I was using a lobby system, so I was delaying the loading of the mission until after all the players were ready (similar to what the rts kit does). I just didn't realize that when I moved that code out of createServer(), I also moved the call to onServerCreated(). So the server creation code wasn't happening until after everyone was ready. Okay on a LAN, not so okay otherwise, because the code that sets the server gametype happens in that function. Dumb dumb dumb on my part.