Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: OverrideAgentDamage Target Invocation Exception #9

Open
EgardA opened this issue May 13, 2023 · 0 comments
Open

[Bug Report]: OverrideAgentDamage Target Invocation Exception #9

EgardA opened this issue May 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@EgardA
Copy link
Contributor

EgardA commented May 13, 2023

What happened?

Throwable thrown hit my AI, crashed on invoking Agent.RegisterBlow

Steps to reproduce

Throw a spear and pray?

Relevant log output

[(4280) 20:37:10 VRB] Publishing NetworkDamageAgent to 68.117.137.52:56288
[(4280) 20:37:10 VRB] Publishing AgentDied from Agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:10 WRN] 057ae0b4-37c3-4b86-b058-14ae513bdc80 has not been registered as a controlled agent
[(4280) 20:37:11 VRB] Publishing AgentShoot from Agent
[(4280) 20:37:11 DBG] Sending Agent Shoot with index 15
[(4280) 20:37:11 VRB] Publishing NetworkAgentShoot to all clients from PublishNetworkEvent
[(4280) 20:37:12 INF] Received network event from 68.117.137.52:56288 of NetworkAgentShoot
[(4280) 20:37:12 VRB] Publishing NetworkAgentShoot from NetPeer
[(4280) 20:37:12 DBG] Firing missile with id 14
[(4280) 20:37:12 VRB] Publishing PeerMissileAdded from MissileHandler
[(4280) 20:37:12 INF] Received network event from 68.117.137.52:56288 of NetworkDamageAgent
[(4280) 20:37:12 VRB] Publishing NetworkDamageAgent from NetPeer
[(4280) 20:37:12 VRB] Publishing NetworkAgentDamaged to all client but 68.117.137.52:56288
[(4280) 20:37:12 ERR] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at TaleWorlds.MountAndBlade.Mission.OnAgentHit(Agent affectedAgent, Agent affectorAgent, Blow& b, AttackCollisionData& collisionData, Boolean isBlocked, Single damagedHp)
   at TaleWorlds.MountAndBlade.Agent.HandleBlow(Blow& b, AttackCollisionData& collisionData)
   at TaleWorlds.MountAndBlade.Agent.RegisterBlow(Blow blow, AttackCollisionData& collisionData)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Missions.Services.Agents.Patches.AgentDamagePatch.<>c__DisplayClass1_0.<OverrideAgentDamage>b__0()
   at Common.GameLoopRunner.Update(TimeSpan frameTime)
   at Common.UpdateableList.UpdateAll(TimeSpan frameTime)
   at MissionTestMod.TestMod.OnApplicationTick(Single dt)
   at TaleWorlds.MountAndBlade.Module.OnApplicationTick(Single dt)
   at TaleWorlds.DotNet.Managed.ApplicationTick(Single dt)
@EgardA EgardA added the bug Something isn't working label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant