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.12k stars 71 forks source link

Mod Organizer 2 not launching/installing on Steam Tinker (v11.1.20220916) Menu on Deck. #589

Closed GenghisSwan10 closed 1 year ago

GenghisSwan10 commented 1 year ago

Hello all. I recently downloaded SteamTinker Launcher on Steam Deck to mod Cyberpunk 2077 via Vortex. When Vortex didn’t work, I resorted to Mod Organizer 2 (which someone recommended). I am able to launch the menu successfully, but when I try to install MO2, it pops up a window then immediately closes it.

I should add I’m very green to modding/PCs in general. Is there a way to fix this. Launching vortex works fine, it’s just that I can’t use it.

sonic2kk commented 1 year ago

Vortex has a few issues with SteamTinkerLaunch and Linux in general at the moment, as far as I'm aware. MO2 should work fine though.

I'm not sure why MO2 is failing, could you provide some logs? You can find them in /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log. Also, what window is it that pops up, could you describe it any further?

Also, it's much easier to work with any kind of graphical tool on Steam Deck via Desktop Mode. If you're trying to do this from Game Mode, it could be causing issues. Just mentioning this as you said you're new to modding :smiley:

EDIT: Another thing you could try is opening your file explorer (called "Dolphin"), navigating to the folder with the steamtinkerlaunch file, right clicking and selecting "Open Terminal here". A window will open and from here you can type ./steamtinkerlaunch mo2 install. This will attempt to install MO2 (SteamTinkerLaunch might also try to update). This should do the same thing as trying to install it from the SteamTinkerLaunch Main Menu, but here we can also see some more output of where and why it might fail to install.

It might be easier to mod games in general on Steam Deck if you can attach a keyboard and mouse, but no worries if you can't. Just a friendly tip :smiley:

GenghisSwan10 commented 1 year ago

When I typed that all in, it said “Permission Denied”. The window that pops up is a SteamTinker window when I click on the MO2 option. Also, I have been on Desktop mode for the majority of it.

On Mon, Sep 19, 2022 at 2:33 PM Eamonn Rea @.***> wrote:

Vortex has a few issues with SteamTinkerLaunch and Linux in general at the moment, as far as I'm aware. MO2 should work fine though.

I'm not sure why MO2 is failing, could you provide some logs? You can find them in /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log. Also, what window is it that pops up, could you describe it any further?

Also, it's much easier to work with any kind of graphical tool on Steam Deck via Desktop Mode. If you're trying to do this from Game Mode, it could be causing issues. Just mentioning this as you said you're new to modding 😃

— Reply to this email directly, view it on GitHub https://github.com/frostworx/steamtinkerlaunch/issues/589#issuecomment-1251459895, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3FIB6EWUYO7ZB6FS6DMT5TV7C5YHANCNFSM6AAAAAAQQKO37A . You are receiving this because you authored the thread.Message ID: @.***>

GenghisSwan10 commented 1 year ago

EDIT: Tried running Konsole with the files but it simply says “No such file or directory”. image

GenghisSwan10 commented 1 year ago

UPDATE: Went to Downloads and found this. Maybe I did it right??? 8FABAE34-8EE4-4220-9169-9D984AEF7FDC

sonic2kk commented 1 year ago

I'm not sure what that mo2 folder in your downloads is but it's likely unrelated.

Also, it looks like you're in the wrong folder. If you go to the ~/stl/prefix folder you should be able to run ./steamtinkerlaunch mo2 install from a terminal. That should be the correct folder.

Just an aside: I noticed you have LOOT in your Downloads folder. MO2 comes with LOOT installed, so you shouldn't need to install it separately :smiley:

GenghisSwan10 commented 1 year ago

image Ended up getting this…

sonic2kk commented 1 year ago

