DaniAsh551 / wemod-launcher

Tool made to launch the popular Game Trainer / Cheat tool WeMod along with your game (made for steam-runtime version in Linux).
MIT License
174 stars 8 forks source link

Problem trying to run the laucher in steam flatpak #87

Closed Salvodif closed 2 months ago

Salvodif commented 2 months ago

hello, sorry to bother you again but I tried to reinstall your app on a new distro and it doesn't work giving this error

chdir "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider"
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/bin/sh: line 1: /home/blackpraedicator/Public/wemod-launcher/wemod: No such file or directory

By the way I'm not using GE and the file is there.

marvin1099 commented 2 months ago

Is this path correct? /home/blackpraedicator/Public/wemod-launcher/wemod If you follow the guide it should be /home/blackpraedicator/wemod-launcher/wemod

Salvodif commented 2 months ago

yes the path is correct image

I just preferred to have there WeMod

marvin1099 commented 2 months ago

I just preferred to have there WeMod

Ok, thats fine it should work like that, hmm are you using the flatpak of steam?

If you have the flatpak you have to allow the wemod dir to be used by steam, you best use flatseal to set that

marvin1099 commented 2 months ago

Also run this,
if it prints file not found
then you probably have typo
or something like it:

if [[ ! -f "/home/blackpraedicator/Public/wemod-launcher/wemod" ]]; then
    echo "File not found!"
fi
Salvodif commented 2 months ago

ts fine it should work like that, hmm are you using

ok don't know what is flatseal, let me check.

the script says nothing, so no typo

marvin1099 commented 2 months ago

So are you running the steam flatpak? If so install flatseal, to install flatseal you can use

flatpak install flathub com.github.tchx84.Flatseal

Keep if mind this is not usefull if you have steam installed over the arch repos.

Salvodif commented 2 months ago

So are you running the steam flatpak? If so install flatseal, to install flatseal you can use

flatpak install flathub com.github.tchx84.Flatseal

installed and yes I'm using steam on flatpak because I thought I could play with Bloodhunt but even in this way I cannot

marvin1099 commented 2 months ago

in this case install and open Flatseal and click on steam.
In the example below i have a other program but you want to select steam. Then toggle on the green marked option (like i have). If you like to only give access to the wemod-laucher and nothing else, you can add the wemod-laucher dir under other paths and leave the green option off.

image

marvin1099 commented 2 months ago

After setting the option in flatseal wemod-laucher probably works, but considering your game problems,
you may want to consider the steam version from the arch repos.
For me the repo version worked better, this is of course optional, you can try it if you want to.
If you want to try a few things about "Bloodhunt",
you could try to download a proton version from ProtonUp-QT.
Like GE-Proton or one of the other steam proton options in Up.
And you probably want to check out protondb.com
and look for your game there to find fixes and simelar

marvin1099 commented 2 months ago

If you still have problems i can reopen this,
just say so but I think I your problem is solved.

Salvodif commented 2 months ago

it seems that is not possible

INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
WARNING:root:Found filesystem "home" in static permissions
ERROR:root:Refusing to launch in order to prevent issues; if you've added an override with access to some of the filesystems above, please remove it and see https://github.com/flathub/com.valvesoftware.Steam/wiki#i-want-to-add-external-disk-for-steam-libraries
marvin1099 commented 2 months ago

In that case you have to only give access to the wemod-laucher and nothing else, you can add the wemod-laucher directory under other paths and leave the green option off.

Or you can also add your Public folder since the wemod laucher folder is in the Public folder for you it should work.

Just klick on the plus on the right of the Other Files Option (below the green Option) and paste the folder path /home/blackpraedicator/Public

Salvodif commented 2 months ago

image

I did it but I still get the same error

marvin1099 commented 2 months ago

You have to disable All user files (the green Option in my image)

Salvodif commented 2 months ago
The script wemod-laucher is running on version 1.138
Package 'FreeSimpleGUI' is missing
Package 'requests' is missing
pip not installed. Using local pip.pyz
pip finished
Failed to update, the following error appeared:
    [Errno 2] No such file or directory: 'git'
