||unity-dev|| joining rooms

Discussion list for Unity developers. unity-dev at moock.org
Wed Aug 9 12:31:33 CDT 2006


hi steve,
i think i'd have to have access to the entire codebase to diagnose this 
problem. unfortunately, right now I don't have time to help investigate 
on that level. Unity is still on official hiatus, so my time to provide 
support is limited. (see: 
http://www.moock.org/pipermail/unity-dev/2005-October/003562.html )

from the behavior you are describing, it doesn't sound like this is a 
unity bug, but more likely a normal coding issue. hopefully you will be 
a will to identify the problem through normal debugging.

sorry I can't be of more help,
colin


Discussion list for Unity developers. wrote:
> HI Colin,
> thanks for your reply.
> 
> 
> i have the 2 logs below.
> 
> 
> the issue seems to be that the onJoin does not trigger for user 12  
> like it does for user 11.
> 
> in the end the rooms each have 2 clients.
> the difference is that ONJoin is called on for each time the  
> room.join is called.
> 
> user 12 however only was able to call onJoin on its on room not the  
> room user11 created.
> Evernthought the log says  "Room 'DrumFi.user_room_11' notifying  
> observers that client '12' joined."
> but no onJoin.
> 
> I believe both are using the Drumfi namespace.
> 
> 
> let me know if you want to see the code or screen images.
> 
> thanks so much for your help.
> 
> steve
> 
> 
> user_11 ---------------------------------------------------
> 
> 3:18:31PM	DEBUG	AXView______AXViewA ClientChatDemo object
> 3:18:31PM	DEBUG	NameSpace 'DrumFi' notifying observers of new room:  
> 'user_room_11'.
> 3:18:31PM	DEBUG	Room join button clicked. Joining: DrumFi.user_room_11
> 3:18:31PM	DEBUG	UClient notified of room creation results for room  
> 'DrumFi.user_room_11': ROOM_CREATED
> 3:18:31PM	DEBUG	Room 'user_room_11' notifying observers of new client  
> count: 0
> 3:18:31PM	DEBUG	upcOnJoinRoom received. status: ROOM_JOINED. room:  
> DrumFi.user_room_11
> 3:18:31PM	DEBUG	Setting attribute for room: DrumFi.user_room_11,  
> welcomeMsg=This is the ax of 11
> 3:18:31PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> it was joined.
> 3:18:31PM	DEBUG	onJoin--------------
> 3:18:31PM	DEBUG	onJoin---INSIDE-----------
> 3:18:31PM	INFO	Room 'DrumFi.user_room_11' joined.
> 3:18:32PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_11  
> to client: 11
> 3:18:32PM	DEBUG	Room 'user_room_11' notifying observers of new client  
> count: 1
> 3:18:32PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> client '11' joined.
> 3:18:32PM	DEBUG	NameSpace: DrumFi now has: 1 clients.
> 3:18:47PM	DEBUG	RemoteClientManager added a new RemoteClient, id: 12
> 3:18:47PM	DEBUG	RemoteClientManager added roomID: DrumFi.DrumFiLobby  
> to client: 12
> 3:18:47PM	DEBUG	Setting client12 attribute:  
> null._CONNECTTIME=1154557127577. Old value: undefined
> 3:18:47PM	DEBUG	Setting client12 attribute: null._IP=127.0.0.1. Old  
> value: undefined
> 3:18:47PM	DEBUG	Room 'DrumFiLobby' notifying observers of new client  
> count: 2
> 3:18:47PM	DEBUG	Room 'DrumFi.DrumFiLobby' notifying observers that  
> client '12' joined.
> 3:18:47PM	DEBUG	NameSpace: DrumFi now has: 2 clients.
> 3:18:49PM	DEBUG	AxRoom  BORN_______________7
> 3:18:49PM	DEBUG	AXView______AXViewA ClientChatDemo object
> 3:18:49PM	DEBUG	NameSpace 'DrumFi' notifying observers of new room:  
> 'user_room_12'.
> 3:18:49PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 0
> 3:18:54PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 1
> 3:19:00PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_11  
> to client: 12
> 3:19:00PM	DEBUG	Setting client12 attribute:  
> null._CONNECTTIME=1154557127577. Old value: 1154557127577
> 3:19:00PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:00PM	DEBUG	Setting client12 attribute: null._IP=127.0.0.1. Old  
> value: 127.0.0.1
> 3:19:00PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:00PM	DEBUG	Room 'user_room_11' notifying observers of new client  
> count: 2
> 3:19:00PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> client '12' joined.
> 3:19:12PM	DEBUG	XXXXX__triggered the join btn handler -- user_room_12
> 3:19:12PM	DEBUG	Room join button clicked. Joining: DrumFi.user_room_12
> 3:19:12PM	DEBUG	upcOnJoinRoom received. status: ROOM_JOINED. room:  
> DrumFi.user_room_12
> 3:19:12PM	DEBUG	Setting attribute for room: DrumFi.user_room_12,  
> welcomeMsg=This is the ax of 12
> 3:19:12PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> it was joined.
> 3:19:12PM	DEBUG	onJoin--------------
> 3:19:12PM	DEBUG	onJoin---INSIDE-----------
> 3:19:12PM	INFO	Room 'DrumFi.user_room_12' joined.
> 3:19:12PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_12  
> to client: 12
> 3:19:12PM	DEBUG	Setting client12 attribute:  
> null._CONNECTTIME=1154557127577. Old value: 1154557127577
> 3:19:12PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:12PM	DEBUG	Setting client12 attribute: null._IP=127.0.0.1. Old  
> value: 127.0.0.1
> 3:19:12PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:12PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> client '12' joined.
> 3:19:12PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_12  
> to client: 11
> 3:19:12PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 2
> 3:19:12PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> client '11' joined.
> 
> 
> 
> user_12 ---------------------------------------------------
> 
> :18:47PM	DEBUG	upcOnJoinRoom received. status: ROOM_JOINED. room:  
> DrumFi.DrumFiLobby
> 3:18:47PM	DEBUG	Setting attribute for room: DrumFi.DrumFiLobby,  
> welcomeMsg=Welcome to the drum fi lobby. this is where is starts.
> 3:18:47PM	DEBUG	Room 'DrumFi.DrumFiLobby' notifying observers that it  
> was joined.
> 3:18:47PM	INFO	Room 'DrumFi.DrumFiLobby' joined.
> 3:18:47PM	DEBUG	RemoteClientManager added roomID: DrumFi.DrumFiLobby  
> to client: 12
> 3:18:47PM	DEBUG	Room 'DrumFi.DrumFiLobby' notifying observers that  
> client '12' joined.
> 3:18:47PM	DEBUG	RemoteClientManager added a new RemoteClient, id: 11
> 3:18:47PM	DEBUG	RemoteClientManager added roomID: DrumFi.DrumFiLobby  
> to client: 11
> 3:18:47PM	DEBUG	Setting client11 attribute:  
> null._CONNECTTIME=1154557107601. Old value: undefined
> 3:18:47PM	DEBUG	Setting client11 attribute: null._IP=127.0.0.1. Old  
> value: undefined
> 3:18:47PM	DEBUG	Room 'DrumFiLobby' notifying observers of new client  
> count: 2
> 3:18:47PM	DEBUG	Room 'DrumFi.DrumFiLobby' notifying observers that  
> client '11' joined.
> 3:18:49PM	DEBUG	Room factory for NameSpace 'DrumFi' set to:  
> AxRoomFactory
> 3:18:49PM	DEBUG	AxRoom  BORN_______________6
> 3:18:49PM	DEBUG	AXView______AXViewA ClientChatDemo object
> 3:18:49PM	DEBUG	NameSpace 'DrumFi' notifying observers of new room:  
> 'user_room_12'.
> 3:18:49PM	DEBUG	Room join button clicked. Joining: DrumFi.user_room_12
> 3:18:49PM	DEBUG	UClient notified of room creation results for room  
> 'DrumFi.user_room_12': ROOM_CREATED
> 3:18:49PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 0
> 3:18:49PM	DEBUG	upcOnJoinRoom received. status: ROOM_JOINED. room:  
> DrumFi.user_room_12
> 3:18:49PM	DEBUG	Setting attribute for room: DrumFi.user_room_12,  
> welcomeMsg=This is the ax of 12
> 3:18:49PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> it was joined.
> 3:18:49PM	DEBUG	onJoin--------------
> 3:18:49PM	DEBUG	onJoin---INSIDE-----------
> 3:18:49PM	INFO	Room 'DrumFi.user_room_12' joined.
> 3:18:49PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_12  
> to client: 12
> 3:18:49PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 1
> 3:18:49PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> client '12' joined.
> 3:18:52PM	DEBUG	NameSpace: DrumFi now has: 2 clients.
> 3:19:00PM	DEBUG	XXXXX__triggered the join btn handler -- user_room_11
> 3:19:00PM	DEBUG	Room join button clicked. Joining: DrumFi.user_room_11
> 3:19:00PM	DEBUG	upcOnJoinRoom received. status: ROOM_JOINED. room:  
> DrumFi.user_room_11
> 3:19:00PM	DEBUG	Setting attribute for room: DrumFi.user_room_11,  
> welcomeMsg=This is the ax of 11
> 3:19:00PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> it was joined.
> 3:19:00PM	INFO	Room 'DrumFi.user_room_11' joined.
> 3:19:00PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_11  
> to client: 12
> 3:19:00PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> client '12' joined.
> 3:19:00PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_11  
> to client: 11
> 3:19:00PM	DEBUG	Setting client11 attribute:  
> null._CONNECTTIME=1154557107601. Old value: 1154557107601
> 3:19:00PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:00PM	DEBUG	Setting client11 attribute: null._IP=127.0.0.1. Old  
> value: 127.0.0.1
> 3:19:00PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:01PM	DEBUG	Room 'user_room_11' notifying observers of new client  
> count: 2
> 3:19:01PM	DEBUG	Room 'DrumFi.user_room_11' notifying observers that  
> client '11' joined.
> 3:19:12PM	DEBUG	RemoteClientManager added roomID: DrumFi.user_room_12  
> to client: 11
> 3:19:12PM	DEBUG	Setting client11 attribute:  
> null._CONNECTTIME=1154557107601. Old value: 1154557107601
> 3:19:12PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:12PM	DEBUG	Setting client11 attribute: null._IP=127.0.0.1. Old  
> value: 127.0.0.1
> 3:19:12PM	DEBUG	New attribute value matches old value. Not changed.
> 3:19:12PM	DEBUG	Room 'user_room_12' notifying observers of new client  
> count: 2
> 3:19:12PM	DEBUG	Room 'DrumFi.user_room_12' notifying observers that  
> client '11' joined.
> 
> 
> On Aug 2, 2006, at 7:58 AM, Discussion list for Unity developers. wrote:
> 
>> hi there,
>> can you post the client and server logs so we can see what happens  
>> when
>> you attempt to join the room? it sounds like maybe the room object
>> doesn't exist on the second client, perhaps because you're not  
>> observing
>> the namespace.
>>
>> if it's not obvious from the logs, we'll have to take a look at the  
>> code.
>>
>> colin
>>
>>
>> Discussion list for Unity developers. wrote:
>>> Colin,
>>>
>>> Sorry for this post if it has been covered before but I can't seem to
>>> get a client ID with a higher number to join a room created with a
>>> client ID with a lower number.
>>>
>>> If I create a room with a user id of 6, then a another client with
>>> the id of 7 cannot join the room made from the client of 6.
>>>
>>> I would be happy to share some code but not sure which to share.
>>>
>>>
>>> thanks for any help you u can provide.
>>>
>>>
>>>
>>> --
>>> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/ 
>>> mailman/listinfo/unity-dev/
>>>
>>> superb hosting for this list and moock.org is generously provided  
>>> by Rackspace. See: http://www.rackspace.com/?supbid=moock
>> --
>> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/ 
>> mailman/listinfo/unity-dev/
>>
>> superb hosting for this list and moock.org is generously provided  
>> by Rackspace. See: http://www.rackspace.com/?supbid=moock
> 
> --
> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/
> 
> superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock


More information about the unity-dev mailing list