MelonLoader icon indicating copy to clipboard operation
MelonLoader copied to clipboard

[Bug]: failed to find Bootstrap

Open ALEZ-DEV opened this issue 1 year ago • 18 comments

All of the following criteria must be met

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

All of the following are optional to answer

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

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.

ALEZ-DEV avatar Oct 23 '23 17:10 ALEZ-DEV

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.

rakosi2 avatar Oct 23 '23 17:10 rakosi2

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

ALEZ-DEV avatar Oct 23 '23 17:10 ALEZ-DEV

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

rakosi2 avatar Oct 24 '23 08:10 rakosi2

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

ALEZ-DEV avatar Oct 24 '23 16:10 ALEZ-DEV

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 avatar Oct 29 '23 19:10 ALEZ-DEV

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

ALEZ-DEV avatar Nov 01 '23 20:11 ALEZ-DEV

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

rakosi2 avatar Nov 11 '23 21:11 rakosi2

Still didn't work

lory-dev avatar Nov 17 '23 09:11 lory-dev

Still didn't work

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

rakosi2 avatar Nov 17 '23 09:11 rakosi2

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.

AquaticVyper avatar Feb 06 '24 19:02 AquaticVyper

@AquaticVyper what are you trying do to ?

ALEZ-DEV avatar Feb 07 '24 21:02 ALEZ-DEV

I have the same problem. How to fix it?

VadimkaG avatar Feb 17 '24 20:02 VadimkaG

@VadimkaG please share your log file

rakosi2 avatar Feb 17 '24 21:02 rakosi2

@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.

VadimkaG avatar Feb 17 '24 21:02 VadimkaG

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.

hajaren1466 avatar Mar 12 '24 21:03 hajaren1466

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

trust me this is real.

obraz_2024-06-23_162238307 can someone plss help me

antix2137 avatar Jun 23 '24 14:06 antix2137