The normal args list is 12 long and the full contents are:
    ['/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper', 'SteamLaunch', 'AppId=391220', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point', '--verb=waitforexitandrun', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton 9.0 (Beta)/proton', 'waitforexitandrun', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider/ROTTR.exe']
Looking for init file '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/391220/pfx/.wemod_installer'
Loking for compatible wine prefixes in '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata' with proton version '9.2'
No compatible Proton version found in the compatibility folder.
No versions to copy available
Looking once more for the init file
Init file not found! Attempting to prepare the WINEPREFIX
Error occored, open the log?
ERR:
No module named 'FreeSimpleGUI'

How to install the FreeSimpleGUI? I'm gonna search for it

marvin1099 commented 2 months ago

How to install the FreeSimpleGUI? I'm gonna search for it

This is usually done automatically over a venv so make shure you have python venv installed, but since steam is sandboxed (inside a flatpak) it might be needed to install the python venv inside the flatpak or you may be able to add the python install dir dir of you system to Other Files, this is a special case, it seems this will require some additional setup, i have to look into that.

marvin1099 commented 2 months ago

also you have to install / allow git to the steam flatpak if you want updates to work

marvin1099 commented 2 months ago

Do the following:

After that try to run it then in the log it should hopefully say something like Update finished or Updated. The problem will stay, but if the update works there will be some new info in the log that is crucial to fixing this problem.

marvin1099 commented 2 months ago

I will need that new logfile of course, that way i will hopefully be to make this work

Salvodif commented 2 months ago
[2024-07-02 09:04:07] Nothing to do
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.555.58 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32:/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/panorama:/app/lib/i386-linux-gnu/GL/default/lib:/app/lib/i386-linux-gnu/GL/nvidia-555-58/lib:/app/lib32:/app/lib/i386-linux-gnu:/lib64:/app/lib:/usr/lib/x86_64-linux-gnu/GL/default/lib:/usr/lib/x86_64-linux-gnu/GL/nvidia-555-58/lib:/usr/lib/x86_64-linux-gnu/openh264/extra:/usr/lib/x86_64-linux-gnu", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
F: Not sharing "/usr/bin/git" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/git" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/lib/git-core" with sandbox: Path "/usr" is reserved by Flatpak
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
Fossilize INFO: Setting autogroup scheduling.
Fossilize INFO: Setting autogroup scheduling.
Fossilize INFO: Setting autogroup scheduling.
chdir "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider"
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/bin/sh: line 1: /home/blackpraedicator/Public/wemod-launcher/wemod: No such file or directory
Adding process 1511 for gameID 391220
WARNING: discarding _NET_WM_PID 1581 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Uploaded AppInterfaceStats to Steam
Removing process 1511 for gameID 391220

image

I think I have set everything up correctly

marvin1099 commented 2 months ago

It seams /usr is reserved by Flatpak, maby it works if you enable All System Libraries And Executables (the second option in Filesystem), try that and i will need the wemod.log file afer you try to run the game to see what happens in the script. In Addition /home/$USER/Public/ as you have added previesly was correct add that back, you where not suppoced to remove that path.

So try like this:
image

Salvodif commented 2 months ago
chdir "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider"
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 1426 for gameID 391220
Adding process 1427 for gameID 391220
WARNING: discarding _NET_WM_PID 1595 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
WARNING: discarding _NET_WM_PID 1595 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Adding process 1428 for gameID 391220
Adding process 1431 for gameID 391220
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
The wemod script wemod-laucher is running on version 1.138
Uploaded AppInterfaceStats to Steam
Adding process 1433 for gameID 391220
Removing process 1433 for gameID 391220
Removing process 1431 for gameID 391220
Removing process 1428 for gameID 391220
Removing process 1427 for gameID 391220
Removing process 1426 for gameID 391220

WeMod.log wemod.log

marvin1099 commented 2 months ago

You set it up like in the my last image right? Please for now also manually update the wemod-launcher, for that use the following commands:

cd /home/blackpraedicator/Public/wemod-launcher
git reset --hard origin
git pull
sudo chmod -R ug+x .

Then rerun the game and send the new wemod.log.

Salvodif commented 2 months ago
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.555.58 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32:/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/panorama:/app/lib/i386-linux-gnu/GL/default/lib:/app/lib/i386-linux-gnu/GL/nvidia-555-58/lib:/app/lib/ffmpeg/.:/app/lib32/ffmpeg/.:/app/lib32:/app/lib/i386-linux-gnu:/lib64:/app/lib:/usr/lib/x86_64-linux-gnu/GL/default/lib:/usr/lib/x86_64-linux-gnu/GL/nvidia-555-58/lib:/usr/lib/x86_64-linux-gnu/openh264/extra:/usr/lib/x86_64-linux-gnu", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
F: Not sharing "/usr/lib/git-core" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/bin/git" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/git" with sandbox: Path "/usr" is reserved by Flatpak
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
chdir "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider"
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 812 for gameID 391220
Adding process 813 for gameID 391220
WARNING: discarding _NET_WM_PID 1584 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
WARNING: discarding _NET_WM_PID 1584 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Adding process 814 for gameID 391220
Adding process 817 for gameID 391220
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
The wemod script wemod-laucher is running on version 1.139
Adding process 819 for gameID 391220
Uploaded AppInterfaceStats to Steam
Removing process 819 for gameID 391220
Removing process 817 for gameID 391220
Removing process 814 for gameID 391220
Removing process 813 for gameID 391220
Removing process 812 for gameID 391220

wemod.log

image

marvin1099 commented 2 months ago

jeep looks good, run the commands, then the game and send the new wemod.log file as mentioned.

Salvodif commented 2 months ago

jeep looks good, run the commands, then the game and send the new wemod.log file as mentioned.

yep, on that post there are also the log of the console with the error and the wemod.log

marvin1099 commented 2 months ago

oh i missed that thanks

marvin1099 commented 2 months ago

i looking into it right now but the problem seems complex,
i will probably find a fix for is in time but i cant say how long it will take
since these issues are flatpak problems and i don't know flatpak well.
My recommendation use the normal steam version,
if you don't want that you will have to wait until i find a fix for this (may take a few days).

marvin1099 commented 2 months ago

Its in fact painful to make this work, will try do it, but the reason for why this is difficult is that wemod is not designed to run inside a steam flatpak container, it expects to have a bunch of things available that cant easily be added to the flatpak, so it needs to be passed to the host but then it also needs to go back into the flatpac afterwards, that way it can then have access to all the steam tools. I cant promise i get this done, i will keep you posted.

Salvodif commented 2 months ago

it's ok, I'm doing beta testing :-D

marvin1099 commented 2 months ago

I may have done it try out the test flatpac version by running:

cd /home/$USER/wemod-launcher
git reset --hard origin
git checkout test-flatpac
git pull
sudo chmod -R ug+x .

To make it work you will have to install flatpak-xdg-utils
and allow system bus and session bus in flatseal. GE-Proton also seems to be needed in the flatpak version at least,
so you will have to download that, for that just use protonup.
Report back after you tried it.

Salvodif commented 2 months ago
I] ^^/A/wemod-launcher >>> git checkout test-flatpac                                                                                                   (1) (main+497) 12:22:11 
error: pathspec 'test-flatpac' did not match any file(s) known to git
marvin1099 commented 2 months ago

