Mydayyy / Valheim-ServerSideMap

This plugin completely moves the explored map and created pins to the server. As clients explore, they will send their explored areas to the server who will then distribute it to all connected clients. When a client joins, the server will synchronize the currently explored areas to the client. Pins are shared as well but default to false and need to be enabled. When pin sharing is used, all newly created pins are send to the server who saves them along with the explored area.
38 stars 1 forks source link

[Mod Conflict] (Unknown Mod): System.IndexOutOfRangeException: Index was outside the bounds of the array. #67

Open Morpheus1101 opened 1 month ago

Morpheus1101 commented 1 month ago
05/27/2024 10:58:54: Console: [Info   : Unity Log] 05/27/2024 10:58:54: Exception in ZRpc::HandlePackage: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at ServerSideMap.ExplorationMapSync.OnClientExplore (ZRpc client, System.Int32 x, System.Int32 y) [0x00008] in <6c6d7457ac254564a07af03a22a0254f>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e31fef67d01346b69d78eed70638954f>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <e31fef67d01346b69d78eed70638954f>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e31fef67d01346b69d78eed70638954f>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <e31fef67d01346b69d78eed70638954f>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <e31fef67d01346b69d78eed70638954f>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <e31fef67d01346b69d78eed70638954f>:0 
  at ZRpc+RpcMethod`2[T,U].Invoke (ZRpc rpc, ZPackage pkg) [0x0001d] in <4efa3faf7157456487d70c5f7277dba7>:0 
  at (wrapper dynamic-method) ZRpc.DMD<ZRpc::HandlePackage>(ZRpc,ZPackage)
  at ZRpc.Update (System.Single dt) [0x0003e] in <4efa3faf7157456487d70c5f7277dba7>:0 

[Uploading LogOutput.log…]()

Mydayyy commented 1 month ago

Greetings,

Thank you for creating this issue.

I assume this happens since a recent update? I will look into it.

Best Regards Mydayyy

Mydayyy commented 1 month ago

Greetings,

Thank you for your patience while I investigated this issue. Unfortunately it appears that I am not able to reproduce this issue with:

Valheim version: l-0.218.15 (network version 27)
BepInEx 5.4.22.0 - valheim (4/10/2024 9:50:07 PM)
[Info   :   BepInEx] Loading [ServerSideMap 1.3.10.0]

Can you give me more details about how to reproduce this issue?

Best Regards Mydayyy

Morpheus1101 commented 1 month ago

Im probably speculating, but its likely to be a combination of the mods in the pack im using an seems to occur server side only LogOutput.log

Mydayyy commented 1 month ago

Greetings,

I apologize for the late reply, I have been fairly busy this week.

This indeed looks like a mod conflict. However your modlist is fairly large so its not easy to narrow down. If you find out which mod it is conflicting with please let me know and I will take a look at it and see whether it is fixable.

I will rename this issue to reflect the situation.

Best Regards Mydayyy