Theronguard / Emergency-Dice

A lethal company mod. Adds new equipment and scrap.
3 stars 3 forks source link

Dice does nothing in v1.1.19 #14

Closed Fr0zka closed 7 months ago

Fr0zka commented 7 months ago

i haven't tried on non-modded moons, but when i throw a dice, it stays on the ground doing nothing and i get this error :

[16:55:25.1527322] [Error  : Unity Log] MissingMethodException: Method not found: void .Landmine.SpawnExplosion(UnityEngine.Vector3,bool,single,single,int,single,UnityEngine.GameObject)
Stack trace:
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <e27997765c1848b09d8073e5d642717a>:IL_0026)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
MysteryDice.Dice.DieBehaviour:DropAndBlock(UInt64)
MysteryDice.Dice.DieBehaviour:SyncDropClientRPC(UInt64)
MysteryDice.Dice.DieBehaviour:__rpc_handler_2874552817(NetworkBehaviour, FastBufferReader, __RpcParams)
Unity.Netcode.RpcMessageHelpers:Handle(NetworkContext&, RpcMetadata&, FastBufferReader&, __RpcParams&)
Unity.Netcode.ClientRpcMessage:Handle(NetworkContext&)
Unity.Netcode.NetworkBehaviour:__endSendClientRpc(FastBufferWriter&, UInt32, ClientRpcParams, RpcDelivery)
MysteryDice.Dice.DieBehaviour:SyncDropClientRPC(UInt64)
MysteryDice.Dice.DieBehaviour:SyncDropServerRPC(UInt64)
MysteryDice.Dice.DieBehaviour:__rpc_handler_775119853(NetworkBehaviour, FastBufferReader, __RpcParams)
Unity.Netcode.RpcMessageHelpers:Handle(NetworkContext&, RpcMetadata&, FastBufferReader&, __RpcParams&)
Unity.Netcode.ServerRpcMessage:Handle(NetworkContext&)
Unity.Netcode.NetworkBehaviour:__endSendServerRpc(FastBufferWriter&, UInt32, ServerRpcParams, RpcDelivery)
MysteryDice.Dice.DieBehaviour:SyncDropServerRPC(UInt64)
MysteryDice.Dice.DieBehaviour:ItemActivate(Boolean, Boolean)
GrabbableObject:DMD<GrabbableObject::UseItemOnClient>(GrabbableObject, Boolean)
GameNetcodeStuff.PlayerControllerB:DMD<GameNetcodeStuff.PlayerControllerB::ActivateItem_performed>(PlayerControllerB, CallbackContext)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)

[16:55:25.1527322] [Error  : Unity Log] MissingMethodException: Method not found: void .Landmine.SpawnExplosion(UnityEngine.Vector3,bool,single,single,int,single,UnityEngine.GameObject)
Stack trace:
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <e27997765c1848b09d8073e5d642717a>:IL_0026)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
MysteryDice.Dice.DieBehaviour:DropAndBlock(UInt64)
MysteryDice.Dice.DieBehaviour:SyncDropClientRPC(UInt64)
MysteryDice.Dice.DieBehaviour:__rpc_handler_2874552817(NetworkBehaviour, FastBufferReader, __RpcParams)
Unity.Netcode.RpcMessageHelpers:Handle(NetworkContext&, RpcMetadata&, FastBufferReader&, __RpcParams&)
Unity.Netcode.ClientRpcMessage:Handle(NetworkContext&)
Unity.Netcode.NetworkBehaviour:__endSendClientRpc(FastBufferWriter&, UInt32, ClientRpcParams, RpcDelivery)
MysteryDice.Dice.DieBehaviour:SyncDropClientRPC(UInt64)
MysteryDice.Dice.DieBehaviour:SyncDropServerRPC(UInt64)
MysteryDice.Dice.DieBehaviour:__rpc_handler_775119853(NetworkBehaviour, FastBufferReader, __RpcParams)
Unity.Netcode.RpcMessageHelpers:Handle(NetworkContext&, RpcMetadata&, FastBufferReader&, __RpcParams&)
Unity.Netcode.ServerRpcMessage:Handle(NetworkContext&)
Unity.Netcode.NetworkBehaviour:__endSendServerRpc(FastBufferWriter&, UInt32, ServerRpcParams, RpcDelivery)
MysteryDice.Dice.DieBehaviour:SyncDropServerRPC(UInt64)
MysteryDice.Dice.DieBehaviour:ItemActivate(Boolean, Boolean)
GrabbableObject:DMD<GrabbableObject::UseItemOnClient>(GrabbableObject, Boolean)
GameNetcodeStuff.PlayerControllerB:DMD<GameNetcodeStuff.PlayerControllerB::ActivateItem_performed>(PlayerControllerB, CallbackContext)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
Theronguard commented 7 months ago

Tried fixing this issue in 1.1.20. Hopefully it will work now thanks to the @PrimoDev23 's pull request #15

Fr0zka commented 7 months ago

Oooooooh good job to y'all ^^ will try

PrimoDev23 commented 7 months ago

Sadly won't work, because there are other methods to be ported or the library has to be compiled against v49 I will check on this tomorrow and if it is worth the effort, since v50 is out now

CoolLKKPS commented 7 months ago

i think it fixed in 1.1.20 bc no error log and works fine, but idk

PrimoDev23 commented 7 months ago

It works fine in V50, but does nothing on v49. I already provided a way to fix compatibility issues, so we gotta wait until the dev got some time

Theronguard commented 7 months ago

Similar to #13. Check my last comment if you want to know why this happened and how to fix it.