sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.14k stars 71 forks source link

Cant seem to reinstall MO2 after failed MO2 update from MO2 GUI #1021

Closed tetoNidan closed 8 months ago

tetoNidan commented 8 months ago

System Information

Issue Description

So I tried to update MO2 through MO2's GUI and it failed. Not sure if it was due to firejail or due to me symbolically linking my MO2 folder to save space on my OS SSD but at least that time I got to the MO2 license agreement stage before failing. Sorry I don't have the those logs though. I could potentially get them though if your interested as I have a backup of the old MO2 folder.

So I have tried many re-installs and have not gotten past the Microsoft Redistributables Installer.

I have tried the earliest versions of proton I have installed. proton 8.0.3c I believe and 7 as well as a few newer GE versions.

I have disabled firejail so I know that things are not being sandboxed.

Not sure what to try next. It appears that MO2 is installed as the folder and files seem to be all there. Just not starting so I'm thinking it's a proton issue but I really don't know, just a shot in the dark. What version of proton do you recommend for install of the new MO2? I had changed the default quite some time ago and don't likely have it installed any more.

Maybe these logs will help point me in the right direction.

I have a backup of the old MO2 folder so if all else fails I can likely re symlink it to get it going again.

Hope things are going well sonic2kk and as always thanks!

Logs

installMO2_protonrun.log

Proton: Upgrading prefix from None to 8.0-103 (/home/tool/.config/steamtinkerlaunch/mo2/compatdata/) fsync: up and running. wine: Using setpriority to control niceness in the [-11,11] range steam.sh[27048]: Running Steam on garuda Soaring 64-bit steam.sh[27048]: STEAM_RUNTIME is enabled automatically setup.sh[27506]: Updating Steam runtime environment...

(zenity:27652): Gtk-WARNING **: 23:47:24.122: Theme parser error: gtk-dark.css:2588:14-18: Negative values are not allowed

(zenity:27652): Adwaita-WARNING **: 23:47:24.142: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead. setup.sh[27506]: Found newer runtime version for 32-bit libGLU.so.1. Host: 1.3.1 Runtime: 1.3.8004 setup.sh[27506]: Forced use of runtime version for 32-bit libcurl-gnutls.so.4 setup.sh[27506]: Forced use of runtime version for 32-bit libcurl.so.4 setup.sh[27506]: Forced use of runtime version for 32-bit libdbusmenu-glib.so.4 setup.sh[27506]: Forced use of runtime version for 32-bit libdbusmenu-gtk.so.4 setup.sh[27506]: Forced use of runtime version for 32-bit libgtk-x11-2.0.so.0 setup.sh[27506]: Found newer runtime version for 64-bit libGLU.so.1. Host: 1.3.1 Runtime: 1.3.8004 setup.sh[27506]: Forced use of runtime version for 64-bit libcurl-gnutls.so.4 setup.sh[27506]: Forced use of runtime version for 64-bit libcurl.so.4 setup.sh[27506]: Found newer runtime version for 64-bit libdbusmenu-glib.so.4. Host: 4.0.12 Runtime: 4.0.13 setup.sh[27506]: Found newer runtime version for 64-bit libdbusmenu-gtk.so.4. Host: 4.0.12 Runtime: 4.0.13 steam.sh[27048]: Steam client's requirements are satisfied

startMO2_.log

wineserver: using server-side synchronization. wine: Using setpriority to control niceness in the [-11,11] range creating minidump for the current process trying file '.\ModOrganizer-2.5.1rc2-20240120T064813.dmp' writing mini minidump minidump written correctly

steamtinkerlaunch.log

https://pastebin.com/JV0DYzUL

tetoNidan commented 8 months ago

So I just read the part about mo2 v 2.5+ not being supported my proton in the mo2 install page and I assume that is the issue I'm having. So Ill down grade the install till wine/proton catches up. I'll close this.

As always thanks sonic2kk!

tetoNidan commented 8 months ago

So I tried downgrading mo2 by first removing .config/steamtinkerlaunch/mo2 then running steamtinkerlaunch mo2 install ~/Downloads/Mod\ Organizer\ 2-6194-2-4-4-1640622655.exe version 2.4.4 from nexusmods, STL keeps downloading the latest version Mod.Organizer-2.5.1rc2.exe and installing that version instead. I have removed the 2.5.1 from .config/steamtinkerlaunch/downloads/mo2 and tried it again but STL keeps re-downloading 2.5+ to install. I have also passed an absolute path to the install command.

