We are sending a login request to a lobby extension(custom login), which searches an existing room or creates a new room for the user. Then a joinRoom call is made on the server side.
If we set broadcast to false in joinRoom, it works fine, but in the Unity IDE it says : Extension for the new room not found.
The xml is as follows:
Code: Select all
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='154' /></body></msg>
===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:Send(Hashtable, String, Int32, String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketConnection(Object, EventArgs)
SmartFoxClientAPI.SmartFoxClient:ConnectThread()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>, (len: 91) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [ RECEIVED ]: <msg t='sys'><body action='apiOK' r='0'></body></msg>, (len: 53) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : Called Smartfox call back: True (error: < >) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnConnection(Boolean, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.SysHandler:HandleApiOK(XmlNode)
SmartFoxClientAPI.Handlers.SysHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:XmlReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : LOGGING LOGGING ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnConnection(Boolean, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.SysHandler:HandleApiOK(XmlNode)
SmartFoxClientAPI.Handlers.SysHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:XmlReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [Sending]: <msg t='sys'><body action='login' r='0'><login z='DuneBuggy'><nick><![CDATA[User8CB8A6DE005B354]]></nick><pword><![CDATA[016442141RI19TCEZHEHEHCTCHE]]></pword></login></body></msg>
===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:Send(Hashtable, String, Int32, String)
SmartFoxClientAPI.SmartFoxClient:Login(String, String, String)
SF_Server:LoginUser()
SF_Server:OnConnection(Boolean, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.SysHandler:HandleApiOK(XmlNode)
SmartFoxClientAPI.Handlers.SysHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:XmlReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [ RECEIVED ]: {"t":"xt","b":{"o":{"AH":"logOK","name":"User8CB8A6DE005B354","id":3},"r":-1}}, (len: 78) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : RESPONSE RECEIVED ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnExtensionResponse(Object, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.ExtHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:JsonReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : Command: logOK ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnExtensionResponse(Object, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.ExtHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:JsonReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : LOGIN WAS SUCCESFUL ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnExtensionResponse(Object, String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.Handlers.ExtHandler:HandleMessage(Object, String)
SmartFoxClientAPI.SmartFoxClient:JsonReceived(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [ RECEIVED ]: <msg t='sys'><body action='rmList' r='0'><rmList><rm id='1' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[Lobby]]></n></rm></rmList></body></msg>, (len: 166) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [Sending - JSON]: {"t":"xt","b":{"c":"AI","p":{"BQ":"f30c0d85-3d75-4c61-b302-f6669252c3d2","AG":0,"AI":0},"r":-1,"x":"SFS_Lobby"}}
===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:SendJson(String)
SmartFoxClientAPI.SmartFoxClient:SendXtMessage(String, String, Hashtable, String, Int32)
SmartFoxClientAPI.SmartFoxClient:SendXtMessage(String, String, Hashtable, String)
SF_Server:SendXtMessage(SmartFoxClient, String, String, Hashtable, String)
SF_Server:SendLevelStateInfo(Boolean)
UiGameLobby:InitializeLobbyFirstTime()
UiGameLobby:Start()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
=========== SMARTFOX : [ RECEIVED ]: <msg t='sys'><body action='joinOK' r='5'><pid id='1'/><vars><var n='BQ' t='s'><![CDATA[f30c0d85-3d75-4c61-b302-f6669252c3d2]]></var><var n='AI' t='n'><![CDATA[0]]></var><var n='AG' t='n'><![CDATA[0]]></var></vars><uLs r='5'><u i='3' m='0' s='0' p='1'><n><![CDATA[User8CB8A6DE005B354]]></n><vars></vars></u></uLs></body></msg>, (len: 325) ===========
UnityEngine.Debug:Log(Object)
SF_Server:SFUnityLog(Object)
SF_Server:OnDebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:DebugMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleMessage(String)
SmartFoxClientAPI.SmartFoxClient:HandleSocketData()
System.MulticastDelegate:invoke_void()
(Filename: /Users/unity-build/Desktop/automatic-build-2/unity/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1651)
The Unity IDE throws the null reference exception and the build crashes.
I am assuming that it's because of the exception.
Sorry for the huge post. How do we overcome this issue?
Thanks in advance.