2025-02-08 12:00:21.5968 System.NullReferenceException: Object reference not set to an instance of an object. at Hotfix.System.AOIComponentSystem.GetCellSize(AOIComponent self) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 77 at Hotfix.System.AOIComponentHelper.GetAOICellSize(Scene scene) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 8 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 24 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) 2025-02-08 12:29:54.4990 type:Fantasy.Model.AOICell If you want to add multiple components of the same type, please implement IMultiEntity at Fantasy.Entitas.Entity.AddComponent[T](T component) at Hotfix.System.AOIComponentSystem.CalculateAoiCellBoundary(AOIComponent self, AOICell aoicell) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 109 at Hotfix.System.AOIComponentSystem.MoveCrossCell(AOIComponent self, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 61 at Hotfix.System.AOIComponentHelper.MoveCrossCell(Scene scene, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 10 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 44 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageDispatcherComponent.MessageHandler(Session session, Type type, Object message, UInt32 rpcId, UInt32 protocolCode) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.Scheduler(Session session, APackInfo packInfo) at Fantasy.Network.Session.Receive(APackInfo packInfo) at Fantasy.Network.KCP.KCPServerNetworkChannel.Input(ReadOnlyMemory`1 buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReceiveData(KcpHeader& header, UInt32& channelId, ReadOnlyMemory`1& buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReadPipeDataAsync() at System.IO.Pipelines.Pipe.ExecuteWithoutExecutionContext(Object state) at Fantasy.ThreadSynchronizationContext.<>c__DisplayClass2_0.b__0() at Fantasy.ThreadSynchronizationContext.Update() at Fantasy.MultiThreadScheduler.Loop(Scene scene, CancellationToken cancellationToken) at Fantasy.MultiThreadScheduler.<>c__DisplayClass5_0.b__0() 2025-02-08 12:29:54.4990 type:Fantasy.Model.AOICell If you want to add multiple components of the same type, please implement IMultiEntity at Fantasy.Entitas.Entity.AddComponent[T](T component) at Hotfix.System.AOIComponentSystem.CalculateAoiCellBoundary(AOIComponent self, AOICell aoicell) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 109 at Hotfix.System.AOIComponentSystem.MoveCrossCell(AOIComponent self, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 61 at Hotfix.System.AOIComponentHelper.MoveCrossCell(Scene scene, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 10 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 44 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageDispatcherComponent.MessageHandler(Session session, Type type, Object message, UInt32 rpcId, UInt32 protocolCode) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.Scheduler(Session session, APackInfo packInfo) at Fantasy.Network.Session.Receive(APackInfo packInfo) at Fantasy.Network.KCP.KCPServerNetworkChannel.Input(ReadOnlyMemory`1 buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReceiveData(KcpHeader& header, UInt32& channelId, ReadOnlyMemory`1& buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReadPipeDataAsync() at System.IO.Pipelines.Pipe.ExecuteWithoutExecutionContext(Object state) at Fantasy.ThreadSynchronizationContext.<>c__DisplayClass2_0.b__0() at Fantasy.ThreadSynchronizationContext.Update() at Fantasy.MultiThreadScheduler.Loop(Scene scene, CancellationToken cancellationToken) at Fantasy.MultiThreadScheduler.<>c__DisplayClass5_0.b__0() 2025-02-08 12:29:54.4990 type:Fantasy.Model.AOICell If you want to add multiple components of the same type, please implement IMultiEntity at Fantasy.Entitas.Entity.AddComponent[T](T component) at Hotfix.System.AOIComponentSystem.CalculateAoiCellBoundary(AOIComponent self, AOICell aoicell) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 109 at Hotfix.System.AOIComponentSystem.MoveCrossCell(AOIComponent self, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 61 at Hotfix.System.AOIComponentHelper.MoveCrossCell(Scene scene, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 10 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 44 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageDispatcherComponent.MessageHandler(Session session, Type type, Object message, UInt32 rpcId, UInt32 protocolCode) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.Scheduler(Session session, APackInfo packInfo) at Fantasy.Network.Session.Receive(APackInfo packInfo) at Fantasy.Network.KCP.KCPServerNetworkChannel.Input(ReadOnlyMemory`1 buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReceiveData(KcpHeader& header, UInt32& channelId, ReadOnlyMemory`1& buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReadPipeDataAsync() at System.IO.Pipelines.Pipe.ExecuteWithoutExecutionContext(Object state) at Fantasy.ThreadSynchronizationContext.<>c__DisplayClass2_0.b__0() at Fantasy.ThreadSynchronizationContext.Update() at Fantasy.MultiThreadScheduler.Loop(Scene scene, CancellationToken cancellationToken) at Fantasy.MultiThreadScheduler.<>c__DisplayClass5_0.b__0() 2025-02-08 12:29:54.4990 type:Fantasy.Model.AOICell If you want to add multiple components of the same type, please implement IMultiEntity at Fantasy.Entitas.Entity.AddComponent[T](T component) at Hotfix.System.AOIComponentSystem.CalculateAoiCellBoundary(AOIComponent self, AOICell aoicell) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 109 at Hotfix.System.AOIComponentSystem.MoveCrossCell(AOIComponent self, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 61 at Hotfix.System.AOIComponentHelper.MoveCrossCell(Scene scene, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 10 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 44 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageDispatcherComponent.MessageHandler(Session session, Type type, Object message, UInt32 rpcId, UInt32 protocolCode) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.Scheduler(Session session, APackInfo packInfo) at Fantasy.Network.Session.Receive(APackInfo packInfo) at Fantasy.Network.KCP.KCPServerNetworkChannel.Input(ReadOnlyMemory`1 buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReceiveData(KcpHeader& header, UInt32& channelId, ReadOnlyMemory`1& buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReadPipeDataAsync() at System.IO.Pipelines.Pipe.ExecuteWithoutExecutionContext(Object state) at Fantasy.ThreadSynchronizationContext.<>c__DisplayClass2_0.b__0() at Fantasy.ThreadSynchronizationContext.Update() at Fantasy.MultiThreadScheduler.Loop(Scene scene, CancellationToken cancellationToken) at Fantasy.MultiThreadScheduler.<>c__DisplayClass5_0.b__0() 2025-02-08 12:29:54.4990 type:Fantasy.Model.AOICell If you want to add multiple components of the same type, please implement IMultiEntity at Fantasy.Entitas.Entity.AddComponent[T](T component) at Hotfix.System.AOIComponentSystem.CalculateAoiCellBoundary(AOIComponent self, AOICell aoicell) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 109 at Hotfix.System.AOIComponentSystem.MoveCrossCell(AOIComponent self, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 61 at Hotfix.System.AOIComponentHelper.MoveCrossCell(Scene scene, AOIEntity aoiEntity) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\Helper\AOIComponentHelper.cs:line 10 at Hotfix.AOIEntitySystem.OnUpdatePosition(AOIEntity self, Vector2 pos, EAoiEntityState aoiState) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIEntitySystem.cs:line 44 at Hotfix.System.AOIComponentSystem.EnterCell(AOIComponent self, Int64 aoiEntityId, Vector2 pos) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\AOI\AOIComponentSystem.cs:line 27 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\MapComponentSystem.cs:line 36 at Hotfix.MapComponentSystem.EnterMap(MapComponent self, RoleUnit roleUnit, Int64 sessionId) at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Helper\MapHelper.cs:line 12 at Hotfix.Helper.MapHelper.EnterMap(Scene scene, RoleUnit roleId, Int64 sessionId) at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) in E:\UnityProject\TE_ARMain\GameServer\Server\Hotfix\Outter\Map\Handler\C2M_EnterMapHandler.cs:line 31 at Hotfix.C2M_EnterMapHandler.Run(Session session, C2M_EnterMapRequest request, M2C_EnterMapResponse response, Action reply) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageRPC`2.Handle(Session session, UInt32 rpcId, UInt32 messageTypeCode, Object message) at Fantasy.Network.Interface.MessageDispatcherComponent.MessageHandler(Session session, Type type, Object message, UInt32 rpcId, UInt32 protocolCode) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.HandlerAsync(Session session, APackInfo packInfo) at Fantasy.Scheduler.OuterMessageScheduler.Scheduler(Session session, APackInfo packInfo) at Fantasy.Network.Session.Receive(APackInfo packInfo) at Fantasy.Network.KCP.KCPServerNetworkChannel.Input(ReadOnlyMemory`1 buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReceiveData(KcpHeader& header, UInt32& channelId, ReadOnlyMemory`1& buffer) at Fantasy.Network.KCP.KCPServerNetwork.ReadPipeDataAsync() at System.IO.Pipelines.Pipe.ExecuteWithoutExecutionContext(Object state) at Fantasy.ThreadSynchronizationContext.<>c__DisplayClass2_0.b__0() at Fantasy.ThreadSynchronizationContext.Update() at Fantasy.MultiThreadScheduler.Loop(Scene scene, CancellationToken cancellationToken) at Fantasy.MultiThreadScheduler.<>c__DisplayClass5_0.b__0()