現在VRゲームにMUNで通信をさせようとしています。
プレイヤーの同期はうまくいき、プレイヤーだけを動かしている状態なら通信は継続されるのですが、
敵NPCを出現させると、ルームに入室したほうがしばらくして切断されてしまいます。ネットワーク環境に問題はありませんでした。
環境は2台のPCを使って通信をやっています。
エラーの内容は以下の通りです。
エラー1:ルーム入室時に発生
InvalidCastException: Cannot cast from source type to destination type.
MonobitEngine.MonobitAnimatorView.Deserialize (MonobitEngine.MonobitStream stream) (at Assets/Monobit Unity Networking/Plugins/MonobitNetwork/MonobitAnimatorView.cs:196)
MonobitEngine.MonobitAnimatorView.OnMonobitSerializeView (MonobitEngine.MonobitStream stream, MonobitEngine.MonobitMessageInfo info) (at Assets/Monobit Unity Networking/Plugins/MonobitNetwork/MonobitAnimatorView.cs:143)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
MonobitEngineBase.MonobitView+SerializeViewMethod.Read (MonobitEngine.MonobitStream stream, MonobitEngine.MonobitMessageInfo info)
MonobitEngineBase.MonobitView.DeserializeView (MonobitEngine.MonobitStream stream, MonobitEngine.MonobitMessageInfo info)
A.K.A (System.Object[] , MonobitEngine.MonobitPlayer , Int16 )
A.J.A (mun.STREAM.RoomRPCResponse& )
mun.MunClientSessionToRoomServer.OnReadRecordCallback (IntPtr pMunRoom, IntPtr connection_data, UInt32 seqnum, UInt16 options, UInt16 payload_type, IntPtr payload, UInt32 payload_len)
(wrapper native-to-managed) mun.MunClientSessionToRoomServer:OnReadRecordCallback (intptr,intptr,uint,uint16,uint16,intptr,uint)
mun.MunClient.FixedUpdate ()
エラー2:切断時に発生
Error from mun_room_server. status=KEEPALIVE_TIMEOUT(MRS_KEEPALIVE_TIMEOUT: Keepalive timeout)
UnityEngine.Debug:LogError(Object)
Mrs:mrs_console_log(MrsLogLevel, String)
Mrs:mrs_output_log(MrsLogLevel, String)
Mrs:MRS_LOG_ERR(String, Object[])
mun.MunLogger:MRSEXT_LOG_ERR(String, Object[])
mun.MunClientSessionToRoomServer:OnErrorCallback(IntPtr, IntPtr, MrsConnectionError)
Mrs:mrs_update()
mun.MunClient:FixedUpdate()
よろしくお願いします。