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

Error after updating to 217.46 #10

Closed
PaloAlo opened this issue May 1, 2024 · 6 comments
Closed

Error after updating to 217.46 #10

PaloAlo opened this issue May 1, 2024 · 6 comments
Assignees
Labels
bug Something isn't working leveling system

Comments

@PaloAlo
Copy link

PaloAlo commented May 1, 2024

[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.DMDPickable::RPC_SetPicked(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.DMDPickable::UpdateRespawn(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.

@PaloAlo PaloAlo changed the title im getting an error after updating to 217.46 Error after updating to 217.46 May 1, 2024
@DeepWolf413
Copy link
Owner

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

@DeepWolf413
Copy link
Owner

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

@PaloAlo
Copy link
Author

PaloAlo commented May 7, 2024

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
AdvizeGH/Advize_ValheimMods@b8b1164

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
Copy link
Owner

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

@DeepWolf413 DeepWolf413 added the bug Something isn't working label May 7, 2024
@DeepWolf413
Copy link
Owner

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
Copy link
Author

PaloAlo commented May 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working leveling system
Projects
None yet
Development

No branches or pull requests

2 participants