My mistake run:

cd /home/$USER/wemod-launcher
git reset --hard origin
git pull
git checkout test-flatpac
git pull
sudo chmod -R ug+x .

You may have to delete your game-prefix, see how far you get.

Salvodif commented 2 months ago

My mistake run:

cd /home/$USER/wemod-launcher
git reset --hard origin
git pull
git checkout test-flatpac
git pull
sudo chmod -R ug+x .

You may have to delete your game-prefix, see how far you get.

I got this

chdir "/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider"
ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/bin/sh: line 1: /home/blackpraedicator/Apps/wemod-launcher/wemod: No such file or directory

But I didin't install GE yet and the directory path is correct

marvin1099 commented 2 months ago

did you change the wemod laucher dir?
from /home/blackpraedicator/Public/wemod-launcher
to /home/blackpraedicator/Apps/wemod-launcher ?
Then you have to change that in Flatseal.
In Flatseal /home/blackpraedicator/Apps is enough, or you can allow only the folder
/home/blackpraedicator/Apps/wemod-launcher
should result in the same thing. Also the command i send was for
/home/blackpraedicator/wemod-launcher
so you changed that to be correct right?

Salvodif commented 2 months ago

OMG sorry, I forgot about that Flatseal

image

I removed the / at the end of /home/blackpraedicator/Apps/wemod-launcher

plus

image

I got this strange error never saw before

[I] ^^>>> steam                                                                                                                                                        17:01:58 
F: Not sharing "/usr/lib/git-core" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/bin/git" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/git" with sandbox: Path "/usr" is reserved by Flatpak
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
WARNING:root:Found filesystem "home" in static permissions
ERROR:root:Refusing to launch in order to prevent issues; if you've added an override with access to some of the filesystems above, please remove it and see https://github.com/flathub/com.valvesoftware.Steam/wiki#i-want-to-add-external-disk-for-steam-libraries
marvin1099 commented 2 months ago

