錯誤的發生原因
原因可能與Photon Server功能之一的外掛程式正在執行有關。在Photon中,伺服端邏輯可使用外掛程式進行開發。預設中允許執行範例程式「WebHooksPlugin」。有可能是因為WebHooksPlugin所連結的目標 http://photon-photon-pluginsdk-v1.webscript.io/GameCreate 發生問題,才導致此次的錯誤出現。
修正方式
將Photon.LoadBalancing.dll.config的WebHooksPlugin取消即可解決。
請將PluginSettings Enable設定為false。
為防萬一,請將Master/Game兩方的伺服器均設定為無效較為妥當。
如下所示:
<PluginSettings Enabled="false"> <Plugins> <Plugin Name="WebHooksPlugin1.2"
錯誤訊息的參考內容
2016-08-08 15:56:06,101 [16] ERROR Photon.Hive.HiveGame.HiveHostGame.Plugin - UnhandledException:'Name:Webhooks, Version:1.0 AppId:63EC-4E11-A047-D998-9264-B5F6, AppVersion:'. Exception: System.NullReferenceException:物件狀態中並未設定物件參照
地點 Photon.Hive.Plugin.WebHooks.WebHooksPlugin.OnLeave(ILeaveGameCallInfo info) 地點
d:\dev\photon-socketserver-sdk_cloud\src-server\Plugins\WebHooks1.2\WebHooksPlugin.cs:行 304 場所 Photon.Hive.Plugin.PluginBase.Photon.Hive.Plugin.IGamePlugin.OnLeave(ILeaveGameCallInfo info) 場所 d:\dev\photon-socketserver-sdk_cloud\src-server\HivePlugin\PluginBase.cs:行 275 2016-08-08 15:56:09,695 [25] INFO Photon.Hive.Plugin.PluginManager - Plugin successfully created:Type:Photon.Hive.Plugin.WebHooks.PluginFactory, path:C:\Photon\deploy\Plugins\WebHooksPlugin1.2\\bin\PhotonHive.WebhooksPlugin1.2.dll 2016-08-08 15:56:10,022 [25] ERROR Photon.Hive.HiveGame.HiveHostGame.Plugin - Failed to load state from http://photon-photon-pluginsdk-v1.webscript.io/GameCreate? : Error response ResultCode='1' Message='GameId not Found.'. 2016-08-08 15:41:39,040 [48] WARN Photon.Hive.HiveGame - JoinApplyGameStateChanges: Game '8c8ec756-2035-4e6b-94a1-15c5b6b9e85c' userId '224' failed to join. msg:Join failed: UserId '224' already joined the specified game (JoinMode=0). -- peer:GameClientPeer: PID 277, IsConnected: True, IsDisposed: False, Last Activity: Operation 226 at UTC 2016/08/08 6:41:39 in Room 8c8ec756-2035-4e6b-94a1-15c5b6b9e85c, IP 60.65.229.4:56794, 2016-08-08 15:41:39,041 [48] ERROR Photon.Hive.HiveGame.HiveHostGame.Plugin - UnhandledException:'Name:Webhooks, Version:1.0 AppId:63EC-4E11-5F33-D998-A1AD-A127, AppVersion:'. Exception: System.NullReferenceException:物件狀態中並未設定物件參照
地點 Photon.Hive.Plugin.WebHooks.WebHooksPlugin.OnLeave(ILeaveGameCallInfo info)
地點
d:\dev\photon-socketserver-sdk_cloud\src-server\Plugins\WebHooks1.2\WebHooksPlugin.cs:行 304 場所 Photon.Hive.Plugin.PluginBase.Photon.Hive.Plugin.IGamePlugin.OnLeave(ILeaveGameCallInfo info) 場所 d:\dev\photon-socketserver-sdk_cloud\src-server\HivePlugin\PluginBase.cs:行 275
評論
0 條評論
請登入寫評論。