[Bug]: Can't launch loader in Linux (LD_PRELOAD not working)
claymorwan opened this issue ยท 3 comments
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.
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)
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
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
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