I looked for an option to set custom mo2 executable USEMO2CUSTOMINSTALLER but cannot find it? I opened up the global.conf thinking it might be in there but it was not. Is that the correct config it would be in?

Chaotic AUR version installed or STL is 12.12. Is the AUR version somehow not up to date with current STL version even though it shows the same version?

suamor commented 8 months ago

I recommend not to spend too much time for the STL configuration. Make a backup from the steamuser folder (MO2 pfx folder) and - if changed - regedit settings. then rename or delete the whole STL prefix and reinstall MO2. Otherwise you could build proton/wine-9.0 tkg yourself or download a tkg daily build.

tetoNidan commented 8 months ago

I just uninstalled STL completely and built from 12.12 git source hoping something was wrong with the AUR package not letting me install older version of MO2 using steamtinkerlaunch mo2 install /path/to/file. I even downloaded MO2 2.4.4 directly from MO2's release page thinking that there might be some pattern matching getting in the way as the filename from nexusmods is a bit different. No luck though. Still cant downgrade, STL only initiates download and install of current MO2 release only.

I have managed to get back up and running after reinstalling from the AUR and restoring a backup of MO2 as well as a backup of .config/steamtinkerlaunch.

If you guys want me to open a new bug report for this specific issue I can do that and we could close this one as it was initially operator error. I didn't read the docs in a while and was updating based on a conversation I had a while ago with sonic2kk on another issue.

As always thanks STL team!

suamor commented 8 months ago

I have organized my MO2 installation like this:

Now you have to separate installations with a common overwrite and mods folder. profiles are separate, so you may need from now on to change settings in both MO2-24 and MO2-25. Finally remove MO2-24 when MO2-25 runs stable.

sonic2kk commented 8 months ago

Hi there @tetoNidan, it sounds like you're using an outdated version of SteamTinkerLaunch as you seem to have gathered. The options you're listing are NOT available in v12.12, the wiki and myself DO NOT accommodate the stable releases of STL anymore.

Issues using STL with MO2 v2.5+ have been reported many, many times now too.

I recommend doing the following:

In the future, please do not update MO2, or any software under Wine, as it is likely to fail. However, as @suamor has pointed out, a build of Proton-tkg based on Wine 9 (or really, Wine 8.21 or above, as that's when the path for the Qt6 feature was introduced) should also work. Game compatibility may vary though, as you're using a much more bleeding edge version of Wine! You will likely also need to re-install anyway with this version of Proton, as installation of MO2 2.5+ may not have succeeded with other Proton versions.


I hope this helps. I am not sure exactly what the steps the user above is describing are about, they may also help, but really the main solution here is to backup your mods, remove your MO2 install(s), and then re-install with STL v12.12. Sticking with stable STL is a horrible idea that, by not releasing updates, I had hoped users would simply stop doing. That hasn't worked, and I fear that after releasing v14.0 the problem will just come around again :frowning_face:

There should be an AUR package available for STL-git, but you can also remove the AUR package entirely and install by cloning the repo and installing with sudo make install. If you ever want to go back to the AUR package or install another way, from any STL cloned repo you can run sudo make uninstall. You can check what these all do in the Makefile.

Thanks!

tetoNidan commented 8 months ago

Hi sonic2kk,

Issues using STL with MO2 v2.5+ have been reported https://github.com/sonic2kk/steamtinkerlaunch/issues/1018#issuecomment-1893036240 too.

Yeah I figured that out a bit too late. I was recalling our previous conversation where we were discussing updating and you said that I might be able to just update through the MO2 app, you said that you've never tried it because you never had to. Only when it didn't work out did I come here to read the wiki and file a bug report.

I am using STL 12.12-1.2 from the AUR. I have also installed and tested the latest git, the most current release is Gates of Steiner? Or is there an experimental branch that I should be looking for or are you talking about downloading the source [master branch] for the repository and not from the releases page?

In any event I have successfully restored my mo2 install using a backup with a little debugging. As you pointed out 12.12 is no longer current so I was assuming that the wiki instructions were for 12.12 as well. Since I have a working install and it's not a bug as I'm using an old version without features I was trying to use there is no reason to keep this open. I will take note that the wiki does not necessarily pertain to the current stable release and likely refers to the master branch.

As always thanks for your work sonic2kk!

sonic2kk commented 8 months ago

or are you talking about downloading the source [master branch] for the repository and not from the releases page?

Yes, don't use the releases. Even when v14.0 is out, please don't use a stable version as you won't get the latest fixes :-) There may also be an AUR package for STL-git, there was a while ago but I haven't checked recently.

I don't know if release frequency will pick up after v14.0, I am considering yearly releases similar to what Winetricks does. I would rather not limit users to waiting on a release though, fixes are super accessible once available with STL since it's just a Bash script.

If I didn't think it would result in constant duplicate issues, I would turn off releases altogether.

I will take note that the wiki does not necessarily pertain to the current stable release and likely refers to the master branch.

Yup! The wiki and all information about the project will always point to the latest version, as releases are not really "stable"s so much as development checkpoints. Fixes are not backported, for example, and if a user is not using the latest commit I will ask them to check it as the first step when opening an issue (the issue template also encourages checking the latest commit too).

Since STL is just a bash script that needs no compilation, it should be straightforward to update it :-)

