Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Fixes for om 3.7.4#8

Merged
Trojaner merged 7 commits intomasterfrom
fixes_for_om_3.7.4
Nov 28, 2023
Merged

Fixes for om 3.7.4#8
Trojaner merged 7 commits intomasterfrom
fixes_for_om_3.7.4

Conversation

@rube200
Copy link
Copy Markdown
Contributor

@rube200 rube200 commented Nov 24, 2023

After Unturned update this plugin fail to install OM
If we try to access OpenMod.Nuget or Nuget package it will always fail and throw an exception.
For workaround i wrapped the calls and use reflection.

OpenMod.Installer.RocketMod >> Loading OpenMod assemblies. Ignore the message spam below.
(...)
OpenMod.Installer.RocketMod >> Caught exception while executing job "OpenModUnturnedInstallJob":
OpenMod.Installer.RocketMod >> Exception in OpenMod.Installer.RocketMod: System.TypeLoadException: Failure has occurred while loading a type.
  at OpenMod.Installer.RocketMod.Jobs.NuGetInstallJob+<>c__DisplayClass3_0.<ExecuteMigration>b__0 () [0x0004d] in <3a1c5a1b79ed453a9e2a7ba4bba1e676>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <f598ed95c1954e82be51579b78883fe7>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <a7e39b5fefc84c7f84a0f645cb157611>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <f598ed95c1954e82be51579b78883fe7>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <a7e39b5fefc84c7f84a0f645cb157611>:0 
  at OpenMod.Installer.RocketMod.Helpers.AsyncHelperEx.RunSync (System.Func`1[TResult] task) [0x00000] in <3a1c5a1b79ed453a9e2a7ba4bba1e676>:0 
  at OpenMod.Installer.RocketMod.Jobs.NuGetInstallJob.ExecuteMigration (System.String[] args) [0x00005] in <3a1c5a1b79ed453a9e2a7ba4bba1e676>:0 
  at OpenMod.Installer.RocketMod.Jobs.JobsExecutor.Execute (System.Collections.Generic.List`1[T] jobsToExecute, System.String[] args) [0x00025] in <3a1c5a1b79ed453a9e2a7ba4bba1e676>:0 
Reverting...

@Trojaner Trojaner merged commit 7b7f58b into master Nov 28, 2023
@rube200 rube200 deleted the fixes_for_om_3.7.4 branch November 28, 2023 18:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants