MelonLoader

MelonLoader

242 Downloads

[Bug]: Exception when trying to Xref scan: "Could not load file or assembly 'Il2CppRewired_Windows"

sup3p opened this issue ยท 0 comments

commented

All of the following criteria must be met

  • All Requirements must be installed.
  • Changed the title so that it doesn't just says "[Bug]: "
  • I have searched the GitHub issues for my bug, even in the closed issues.

All of the following are optional to answer

  • Tried reinstalling the Game.
  • Tried reinstalling MelonLoader.
  • Tried restarting PC.
  • Was able to see the Start Screen.

Describe the issue.

Latest.log

I'm trying to follow the wiki's guide on Xref scanning, but calling the actual scan function throws an exception. I ensured that Il2CppInterop.Common.dll is referenced. The code currently looks like this:

public override void OnInitializeMelon()
{
    melonLog = LoggerInstance;
    melonLog.Msg("Initialized.");

    Type type = typeof(CharacterControllerAvatar);
    MethodInfo methodInfo = type.GetMethod("MakeLevelOne");
    MethodBase methodBase = methodInfo;

    var instances = Il2CppInterop.Common.XrefScans.XrefScanner.XrefScan(methodBase);
}

An exception is thrown on that last line, as omitting the line does not throw an exception.

Did you attach your log file?

Yes, I attached my log file to the text box above.