Skip to content

Installed Rocket in Modules breaks Rocket.AutoInstaller #119

@MrRousek

Description

@MrRousek
Error in MulticastDelegate RockedInitialized: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Rocket.Unturned.U+<>c.<initialize>b__13_0 () [0x00000] in <db4aa5db8f904379a7a2b81d56128ad3>: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 <2161c9885dd04ff291b79db9349c4b9b>: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 <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at Rocket.Core.Extensions.MulticastDelegateExtension.TryInvoke (System.MulticastDelegate theDelegate, System.Object[] args) [0x00013] in <bf4b44d2f0094bdb881fc2df7bcb625d>:0 
Specified cast is not valid.
  at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
  at Rocket.API.Extensions.GameObjectExtension.TryAddComponent[T] (UnityEngine.GameObject gameobject) [0x00010] in <f75df760cacd4bf6abd1085a46a87246>:0 
  at Rocket.Unturned.U+<>c.<initialize>b__13_1 () [0x00000] in <db4aa5db8f904379a7a2b81d56128ad3>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at SDG.Unturned.Provider.broadcastServerHosted () [0x00009] in <7553df1001e1444cbf2b0ddeaae437ad>:0 
DirectoryNotFoundException: Could not find a part of the path '/home/container/Servers/unturned/Rocket/Servers/unturned/Rocket/Libraries'.
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x00032] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00048] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.Enumeration.FileSystemEnumerable`1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable`1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.DirectoryInfo.InternalEnumerateInfos (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x00037] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.DirectoryInfo.GetFiles (System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.IO.DirectoryInfo.GetFiles (System.String searchPattern, System.IO.SearchOption searchOption) [0x00008] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at Rocket.Core.Plugins.RocketPluginManager.FindAssembliesInDirectory (System.String directory) [0x0000c] in <bf4b44d2f0094bdb881fc2df7bcb625d>:0 
  at Rocket.Core.Plugins.RocketPluginManager.loadPlugins () [0x00000] in <bf4b44d2f0094bdb881fc2df7bcb625d>:0 
  at Rocket.Core.Plugins.RocketPluginManager.Start () [0x00000] in <bf4b44d2f0094bdb881fc2df7bcb625d>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions