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]: Can't launch loader in Linux (LD_PRELOAD not working) #726

Open
4 of 7 tasks
claymorwan opened this issue Aug 21, 2024 · 3 comments
Open
4 of 7 tasks

[Bug]: Can't launch loader in Linux (LD_PRELOAD not working) #726

claymorwan opened this issue Aug 21, 2024 · 3 comments
Labels
User Support This post was made to ask about an issue the user is having

Comments

@claymorwan
Copy link

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.

I'm trying to run melonloader on linux (native linux game), so I took the latest release and put the MelonLoader folder and the libversion.so file in the games root directory. But when I try to do the LD_PRELOAD=$LD_PRELOAD:/path/to/game/folder/libversion.so cmd (using my games path ofc), it's just gives me a bunch of error.
image

I tried to do the steam launch option LD_PRELOAD=$LD_PRELOAD:/path/to/game/folder/libversion.so %command% but it doesn't seem to be working too, it either launch the game without the loader (when I remove the %command%) or doesn't launch it at all (when I keep it)
image

I tired to do the chmod +x /path/to/game/folder/MelonLoader/Dependencies/Il2CppAssemblyGenerator/Cpp2IL/Cpp2IL but I get an "No such file or directory" error, even tho i tried

Idk if the fact that I have the game installed on my secondary drive have anything to do with it but telling it just in case
(Also don't mention the game I swear I'm playing it cuz it's fun)

Did you attach your log file?

No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log

@HerpDerpinstine HerpDerpinstine added the User Support This post was made to ask about an issue the user is having label Oct 7, 2024
@KibblesTheKitten
Copy link

Please cd to the directory then use LD preload there. I have noticed that LD preload behaves weirdly and for me, whilst testing on TLD, I would always need to cd to there and then use LD preload from there. And because you don't initiate melon loader at all even once, it won't download Cpp2il (that's why you get a no such file or directory error) so it should be something like:

Terminal opened in game directory

LD_PRELOAD: <game name> .x86_64 libversion.so

Don't worry as this will fail, but it will download Cpp2il, to make sure you have the file, you can check for the melonloader log. If it has succeeded, you can do the chmod:

chmod +x /MelonLoader/Dependencies/Il2CppAssemblyGenereator/Cpp2IL/Cpp2IL

Hopefully when you do the first command again, it starts the game up.
Terminal wont show sadly as it's not yet done.. but hopefully it runs

@KibblesTheKitten
Copy link

Scratch that... The problem is a space

@claymorwan
Copy link
Author

claymorwan commented Oct 7, 2024

Well I got it to run thanks to some help in the discord server, now I got a different problem saying
[18:02:10.258] [Il2CppAssemblyGenerator] ERROR: ld.so: object './libversion.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

And I just realized I seen u in the server at that time hewwo

@HerpDerpinstine HerpDerpinstine added Work-in-Progress This issue or pull request is being worked on currently and removed Work-in-Progress This issue or pull request is being worked on currently labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support This post was made to ask about an issue the user is having
Projects
None yet
Development

No branches or pull requests

3 participants