LavaGang / MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
https://discord.gg/2Wn3N2P
Apache License 2.0
2.23k stars 459 forks source link

[Bug]: failed to find Bootstrap #557

Open ALEZ-DEV opened 8 months ago

ALEZ-DEV commented 8 months ago

All of the following criteria must be met

All of the following are optional to answer

Describe the issue.

Latest.log This log is not very useful so I tried to copy the error I got from the terminal directly copied.log This is for the game Punishing: Gray Raven and when I start it from the official launcher image

I have already create an issue a few month ago and I said that all was fixed, but no because when I tried to load some mod, the mod was loaded, but the mod was to run and this time I run the latest version of MelonLoader (6.1.0)

(PS: the game have already some issue in vanilla to start sometime)

Did you attach your log file?

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

rakosi2 commented 8 months ago

Missing Bootstrap usually means that MelonLoader\Dependencies\Bootstrap.dll was removed, either by the user or something like an anti-virus. Make sure that it is whitelisted and reinstall MelonLoader.

ALEZ-DEV commented 8 months ago

MelonLoader\Dependencies\Bootstrap.dll is here and not removed image

rakosi2 commented 8 months ago

Wonder why the popup is referencing KuroGame_haru folder instead of the Punishing Gray Raven. Maybe try and install MelonLoader Nightly and see if that helps

ALEZ-DEV commented 8 months ago

I installed the nighlty version of MelonLoader on PGR, but I have always the same issue

ALEZ-DEV commented 8 months ago

I made research on my side and it seems that the code failed to know that my game is an Mono game I think that is the method MonoLibrary.Setup() in MelonLoader\MonoInternals\MonoLibrary.cs that fail

there is the code of the method MonoLibrary.Setup()

internal static bool Setup()
{
    IntPtr NativeMonoPtr = GetLibPtr();
    if (NativeMonoPtr == IntPtr.Zero)
    {
        MelonLogger.ThrowInternalFailure("[MonoLibrary] Failed to get Mono Library Pointer from Internal Call!");
        return false;
    }

    try
    {
        Instance = NativeMonoPtr.ToNewNativeLibrary<MonoLibrary>().Instance;
    }
    catch (Exception ex)
    {
        MelonLogger.ThrowInternalFailure($"[MonoLibrary] Failed to load Mono NativeLibrary!\n{ex}");
        return false;
    }

    MelonDebug.Msg("[MonoLibrary] Setup Successful!");
    return true;
}

but I can't go further to know how to solve this issue, if someone who have good knowledge of the project can help me would be appreciated

ALEZ-DEV commented 8 months ago

Okay guys, I soon found the solution, It's very funny thought

thank to @SamboyCoding (if I don't mention the wrong person) for guiding my to this solution

My issue was that the game I wanted to run just change de directorie name of Il2cpp_data to Native, so I just tried to change the name of the file but the game was just unable to run after that, so I did something else

I just cloned the project and change the Line 43 of MelonLoader/blob/master/MelonLoader/Utils/MelonEnvironment.cs to : public static string Il2CppDataDirectory => Path.Combine(UnityGameDataDirectory, "Native"); and the game was able to run

but I had another annoying issue, it was when sometime a launched the game, it was throwing this error Attempted to read or write protected memory. This is often an indication that other memory is corrupt so I found this Melon issue and just put --melonloader.disablestartscreen argument when I start the game

but (yes another one but) UnityExplorer don't want to load in game because it said that some of the following dependencies are missing :

[20:47:56.210] Some Melons are missing dependencies, which you may have to install.
If these are optional dependencies, mark them as optional using the MelonOptionalDependencies attribute.
This warning will turn into an error and Melons with missing dependencies will not be loaded in the next version of MelonLoader.
- 'UnityExplorer' is missing the following dependencies:
    - 'UnityEngine.CoreModule' v3.7.1.6
    - 'UnhollowerBaseLib' v0.4.22.0
    - 'UnityEngine.UIModule' v3.7.1.6
    - 'UnityEngine.UI' v3.7.1.6
    - 'UnityEngine.TextRenderingModule' v3.7.1.6
    - 'Il2Cppmscorlib' v3.7.1.6
    - 'UnityEngine.AudioModule' v3.7.1.6
    - 'Il2CppSystem.Core' v3.7.1.6
    - 'UnityEngine.PhysicsModule' v3.7.1.6

but I thing that MelonLoader is just trying to find these dependencies in the wrong directorie or somthing like that, I will try to solve this last issue more later, but if someone find an idea to solve it, I'll take it

rakosi2 commented 8 months ago

Do you have a virus scanner like McAfee? Missing those files usually means that a virus scanner deleted them.

lorenzohappy19 commented 7 months ago

Still didn't work

rakosi2 commented 7 months ago

Still didn't work

What do you mean by "still", this is the first time you are commenting here. What is your issue?

AquaticVyper commented 5 months ago

Having the same issue. I have uninstalled and reinstalled the game three times. Restarted my device multiple times. Made sure all the dependency files are there (they are). Uninstalled and Re-Installed melon loader multiple times. I have literally wiped any remnants of either Boneworks OR Melon Loader from my PC and reinstalled both CLEANLY once more and STILL I get the issue. I just don't understand what more I can do.

I even installed it on a different drive one more time to see if that would fix it. Nope. Same issue.

ALEZ-DEV commented 5 months ago

@AquaticVyper what are you trying do to ?

VadimkaG commented 4 months ago

I have the same problem. How to fix it?

rakosi2 commented 4 months ago

@VadimkaG please share your log file

VadimkaG commented 4 months ago

@rakosi2 If I understand correctly, this error does not create a log file. As written above, bootstrap file exists.

I was able to solve the problem by installing an older version: 0.5.7. On version 0.5.7 everything runs fine.

hajaren1466 commented 3 months ago

This issue is still occuring. I can't use 0.6.1 or 0.6.2. The mod for the game I'm playing requires 0.6.1 and I can't use it because of the bootstrap error. The file exists. Help.

Moyerj19370goodtogoattminus29 commented 2 months ago

for some weird reason this happened and I have it on video. https://outplayed.tv/media/wXVbR5

Moyerj19370goodtogoattminus29 commented 2 months ago

trust me this is real.

antix2137 commented 2 weeks ago

obraz_2024-06-23_162238307 can someone plss help me