mspielberg / dv-remote-dispatch

Derail Valley mod for presenting an interactive web map of the world.
MIT License
19 stars 16 forks source link

Getting InvalidCastException #13

Closed steampilot closed 11 months ago

steampilot commented 11 months ago

Hi i downloaded the mod last week. It worked. Until it no longer worked.

Yesterday it seemed that the De2 was behaving randomly but... then it seemed as if some one was controlling it while i was in. May not be related to what the problem was. But that is when i changed settings for the mod. i did not had a pasword at that point. I restarted the game and added password. Since that restart... the mod no longer works.

[RemoteDispatch] Reloading...
[RemoteDispatch] [Exception] OnToggle: InvalidCastException - Specified cast is not valid.
System.InvalidCastException: Specified cast is not valid.
  at HarmonyLib.Patch.get_PatchMethod () [0x00079] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony+<>c__DisplayClass13_1.<UnpatchAll>b__1 (HarmonyLib.Patch patchInfo) [0x00000] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Func`2[T,TResult] condition, System.Action`1[T] action) [0x00007] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony.UnpatchAll (System.String harmonyID) [0x00059] in <5c856fb19ddb469d99459756a2e14341>:0 
  at DvMod.RemoteDispatch.Main.OnToggle (UnityModManagerNet.UnityModManager+ModEntry modEntry, System.Boolean value) [0x00091] in <6266a4c8a355476488a08dd264d7bb8e>:0 
  at UnityModManagerNet.UnityModManager+ModEntry.set_Active (System.Boolean value) [0x000f0] in <772bb2f5fdf44bc79cbd8a5ffbeb1b3b>:0 
[RemoteDispatch] Must be deactivated.
[RemoteDispatch] Reloading canceled.
[RemoteDispatch] [Exception] OnToggle: InvalidCastException - Specified cast is not valid.
System.InvalidCastException: Specified cast is not valid.
  at HarmonyLib.Patch.get_PatchMethod () [0x00079] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony+<>c__DisplayClass13_1.<UnpatchAll>b__1 (HarmonyLib.Patch patchInfo) [0x00000] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Func`2[T,TResult] condition, System.Action`1[T] action) [0x00007] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony.UnpatchAll (System.String harmonyID) [0x00059] in <5c856fb19ddb469d99459756a2e14341>:0 
  at DvMod.RemoteDispatch.Main.OnToggle (UnityModManagerNet.UnityModManager+ModEntry modEntry, System.Boolean value) [0x00091] in <6266a4c8a355476488a08dd264d7bb8e>:0 
  at UnityModManagerNet.UnityModManager+ModEntry.set_Active (System.Boolean value) [0x000f0] in <772bb2f5fdf44bc79cbd8a5ffbeb1b3b>:0 
steampilot commented 11 months ago

Seems fixed with Version 1.0.1 Closing Issue. Thanks!