The option All user files still needs to be off.

Salvodif commented 2 months ago

WeMod.log

Config on version 1.139 updating to 1.142
The script wemod-laucher is running on version 1.142
Package 'FreeSimpleGUI' is missing
Pip not installed. Using local pip.pyz
Pip finished and returned:
    b'Defaulting to user installation because normal site-packages is not writeable\nRequirement already satisfied: FreeSimpleGUI in /var/data/python/lib/python3.11/site-packages (from -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 1)) (5.1.0)\nRequirement already satisfied: requests in /var/data/python/lib/python3.11/site-packages (from -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 2)) (2.32.3)\nRequirement already satisfied: charset-normalizer<4,>=2 in /var/data/python/lib/python3.11/site-packages (from requests->-r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 2)) (3.3.2)\nRequirement already satisfied: idna<4,>=2.5 in /var/data/python/lib/python3.11/site-packages (from requests->-r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 2)) (3.7)\nRequirement already satisfied: urllib3<3,>=1.21.1 in /var/data/python/lib/python3.11/site-packages (from requests->-r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 2)) (2.2.2)\nRequirement already satisfied: certifi>=2017.4.17 in /var/data/python/lib/python3.11/site-packages (from requests->-r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt (line 2)) (2024.6.2)\n'
    b"ERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.\nERROR: ld.so: object '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.\n"
Failed to update, the following error appeared:
    [Errno 2] No such file or directory: 'git'
