-
-
Notifications
You must be signed in to change notification settings - Fork 477
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]: No mods on Linux #606
Comments
There's a lot to unpack here.
Assuming you're talking about Cpp2IL, The Wiki mentions this.
You're talking like MelonLoader is made for your game. MelonLoader is a universal mod loader. I don't see what's keeping mods from running on the linux version of your game, Mods may be using some windows specific code, but it certainly doesn't have "no function". Other games may use MelonLoader and have mods that are written with cross-platform in mind
Sorry, being the only linux user on the team, I can't know about the situation of installing tooling on distributions I don't use Onto your next point about mounting (?), I'm really not sure. I don't have my games on a separate drive.
The wiki clearly describes how to install the requirements.
I've heard numerous things about this happening under Proton. I have yet to run into any of it. Then again, I don't mod any of the games where this has come up, and I can only imagine that mods are causing it, not us. All in all, I think you're overthinking most of this. I would recommend you start over by deleting your prefix, running the game through steam's GUI once, running Then you can run the game |
I did the first part at the start. It didn't work. I replaced the launch option in Steam with the above one, which made it crash immediately. I understand that you think the project you worked on for so long is really great and that I do everything wrong. But I try to supply all the information I can to allow you people to fix things if you ever want to allow the things I try to do. So I can enjoy your work as well. |
Please join the discord and
I've never said you did anything wrong, I just see a lot of steps I've never had to deal with, so i tried providing a more concise way of starting over. |
What didn't work? Crash makes sense if you were unable to install .net 6. |
I clicked the wrong button a few weeks ago when trying to join a discord, after which it told me that there already was a user with that email address and demanded to know my telephone number. I didn't like that, but since then I cannot get to any discord anymore. "Whoops... Unable to accept invite." It redirects everything back to the first page. I tried a few more times, but that isn't going to work. I also tried just using wine instead of proton, but that didn't work, either. I can start the game, but it stops when it can't find the steam dll. Yes, I installed steam in that instance. At this point I haven't got a clue how to proceed. |
Latest.log After some googling, that brought me here: SamboyCoding/Cpp2IL#217 It states that it is because the version of the game (different game, yes) has encrypted metadata. Tough luck? |
I downloaded the newest Linux build of Cpp2IL: "[Fail] [Program] Execution Failed: Invalid game-path or exe-name specified. Failed to find one of the following: Which is correct. It's "GameAssembly.so" and "tld_Data/il2cpp_data/Metadata/global-metadata.dat". I don't see parameters to override that. If I do this: "/mnt/Games/SteamLibrary/steamapps/common/TheLongDark/MelonLoader/Dependencies/Il2CppAssemblyGenerator/Cpp2IL/Cpp2IL-2022.0.7-Linux" --game-path "/mnt/Games/SteamLibrary/steamapps/common/TheLongDark" --force-metadata-path "/mnt/Games/SteamLibrary/steamapps/common/TheLongDark/tld_Data/il2cpp_data/Metadata/global-metadata.dat" --force-binary-path "/mnt/Games/SteamLibrary/steamapps/common/TheLongDark/GameAssembly.so" I get the following error: "[Fail] [Program] Execution Failed: Invalid force option configuration" I'm not sure if the error is the same and only the error message changed between the different versions. I also installed the Linux version of ILSpy, which states that GameAssembly.so contains no metadata, while the "file" command states that it isn't stripped. Ok, I don't know if that is the same for a .NET assembly. So modding seems out, as far as I can see. |
All of the following criteria must be met
All of the following are optional to answer
Describe the issue.
I have used MelonLoader for years on Windows 10 with The Long Dark. I migrated to Linux Mint and reinstalled everything. Issues:
That gave multiple, different errors that Il2Cpp wasn't accessible. I tried to install it myself, but that didn't work, as I didn't know which version and name was expected. I couldn't get it to download automatically, either.
Which was when I discovered, that the mods only work if you force Proton compatibility in Steam and add "-force-glcore" to get the game running. So it's nice that there are native Linux builds, but they don't seem to have a function yet.
Next, remove all, enable proton compatibility and reinstall in Steam. And get protontricks to work? The native builds are old, there is a Flatpak that is reasonably up-to-date, but doesn't work from the command-line. I couldn't get it updated with apt or pipx. This was a great help: https://forums.linuxmint.com/viewtopic.php?t=398249
I tried this from a terminal:
#!/bin/bash
STEAM_COMPAT_DATA_PATH=/mnt/[some long GUID]/SteamLibrary/steamapps/compatdata/305620 STEAM_COMPAT_CLIENT_INSTALL_PATH=/mnt/[some long GUID]/SteamLibrary/steamapps/common/TheLongDark "/home/frank/.steam/steam/steamapps/common/Proton - Experimental/proton" run "/mnt/[some long GUID]/SteamLibrary/steamapps/common/TheLongDark/tld_gl.bat
This gave all kinds of "file (or assembly) not found" errors.
"tld_gl.bat" is: "./tld.exe -force-glcore --melonloader.hideconsole >> ./ml.log"
I made a new mount point ("/mnt/Games") and a "G:" drive with protontricks in winecfg, to the new "/mnt/Games/SteamLibrary/steamapps/common/TheLongDark" directory. Which gave errors that Il2Cpp couldn't find an assembly named 'tld' at 'g:'. So I removed the G: drive, but that didn't help. I made a new G: drive to "/mnt/Games/SteamLibrary/steamapps/common/", so the executable would be: "G:\TheLongDark\tld.exe" (with a backslash after the ":" !), which removed the error.
There are many issues, mostly with the requirements. There is no good way to install them. I tried selecting them in protontricks ("Install a Windows DLL or Component"), which gave many errors about 32-bits versions not working, wrong versions and checksums, etc. Opening an Explorer and executing the Windows installers gave many errors about incorrect Windows versions (it seems to be reported as either WinNT or WinXP64 by proton). I cannot verify if all the trial and error worked or not.
All in all, I couldn't get the same result when running through protontricks as Steam.
I got errors about unsupported render targets, while I have an AMD Radeon 6950, with a native driver installed and active. I checked. And the game runs unmodded. But I don't know if this is actually an issue, only that after these error messages, the mods get unloaded. Unfortunately, there is a new version of The Long Dark just at this moment, so I have to update before I can run it from Steam and cannot reproduce the previous error messages.
This is the final error, so far. I don't think I can debug that myself. It all seems to work with this setup until everything is ready and I see the MelonLoader screen and graphic pop-up for a fraction of a second, after which everything crashes.
Player.log
And the new log, with new errors:
Player.log
Btw, your animated logo is quite small on a 4k screen.
Did you attach your log file?
Yes, I attached my log file to the text box above.
The text was updated successfully, but these errors were encountered: