Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 of 7 tasks
sup3p opened this issue Nov 20, 2024 · 0 comments
Labels
Bug / Issue Something isn't working User Support This post was made to ask about an issue the user is having Work-in-Progress This issue or pull request is being worked on currently

Comments

@sup3p
Copy link

sup3p commented Nov 20, 2024

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.

@HerpDerpinstine HerpDerpinstine added Bug / Issue Something isn't working Work-in-Progress This issue or pull request is being worked on currently User Support This post was made to ask about an issue the user is having labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug / Issue Something isn't working User Support This post was made to ask about an issue the user is having Work-in-Progress This issue or pull request is being worked on currently
Projects
None yet
Development

No branches or pull requests

2 participants