Hmm, those look like some strange Yad warnings (that's what STL uses to display its UI), but I'm not sure they're entirely relevant. Maybe MO2 installed successfully? Though I would've expected more output. I thought when I installed it on PC that it gave me a message.

Can you attempt the following:

  1. Attempt to launch your game with SteamTinkerLaunch as the selected compatibility tool (I think it was Cyberpunk 2077)
  2. Go to the Main Menu and then to the Game Menu (it's a button along the bottom)
  3. You'll see a heading with "Mod Organizer 2 options". Can you ensure that "GUI" is selected like the following:

    image

  4. Click "Play" and a window should pop up asking if you want to start MO2. You can just let this time out. It might take a while (sometimes up to a few minutes at worst on first boot), but eventually MO2 should start up, if it is installed, which I'm not totally sure about yet :sweat_smile:

If this was not selected before, try installing MO2 again, either from the SteamTinkerLaunch UI or from Terminal like you just did. Though I doubt this option would make a difference, I'm just trying to cover all bases :smiley:


If this still does nothing, go to ~/.config/steamtinkerlaunch/mo2, and if you have a folder there called compatdata, go into it and go to pfx/drive_c/Modding/MO2 and send a picture of what you see. It should look something like this if MO2 really is installed (which I'm not sure about):

image


If you see nothing in these folders or you can't find any of these folders, likely MO2 is not installed. If this is the case, can you attempt this:

  1. Try to install MO2 from the SteamTinkerLaunch UI again
  2. Close SteamTinkerLaunch
  3. Attach the steamtinkerlaunch.log file found at /dev/shm/steamtinkerlaunch to a reply so we can see the logs.

Good luck!

GenghisSwan10 commented 1 year ago

image This was all that I could find in these folders.

sonic2kk commented 1 year ago

What is inside the "Modding" folder? This indicates to me that MO2 is installed?

GenghisSwan10 commented 1 year ago

Nothing is in the modding folder

sonic2kk commented 1 year ago

Hmm, so it seems like MO2 is failing to install for some reason, but the prefix seems to be getting created.

Could you try the other steps I outlined as well? In particular I'm interested to see the logs. There hasn't been a new release for MO2 so nothing should have broken on their side at least.

GenghisSwan10 commented 1 year ago

I will update you once it’s done installing ^^

GenghisSwan10 commented 1 year ago

Cyberpunk that is

GenghisSwan10 commented 1 year ago

image This is all I’m getting

GenghisSwan10 commented 1 year ago

I even scrolled down and did not see any Mod Organizer 2 options

sonic2kk commented 1 year ago

Hmm. Well, try installing MO2 using the button on the menu and attaching your SteamTinkerLaunch log. Maybe the MO2 options only show up if MO2 is installed but I'm not sure on that.

You can find the log in /dev/shm/steamtinkerlaunch and it's called steamtinkerlaunch.log. You can drag it onto your GitHub reply to attach the file. It's much better if you can attach as a file rather than pasting it in as a big block of text, as it makes it easier to debug :)

Thanks for all your patience so far. I'm sure this is annoying but we'll get there I'm sure. Someone else who has used MO2 more extensively on Deck might be able to chime in too 😃

GenghisSwan10 commented 1 year ago

file:///dev/shm/steamtinkerlaunch/steamtinkerlaunch.log

GenghisSwan10 commented 1 year ago

Now what?

GenghisSwan10 commented 1 year ago

I should also add that installing it on the main menu of STL didn’t work. Unless there’s a way to boot up STL without starting a game

sonic2kk commented 1 year ago

Hmm apparently that didn't work, that's just the path to the log. Try to attach the file, you should be able to drag the file onto the file browser window that opens up and then attach it

And yes, I didn't expect it to work. I want to see the log for where it fails :)

GenghisSwan10 commented 1 year ago

file:///dev/shm/steamtinkerlaunch/steamtinkerlaunch.log steamtinkerlaunch.log

GenghisSwan10 commented 1 year ago

Silly me lol

sonic2kk commented 1 year ago

Thanks! Did you try to install MO2 when you attached this log? I had a quick glance but I'm not seeing anything related to MO2 there. Just to reiterate:

  1. Launch your game with STL
  2. Use the main menu button to try and install MO2
  3. Based on this issue it'll fail, don't worry. Just close the game and then attach the log
GenghisSwan10 commented 1 year ago

steamtinkerlaunch.log Did what you said. Let me know

sonic2kk commented 1 year ago

Thanks, this has much more information. It looks like for some reason it can't find the MO2 executable. I'm gonna dig into the logs and see if I can find out more.

GenghisSwan10 commented 1 year ago

Thank you so much btw

sonic2kk commented 1 year ago

Okay so for anyone else looking at the issue, the lines of interest from the logs are:

Mon Sep 19 06:47:33 PM CDT 2022 INFO - StatusWindow - for 'Installing 'ModOrganizer''
Mon Sep 19 06:47:33 PM CDT 2022 INFO - getLatestMO2Ver - Search for latest 'Mod.Organizer' Release
Mon Sep 19 06:47:34 PM CDT 2022 SKIP - dlLatestMO2 - No MO2SETUP defined - nothing to download - skipping
Mon Sep 19 06:47:34 PM CDT 2022 SKIP - installMO2 - '' not found - nothing to install - skipping

MO2SETUP seems to refer to the downloaded MO2 executable from this block:

function getLatestMO2Ver {
    MO2SET="Mod.Organizer"

    writelog "INFO" "${FUNCNAME[0]} - Search for latest '$MO2SET' Release"
    MO2SETUP="$("$WGET" -q "${MO2DLURL}" -O - 2> >(grep -v "SSL_INIT") | grep "exe" | grep -m1 "$MO2SET" | grep -oE "${MO2SET}[^\"]+")"
}

Then it goes on to setup game symlinks. Then it says this:

Mon Sep 19 06:47:40 PM CDT 2022 ERROR - prepareMO2 - No '/home/deck/.config/steamtinkerlaunch/mo2/compatdata/pfx/drive_c/Modding/MO2/ModOrganizer.exe' found - can't continue
Mon Sep 19 06:47:40 PM CDT 2022 SKIP - startMO2 - Could not find '/home/deck/.config/steamtinkerlaunch/mo2/compatdata/pfx/drive_c/Modding/MO2/ModOrganizer.exe' - can't start ModOrganizer - this should not happen

Indeed, this should not happen.


@GenghisSwan10 basically this means for some reason, STL expects that MO2 is installed, but of course it isn't. I'm not sure how this happened, but I recommend doing the following to try and fix whatever has gone wrong. Make sure SteamTinkerLaunch is closed when you're doing this :slightly_smiling_face:

  1. Go to ~/.config/steamtinkerlaunch and delete the mo2 folder (this should remove all MO2 data)
  2. Go to ~/.config/steamtinkerlaunch/downloads and if it exists, delete the mo2 folder (removes any potentially corrupted/invalid downloads of MO2, probably this folder either won't exist or won't have anything but just to be safe) - Keep this folder open, we'll come back to it in a bit!
  3. Go to ~/.config/steamtinkerlaunch/gamecfgs/id and delete 1091500.conf (removes any potentially invalid config file for Cyberpunk 2077, this is its internal Steam AppID, the number that Steam uses to identify the game)
  4. Go to ~/.local/share/Steam/steamapps/compatdata and delete the 1091500 (this is the Wine prefix, basically deleting this allows you to run the game again like it was never installed)
  5. Go to ~/.config and if you see a folder called modorganizer2, delete it. If not, don't worry
  6. Run the game once without SteamTinkerLaunch and then close it. You can use GE-Proton7-35 or standard Proton, just as long as you launch the game once (this re-creates the folder we deleted above)
  7. Keep an eye on that ~/.config/steamtinkerlaunch/downloads folder I mentioned earlier. Open a Konsole window and type cd ~/stl/prefix, then run ./steamtinkerlaunch mo2 install. You'll want to keep an eye on the downloads folder to see if SteamTinkerLaunch downloads anything to that folder! It's meant to download a file into the mo2 folder called Mod.Organizer-2.4.4.exe or something to this effect.
  8. Hopefully this works but either way, attach the steamtinkerlaunch.log file just like you did earlier from /dev/shm/steamtinkerlaunch. This log will have information about how SteamTinkerLaunch tried to install MO2, so we can get an idea of what's actually going on. Don't try to run your game or any other SteamTinkerLaunch commands as this will overwrite the log.

I'm not super positive on why MO2 didn't install correctly, but this will at the very least give us more insight into why it failed.

I think maybe for some reason STL thinks MO2 is already installed, but it's not. Out of curiosity, did you attempt to install MO2 in some other way before trying SteamTinkerLaunch? If so perhaps that caused some issues (maybe it messed with the Wine prefix or something and made STL think MO2 was already installed)

GenghisSwan10 commented 1 year ago

steamtinkerlaunch.log There. Hope this helps.

sonic2kk commented 1 year ago

Was this the log generated after running ./steamtinkerlaunch mo2 install? I can't see anything initially related to MO2 in that log I'm afraid.

If so you try running your game with SteamTinkerLaunch and checking if any MO2 options show up in the Game Menu?

GenghisSwan10 commented 1 year ago

No it was not. Lemme try running it

GenghisSwan10 commented 1 year ago

It says no such file or directory.

GenghisSwan10 commented 1 year ago

Tried booting up Cyberpunk with Steam Tinker, clicked MO2 and it’s still doing the same thing. Ugh…

sonic2kk commented 1 year ago

That sounds like you're not in the right folder. From a terminal, run cd ~/stl/prefix and then type ./steamtinkerlaunch mo2 install.

After that, try attaching the log again. Once you attach the log and post, you're free to try to run your game with SteamTinkerLaunch and check the Game Menu for any MO2 options 😃

GenghisSwan10 commented 1 year ago

steamtinkerlaunch.log

GenghisSwan10 commented 1 year ago

There’s still a Mod Organizer 2 option but every time I click it, it still does the pop up thing

sonic2kk commented 1 year ago

From that log it looks like SteamTinkerLaunch is doing the same thing I described earlier. For some reason it seems unable to download MO2.

Do you have any kind of network restrictions by chance?

GenghisSwan10 commented 1 year ago

Wait lemme switch to game mode since I can find the game menu easier that way

GenghisSwan10 commented 1 year ago

There is a mod organizer 2 option! ![Uploading image.jpg…]()

sonic2kk commented 1 year ago

I would recommend not using Game Mode for modding. Once your mods are setup you can launch your game that way but Game Mode shouldn't make any difference and you'll need to switch between Steam, terminal and your file manager when in the process of modding.

Can you go to ~/.config/steamtinkerlaunch/downloads and see if there's a mo2 folder? If there is, what is inside it?

sonic2kk commented 1 year ago

Oh! That is a bit surprising. I wonder then...

Set your MO2 option to "GUI" and try launching your game. Though I still suspect it'll fail based on the logs.

GenghisSwan10 commented 1 year ago

In the MO2 folder, the 4.4 exe is in there and that’s it. Also, for some reason in desktop the game menu in STL is cut off a bit so I can’t see what it says.

GenghisSwan10 commented 1 year ago

image It won’t let me scroll down all the way

GenghisSwan10 commented 1 year ago

Nvm I just guessed and clicked the right one

sonic2kk commented 1 year ago

In the MO2 folder, the 4.4 exe is in there and that’s it.

That's good! So STL is actually able to download MO2. Looking at the logs again on my PC, the lines are actually a little different.

Mon Sep 19 07:51:32 PM CDT 2022 INFO - main - Checking command line: incoming arguments 'mo2 install'
Mon Sep 19 07:51:32 PM CDT 2022 INFO - StatusWindow - for 'Installing 'ModOrganizer''
Mon Sep 19 07:51:32 PM CDT 2022 INFO - getLatestMO2Ver - Search for latest 'Mod.Organizer' Release
Mon Sep 19 07:51:33 PM CDT 2022 SKIP - dlLatestMO2 - No MO2SETUP defined - nothing to download - skipping
Mon Sep 19 07:51:33 PM CDT 2022 SKIP - installMO2 - '' not found - nothing to install - skipping

The logging output here is a little strange but it seems like we might be getting somewhere nonetheless.

Also, for some reason in desktop the game menu in STL is cut off a bit so I can’t see what it says.

Ah, right, I've seen a few reports of this. I opened an issue with some ideas on how to resolve it, but no ETA on if or when it'll be implemented.

It's interesting that MO2 is showing up now. I guess it at least got further in the installation, though the MO2 button not working in the Main Menu is a little odd.

GenghisSwan10 commented 1 year ago

Ok, so it opens a pop up after I select GUI and press Save and Play. There were two options image

GenghisSwan10 commented 1 year ago

Neither seem to work

GenghisSwan10 commented 1 year ago

Choosing to open it just seemingly closes the game and takes me back to home

sonic2kk commented 1 year ago

"MO2 Skip" likely doesn't work, no worries.

"MO2 GUI" setup is what STL will default to when you let it time out. It's a bit strange that it does nothing.

Just to confirm, you followed all of the steps I outlined earlier for the folders to delete, right? Also, did you attempt to install MO2 in any way other than using SteamTinkerLaunch on your Steam Deck?

If so, at this point, there is a last resort option I can think of. With SteamTinkerLaunch closed, delete the ~/.config/steamtinkerlaunch folder, then run your game with SteamTinkerLaunch again to reinstall. Then, from terminal, run ./steamtinkerlaunch mo2 install again.

GenghisSwan10 commented 1 year ago

Actually, yes. Through Nexus

GenghisSwan10 commented 1 year ago

Should I still delete it?