You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Different errors occuring, which have possibly separate root causes. See example error stacks:
System.NullReferenceException: "Object reference not set to an instance of an object." for objIds.Add(newId, castedObj) MapEventSideLifetimeHandler
if (objectManager.AddNewObject(payload.What.Instance, out var mapEventSideId) == false) return;
(Instance was RaidEvent in that case)
System.NullReferenceException
message = Object reference not set to an instance of an object.
Error stack: System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) in System.Collections.Generic\Dictionary.cs: line1222 at GameInterface.Services.Registry.RegistryBase1.RegisterNewObject(Object obj, String& id) in GameInterface\Services\Registry\RegistryBase.cs: line88
(MapEvent was Battle in that case)
System.InvalidOperationException
msg = Type GameInterface.Services.BesiegerCamps.Messages.NetworkCreateBesiegerCamp is not registered with the serialization type mapper
Error stack: Common.Serialization.ProtoBufSerializer.Serialize(Object obj) in Coop.Core\Common\Serialization\ProtoBufSerializer.cs: line49
at Coop.Core.Common.Network.CoopNetworkBase.SerializeMessage(IMessage message) in Coop.Core\Common\Network\CoopNetworkBase.cs: line126
at Coop.Core.Common.Network.CoopNetworkBase.SendAll(IMessage message) in Coop.Core\Common\Network\CoopNetworkBase.cs: line107
at GameInterface.Services.BesiegerCamps.Handlers.BesiegerCampLifetimeHandler.Handle(MessagePayload`1 payload) in GameInterface\Services\BesiegerCamps\Handlers\BesiegerCampLifetimeHandler.cs: line49
Instance.m_Queue.Enqueue((action, ewh));
GameloopRunner.RunOnMainThread in MobilePropertyHandler)
All errors occurred multiple times but it is not easy to reproduce (especially 4., sometimes happened after entering/waiting in village)
Exception of "System.InvalidOperationException" in Common.dll ocurred,
Type GameInterface.Services.BesiegerCamps.Messages.NetworkCreateBesiegerCamp is not registered with the serialization type mapper
Stack:
Common.dll!Common.Serialization.ProtoBufSerializer.Serialize(object obj) Zeile 46 C#
Coop.Core.dll!Coop.Core.Common.Network.CoopNetworkBase.SerializeMessage(Common.Messaging.IMessage message) Zeile 131 C#
Coop.Core.dll!Coop.Core.Common.Network.CoopNetworkBase.SendAll(Common.Messaging.IMessage message) Zeile 112 C#
GameInterface.dll!GameInterface.Services.BesiegerCamps.Handlers.BesiegerCampLifetimeHandler.Handle(Common.Messaging.MessagePayload<GameInterface.Services.BesiegerCamps.Messages.BesiegerCampCreated> payload) Zeile 49 C#
[Übergang von Nativ zu Verwaltet]
[Übergang von Verwaltet zu Nativ]
Common.dll!Common.Messaging.WeakDelegate.Invoke(object[] parameters) Zeile 35 C#
Common.dll!Common.Messaging.MessageBroker.Publish<GameInterface.Services.BesiegerCamps.Messages.BesiegerCampCreated>(object source, GameInterface.Services.BesiegerCamps.Messages.BesiegerCampCreated message) Zeile 73 C#
GameInterface.dll!GameInterface.Services.BesiegerCamps.Patches.BesiegerCampCreationPatches.Prefix(ref TaleWorlds.CampaignSystem.Siege.BesiegerCamp __instance) Zeile 35 C#
For New Contributors
How to contribute
Description
Different errors occuring, which have possibly separate root causes. See example error stacks:
MapEventSideLifetimeHandler
if (objectManager.AddNewObject(payload.What.Instance, out var mapEventSideId) == false) return;
(Instance was RaidEvent in that case)
message = Object reference not set to an instance of an object.
Error stack: System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add) in System.Collections.Generic\Dictionary.cs: line1222 at GameInterface.Services.Registry.RegistryBase
1.RegisterNewObject(Object obj, String& id) in GameInterface\Services\Registry\RegistryBase.cs: line88(MapEvent was Battle in that case)
System.InvalidOperationException
msg = Type GameInterface.Services.BesiegerCamps.Messages.NetworkCreateBesiegerCamp is not registered with the serialization type mapper
Error stack: Common.Serialization.ProtoBufSerializer.Serialize(Object obj) in Coop.Core\Common\Serialization\ProtoBufSerializer.cs: line49
at Coop.Core.Common.Network.CoopNetworkBase.SerializeMessage(IMessage message) in Coop.Core\Common\Network\CoopNetworkBase.cs: line126
at Coop.Core.Common.Network.CoopNetworkBase.SendAll(IMessage message) in Coop.Core\Common\Network\CoopNetworkBase.cs: line107
at GameInterface.Services.BesiegerCamps.Handlers.BesiegerCampLifetimeHandler.Handle(MessagePayload`1 payload) in GameInterface\Services\BesiegerCamps\Handlers\BesiegerCampLifetimeHandler.cs: line49
Instance.m_Queue.Enqueue((action, ewh));
GameloopRunner.RunOnMainThread in MobilePropertyHandler)
All errors occurred multiple times but it is not easy to reproduce (especially 4., sometimes happened after entering/waiting in village)
Intended Design
Location
Create a branch based from development
Related Issues
May be related to #839
Requirements
Additional information
Definition of Done
The text was updated successfully, but these errors were encountered: