DeepWolf413 / Cozyheim-Mods

The git repo for all cozyheim mods - fixed by DeepWolf413
2 stars 0 forks source link

Error after updating to 217.46 #10

Closed PaloAlo closed 3 months ago

PaloAlo commented 3 months ago

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: Cozyheim.LevelingSystem.PatchXP_Pickable+PatchClass.Pickable_RPCSetPicked_Prefix (Pickable __instance, System.Int64 sender, System.Boolean picked, System.Boolean ___m_picked) (at <6be43cad2dd3489197eb86ea40f4750f>:0) (wrapper dynamic-method) Pickable.DMD(Pickable,long,bool) System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) System.Delegate.DynamicInvoke (System.Object[] args) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) RoutedMethod`1[T].Invoke (System.Int64 rpc, ZPackage pkg) (at :0) ZNetView.HandleRoutedRPC (ZRoutedRpc+RoutedRPCData rpcData) (at :0) ZRoutedRpc.HandleRoutedRPC (ZRoutedRpc+RoutedRPCData data) (at :0) ZRoutedRpc.InvokeRoutedRPC (System.Int64 targetPeerID, ZDOID targetZDO, System.String methodName, System.Object[] parameters) (at :0) ZNetView.InvokeRPC (System.Int64 targetID, System.String method, System.Object[] parameters) (at :0) (wrapper dynamic-method) Pickable.DMD(Pickable)

error occurred on login after updating server and client to latest game patch. oddly enough i did not get this error when testing everything on my test server before moving it to the live server afaik. Also of note, the error only occurs in the client log, no errors at all in server log.

DeepWolf413 commented 3 months ago

Thanks for the report. I'll see if I can replicate it and fix it if I'm able to :-)

DeepWolf413 commented 3 months ago

@PaloAlo Hmm, I can't replicate it. What mods do you use? Maybe there's a conflict.

PaloAlo commented 3 months ago

I see another person reported the same error in Odin+ discord so I asked advize if he knew what might be causing it. He's the author of plant everything and plant easily and since this error seems related to pickables he offered this link https://github.com/AdvizeGH/Advize_ValheimMods/commit/b8b116444261db995fb675840784d0bcb938d15a

He has all the ashlands changes mentioned there I think. He said that The names of most RPCs changed to include the RPC_ prefix.

DeepWolf413 commented 3 months ago

Thanks, I'll prepare a fix for the Ashlands update so it's ready when it releases :-)

DeepWolf413 commented 3 months ago

Update has been released. I did a quick test and everything should be working fine now. If you encounter any issues or bugs you're free to create a new issue report :-)

PaloAlo commented 3 months ago

Thx for your hard work, all my friends really like this mod.

On Tue, May 14, 2024, 6:53 a.m. DeepWolf413 @.***> wrote:

Update has been released. I did a quick test and everything should be working fine now. If you encounter any issues or bugs you're free to create a new issue report :-)

— Reply to this email directly, view it on GitHub https://github.com/DeepWolf413/Cozyheim-Mods/issues/10#issuecomment-2110306320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZS4VZLFPNCASOA4Y2VL5WLZCIJNTAVCNFSM6AAAAABHCRT3LGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGMYDMMZSGA . You are receiving this because you were mentioned.Message ID: @.***>