Re-running script within virtual environment 
or to update or to run outside of flatpak with the command:
    ['flatpak-spawn', '--host', 'env', 'STEAM_COMPAT_TOOL_PATHS=/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton 9.0 (Beta):/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper', 'STEAM_COMPAT_DATA_PATH=/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/391220', 'FROM_FLATPAC=true', 'WeModInfProtect=2', '/usr/bin/python3', '/home/blackpraedicator/Apps/wemod-launcher/wemod', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper', 'SteamLaunch', 'AppId=391220', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point', '--verb=waitforexitandrun', '--', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton 9.0 (Beta)/proton', 'waitforexitandrun', '/home/blackpraedicator/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Rise of the Tomb Raider/ROTTR.exe']

The rerun nr 1 was started
Looking for runfile '/home/blackpraedicator/Apps/wemod-launcher/.cache/insideflatpak.tmp'
The script wemod-laucher is running on version 1.142
Package 'FreeSimpleGUI' is missing
Externally managed environment detected.
Virtual environment created successfully.
Pip not found. Downloading...
CRITICAL: Dependencies can't be installed
Failed to install dependencies. Error.
Do you want to open the log for more info on the exit error?

Steam


[2024-07-04 18:42:11] Background update loop checking for update. . .
[2024-07-04 18:42:11] Checking for available updates...
[2024-07-04 18:42:11] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12?t=219788885
[2024-07-04 18:42:11] Manifest download: send request
[2024-07-04 18:42:11] Manifest download: waiting for download to finish
[2024-07-04 18:42:12] Manifest download: finished
[2024-07-04 18:42:12] Download skipped: /steam_client_ubuntu12?t=219788885 version 1718904662, installed version 1718904662, existing pending version 0
[2024-07-04 18:42:12] Nothing to do

Shall I install pip into flatplak?

marvin1099 commented 2 months ago

it should be good enough to install python-pip on your host. make sure the command pip works on your host. To be clear if you open a regular terminal, that will open in your host.

Salvodif commented 2 months ago

I already have python installed

marvin1099 commented 2 months ago

I already have python installed

Not python, you need python-pip. You can have python without having pip.

Python dosn't need pip, it needs to be installed separately.

Open a terminal and run

pip

if it works then pip is installed,
if not it needs to be installed

Salvodif commented 2 months ago

I've it pip 24.1.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)

I play with python sometimes

marvin1099 commented 2 months ago

Strange, well i will try some more stuff. But i did see in your logs that the wemod-launcher did get started outside of the flatpak. That's good, i just not sure what that pip error is all about, Can you try to run:

/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?

and send the result here so i can see what the pip problem is.

Salvodif commented 2 months ago

I don't understand why I got this

[I] ^^>>> /home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt                         06:15:56 
exec: Failed to execute process '/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip': The file specified the interpreter '/home/blackpraedicator/Public/wemod-launcher/wemod_venv/bin/python3', which is not an executable command.

LSD

[I] ^^/A/w/w/bin >>> pwd                                                                                                                           (*test-flatpac+531) 06:16:53 
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin
[I] ^^/A/w/w/bin >>> ls                                                                                                                            (*test-flatpac+531) 06:17:01 
.rw-r--r-- blackpraedicator blackpraedicator 2.1K Thu Jul  4 18:41:41 2024  activate
.rw-r--r-- blackpraedicator blackpraedicator 959B Thu Jul  4 18:41:41 2024  activate.csh
.rw-r--r-- blackpraedicator blackpraedicator 2.2K Thu Jul  4 18:41:41 2024  activate.fish
.rw-r--r-- blackpraedicator blackpraedicator 8.8K Thu Jul  4 18:41:41 2024  Activate.ps1
.rwxr-xr-x blackpraedicator blackpraedicator 295B Sun Jun 30 15:56:07 2024  fsghelp*
.rwxr-xr-x blackpraedicator blackpraedicator 313B Sun Jun 30 15:56:07 2024  fsgissue*
.rwxr-xr-x blackpraedicator blackpraedicator 303B Sun Jun 30 15:56:07 2024  fsgmain*
.rwxr-xr-x blackpraedicator blackpraedicator 333B Sun Jun 30 15:56:07 2024  fsgsettings*
.rwxr-xr-x blackpraedicator blackpraedicator 307B Sun Jun 30 15:56:07 2024  fsgver*
.rwxr-xr-x blackpraedicator blackpraedicator 284B Sun Jun 30 15:56:08 2024  normalizer*
.rwxr-xr-x blackpraedicator blackpraedicator 272B Sun Jun 30 15:56:06 2024  pip*
.rw-r--r-- blackpraedicator blackpraedicator 1.7M Thu Jul  4 18:41:41 2024  pip.pyz
.rwxr-xr-x blackpraedicator blackpraedicator 272B Sun Jun 30 15:56:06 2024  pip3*
.rwxr-xr-x blackpraedicator blackpraedicator 272B Sun Jun 30 15:56:06 2024  pip3.12*
lrwxrwxrwx blackpraedicator blackpraedicator   7B Sun Jun 30 15:56:05 2024  python@ ⇒ python3
lrwxrwxrwx blackpraedicator blackpraedicator  16B Sun Jun 30 15:56:05 2024  python3@ ⇒ /usr/bin/python3
lrwxrwxrwx blackpraedicator blackpraedicator   7B Sun Jun 30 15:56:05 2024  python3.12@ ⇒ python3
marvin1099 commented 2 months ago

do these files have a @ at the end? or is that just a marking? try this:

echo Command nr 1
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python /home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 2
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python3 /home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 3
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python /home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip3 install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 4
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python3 /home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip3 install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 5
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/pip3 install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 6
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python -m pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?
echo Command nr 7
/home/blackpraedicator/Apps/wemod-launcher/wemod_venv/bin/python3 -m pip install -r /home/blackpraedicator/Apps/wemod-launcher/requirements.txt
echo The errorcode retured was: $?

see if something from this works

marvin1099 commented 2 months ago

if not try to delete the wemod_venv folder, that may work

Salvodif commented 2 months ago

if not try to delete the wemod_venv folder, that may work

it worked but I got this

image

I don't think is related to the version of proton I'm using, am I right?

marvin1099 commented 2 months ago

No the copy of the prefix is not working correctly jet,
download the 9.1 prefix from the github releases and drag the files from the arcive into the game compat folder so it replaces files, the compat folder path is saved in the wemod.log.

the path will look like this: /home/marvin/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/1062090

But of couse your username and your game id

marvin1099 commented 2 months ago

Actually i found a fix for it, you will sill have to delete the prefix or overwrite it with the downloaded prefix, Keep in mind since i know that this version works now i will merge it to main, that means you will have to run:

cd /home/$USER/wemod-launcher
git reset --hard origin
git pull
git checkout main
git pull
sudo chmod -R ug+x .

As soon as I have merged the test into main.

I will send a other message after i have merged it so you know when to run this.

marvin1099 commented 2 months ago

I have Merged this into main so you can now run the commands form the last message