Game Development Community

Problem With Simultaneous Logins

by Scott Doerrfeld · in Torque Game Engine · 08/06/2007 (9:26 am) · 7 replies

I am having an issue when two clients connect to a server at about the same time (within seconds of each other). On one of the clients it seems they aren't getting the Ghost Object for the other client's player --- even though the server show both clients are logged in. What could be going on here? Is this a known bug or is this something TGE is supposed to handle?

#1
08/06/2007 (10:33 am)
OK so I've been trying to replicate this in various ways....it MIGHT only happen when the ClientGroup on the server is empty at the time of the simultaneous logins...

...Nevermind scratch that it still happens if there is already someone on the server and two more people login...
#2
08/06/2007 (12:44 pm)
Another development (and this may be a serious bug):

I can get the problem to happen every time by timing the logins such that Client A's player gets added to the server while Client B is downloading the ghost always objects (Phase 2) for the mission. This will result in Client B NOT SEEING Client A's player at all. It simply never gets ghosted to Client B.

So is this an engine bug? If players are getting added to the scene as I am downloading ghost objects then I will never receive ghosts for those players?
#3
08/06/2007 (1:47 pm)
That's definitely not present in TGE 1.3,
and i'd be surprised if it's present in 1.5.
have you tested w/ a stock, unmodified build ?
#4
08/06/2007 (2:03 pm)
You should get the Ghost Update when you get past the initial update, no matter where you are in the process.
#5
08/07/2007 (7:34 am)
Did you make player objects scopeAlways somewhere? That would cause this behavior, since scopeAlways are fully networked on mission startup, and then never go out of scope.
#6
08/07/2007 (11:22 am)
@Stephen: Yes I do make all player objects scopeAlways when the objects are added. This is because I was having a problem with the setSkinName function not working for players that are outside of my current Zone (and thus out of my scope). The problem is described here in another thread: http://www.garagegames.com/mg/forums/result.thread.php?qt=64856. So it seems I have traded one problem for another. Can you give me any advice on how to handle this?
#7
08/07/2007 (1:57 pm)
I answered your question in the other thread (hopefully!)