ItemStatsMod icon indicating copy to clipboard operation
ItemStatsMod copied to clipboard

Mod freezes game if SotV DLC is not installed

Open aYoink opened this issue 3 years ago • 4 comments

Mod gives error in console saying that object cannot be found Game continues to load until 100% where it freezes and doesn't load

aYoink avatar Mar 15 '22 17:03 aYoink

Please post the error message

ontrigger avatar Mar 15 '22 17:03 ontrigger

Happened on friend's computer, trying to replicate the error rn

aYoink avatar Mar 15 '22 18:03 aYoink

I have SotV installed and with the mod enabled it gets stuck loading at 100%.

[Error  : Unity Log] [RoR2.ItemCatalog] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 0100001d (from typeref, class/assembly On.RoR2.UI.HUD, MMHOOK_Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
  at ItemStats.ItemStatsMod+<>c.<Awake>b__6_0 () [0x0000a] in <9b10d3a00acc493e972c6dca0e9f7e05>:IL_000A
  at ResourceAvailability.MakeAvailable () [0x0001a] in <0f44b36eaa194934bb127b3fdd08e444>:IL_001A
  at RoR2.ItemCatalog.Init () [0x00057] in <0f44b36eaa194934bb127b3fdd08e444>:IL_0057
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <44afb4564e9347cf99a1865351ea8f4a>:IL_0032
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004b] in <44afb4564e9347cf99a1865351ea8f4a>:IL_004B
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <44afb4564e9347cf99a1865351ea8f4a>:IL_0000
  at RoR2.SystemInitializerAttribute.Execute () [0x00128] in <0f44b36eaa194934bb127b3fdd08e444>:IL_0128
[Info   : Unity Log] SystemInitializerAttribute infinite loop detected. currentMethod=RoR2.CostTypeCatalog+LunarItemOrEquipmentCostTypeHelperInit
[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
RoR2.Stats.StatSheet.New () (at <0f44b36eaa194934bb127b3fdd08e444>:IL_0000)
RoR2.UserProfile..ctor () (at <0f44b36eaa194934bb127b3fdd08e444>:IL_00CA)
RoR2.XmlUtility.FromXml (System.Xml.Linq.XDocument doc) (at <0f44b36eaa194934bb127b3fdd08e444>:IL_0000)
RoR2.UserProfile.LoadDefaultProfile () (at <0f44b36eaa194934bb127b3fdd08e444>:IL_000A)
RoR2.SaveSystem.LoadUserProfiles () (at <0f44b36eaa194934bb127b3fdd08e444>:IL_0016)
RoR2.RoR2Application+<InitializeGameRoutine>d__69.MoveNext () (at <0f44b36eaa194934bb127b3fdd08e444>:IL_0271)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <469e86e97fa2467ebffe49bbd6086325>:IL_0026)

theCryingMan avatar Mar 16 '22 02:03 theCryingMan

@Yoinnkkk I got it to work. @

  1. In R2modman, uninstall BepInEx.
  2. Go to Settings>All> click 'Browse profile folder'
  3. Delete the remaining BepInEx folder ( you will lose any changes to the BepInEx configs you made (I dont know if you can back them up) )
  4. re-install BepInEx and the mods that depended on it
  5. profit...

theCryingMan avatar Mar 22 '22 21:03 theCryingMan