Glad everything is working for you regardless of all of this. However please I encourage you to not stick to the releases, honestly with most software you're probably better off with the latest version you can get your hands on!

But it's working for you and that's what matters. Happy gaming!

tetoNidan commented 8 months ago

There may also be an AUR package for STL-git, there was a while ago but I haven't checked recently.

I usually stick to the AUR version whether from the Chaotic repo or the AUR directly. The AUR version is 12.12 and that is what the Chaotic AUR uses to compile from. I don't think they will update the package till the STL version # changes so its good to know that they will likely be a year behind. It looks like the stl-git version is on 11.11 last updated in late 2022 just an FYI.

I just like the ease of updating/removing all packages through pacman/yay as I don't have to keep or redownload anything for reinstallation or removal but I might make an exception for STL, it's not that hard to do for one program, it's when it's 5+ that it gets a little cumbersome.

Any way it's always nice to chat, hope you had a wonderful holiday season and you and your loved ones are in good health! Thanks sonci2kk.

sonic2kk commented 8 months ago

It looks like the stl-git version is on 11.11 last updated in late 2022 just an FYI.

I think this is just a "cosmetic" version, since the PKGBUILD should just pull from GitHub rather than any specific release.

I just like the ease of updating/removing all packages through pacman/yay

Yeah, I do too, and usually I will use this to get -git versions of packages. For example, lutris-git, gimp-devel, previously I used Mesa-git as well from Chaotic-AUR (encountered a GPU hang and had to rollback, but will probably go to Mesa-git again soon). But I agree that using a Makefile is usually a last resort. The previous maintainer agreed, but to make this a lot more straightforward, I added an uninstall block to the Makefile (#608). Many projects when installed from source don't have an easy uninstall path, but I wanted to make this as straightforward as possible.

There have also been improvements to using "local" installs of SteamTinkerLaunch, based on the information given in #548 and improvements since then (can't find all the PRs, but most of the work was done in v11.11 onwards). Essentially you just put STL somewhere on your harddrive, add the path to the script to your PATH, and run steamtinkerlaunch compat add. STL will then be able to detect how it is running and use the files in the local folder. This is how STL works on SteamOS and also how it works when installed from ProtonUp-Qt.

The downside to a "local" install is that you have to add STL to your path manually (although ProtonUp-Qt can do it), but mainly that you don't get your dependencies managed for you. ProtonUp-Qt does list the hard dependencies though, and the wiki has a full list of dependencies.

However, you do still make a good point about package managers. A few projects package STL out of the box now (Bazzite, winesapOS, Nobara) and they stick to the stables. So that does put me off a yearly release "cycle". Nothing is really set in stone yet, I'll see how I feel after v14.0 comes out and take things from there :-) I am tentatively hoping to release v14.0 in a few months (see #992 for roadmap).

Any way it's always nice to chat, hope you had a wonderful holiday season and you and your loved ones are in good health!

I appreciate that, you too! I have been taking a mental health break from public projects and just checked in today, but I will likely continue my break for a little bit longer. Take care!