Malcolm-Q / LC-LateGameUpgrades

Repo for the LateGameUpgrades Lethal Company Mod.
MIT License
13 stars 9 forks source link

Discombobulator fails to work and throws exception #435

Closed remiX- closed 7 months ago

remiX- commented 7 months ago

Hi,

Our lord and saviour Mr discombobulator isn't working :( Fails on both host & client

image

MissingMethodException: Method not found: void .EnemyAI.HitEnemy(int,GameNetcodeStuff.PlayerControllerB,bool)
  at MoreShipUpgrades.UpgradeComponents.TierUpgrades.Discombobulator.PlayAudioAndUpdateCooldownServerRpc () [0x000bc] in <0bed59bc311b4ebd96ea0533cb590139>:IL_00BC 
  at MoreShipUpgrades.UpgradeComponents.TierUpgrades.Discombobulator.__rpc_handler_2657042876 (Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams) [0x0002e] in <0bed59bc311b4ebd96ea0533cb590139>:IL_002E 
  at (wrapper delegate-invoke) <Module>.invoke_void_NetworkBehaviour_FastBufferReader___RpcParams(Unity.Netcode.NetworkBehaviour,Unity.Netcode.FastBufferReader,Unity.Netcode.__RpcParams)
  at Unity.Netcode.RpcMessageHelpers.Handle (Unity.Netcode.NetworkContext& context, Unity.Netcode.RpcMetadata& metadata, Unity.Netcode.FastBufferReader& payload, Unity.Netcode.__RpcParams& rpcParams) [0x0004e] in <895801699cfc4b4ab52267f31e2a4998>:IL_004E 
Rethrow as Exception: Unhandled RPC exception!
WhiteSpike commented 7 months ago

Huh, odd. Thought I compiled with v50 assembly, not v49. I already know the issue so when I will look at this when I get the time.

WhiteSpike commented 7 months ago

I made a release which I wouldn't really count as another version for this mod (as it's just making sure the files are compiled correctly) Can you confirm if this issue still persists? I tried it on my game instance and it was applying damage to the dogs correctly.

remiX- commented 7 months ago

Cool yep looks like it's not throwing an error now :) Will check again tomorrow if it does indeed stun enemies but it should