Game Development Community

querySingleServer gets stuck (T3D/TGEA)

by Robert Fritzen · in Torque 3D Professional · 08/28/2011 (10:26 pm) · 8 replies

So, I'm not the only one encountering this issue now.

This Thread Has Info

So, apparently when you try to call querySingleServer, it will not get past the first ping on occasion.

I'm not sure if Richard encountered the 0/0 player details, but I have a feeling it's related to this issue.

#1
08/28/2011 (10:45 pm)
Yup - 0/0 players and no mission name reported if you cancel out. However, I can then connect to the server using the supplied address.
#2
08/31/2011 (10:50 am)
Any ideas on this one, it's obviously quite important that this works for multiplayer games.
#3
08/31/2011 (11:31 am)
I suppose I could look into it and see whats going on later on tonight. I was planning on rewriting that entire source file anyway for cleanup and making it easier to implement customizable fields for additional server details.
#4
09/03/2011 (10:03 am)
Keep me posted on this, my FPS tutorial cannot proceed until this is resolved as I need the server listing for my Master Server implement to function properly to release it.
#5
09/22/2011 (8:21 am)
Sorry for the bump. Any updates on this one? I'd like to get this fixed up soon so I can test out some of the server connection authentication processes with my dev. team.
#6
09/23/2011 (12:23 pm)
You can still connect to the server if it gives you anything back. If you try to connect to the specified IP address it will hang, but if you then cancel out and then join the server that drops into your list (even with incomplete info) you can still connect.

As far as master servers, I haven't had to do more than change the IP in the prefs (both spots - core and game) to get them working, as long as there was actually a master server at the specified address.

Are you adding authentication prior to allowing access to your master servers?
#7
09/25/2011 (11:01 am)
The method I'm using to do so is a separate process. Auth is not being used prior to access.

The list server is stored as an MySQL database on my web server (List of IP's). When a player needs the server list it requests data from the MySQL database which is a list of IP addresses. I then use querySingleServer on that each IP in that list.

That's where this issue comes into play, it gets stuck on each IP, and the info does not come in unless I cancel it, and then it's incomplete.
#8
09/25/2011 (4:07 pm)
I see. I'm not sure why it stalls since it doesn't have a problem in the Refresh Server function. Some digging is in order.