rockerbacon / modorganizer2-linux-installer

An easy-to-use Mod Organizer 2 installer for Linux
GNU General Public License v3.0
978 stars 79 forks source link

Failed to load module "xapp-gtk3-module" and could not find game? #258

Closed Animal-Machine closed 2 years ago

Animal-Machine commented 2 years ago

I couldn't install Mod Organizer 2 with the last released yml file on my Debian 11 64 bits with GNOME. A pop-up window showed up saying "Could not find 'Skyrim Special Edition' in your Steam library" even though I set up Skyrim to use Proton 5.0-10.

The error could however be related to something else according to lutris log which says "Found game":

WINEPREFIX="$game_prefix" \
"/home/myusername/.local/share/lutris/runtime/winetricks/winetricks" -q $mo2_tricks $game_tricks
if [ "$?" != "0" ]; then
    "/home/myusername/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" errorbox \
        "Error while installing winetricks, please run Lutris from a terminal and check the logs"
    exit 1
fi

# workaround to stop installation if command fails
echo "success" > '/home/myusername/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation'
Initial process has started with pid 49423
Start monitoring process.
Searching for Steam in '/home/myusername/.steam/debian-installation'
Found Steam
Searching for Steam in '/home/myusername/.var/app/com.valvesoftware.Steam/.local/share/Steam'
Steam not found in this install path
Searching for game in library '/home/myusername/.steam/debian-installation'
Found game
/home/myusername/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh: ligne 44 : return: « return » n'est possible que depuis une fonction ou depuis un script exécuté par « source »
Searching for game in library '/home/myusername/.steam/debian-installation'
Found game
/home/myusername/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh: ligne 44 : return: « return » n'est possible que depuis une fonction ou depuis un script exécuté par « source »
ERROR: could not find game with APPID '489830'
/home/myusername/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh: ligne 49 : return: « return » n'est possible que depuis une fonction ou depuis un script exécuté par « source »
Gtk-Message: 19:45:31.861: Failed to load module "xapp-gtk3-module"

Translation of « return » n'est possible que depuis une fonction ou depuis un script exécuté par « source » : can only 'return' from a function or sourced script

Conquerix commented 2 years ago

Hi, I had the same issue and found a workaround for it

in modorganizer2.yml remove lines 194 to 202 :

                if [ -z "$steam_library" ]; then
                    steam_library=$("$CACHE/utils/find-library-for-appid.sh" $game_appid)
                fi
                if [ ! -d "$steam_library" ]; then
                    "$CACHE/utils/dialog.sh" errorbox \
                        "Could not find '$game_steam_subdirectory' in your Steam library"
                    exit 1
                fi

and add : steam_library="/path/to/your/steam/library" (for example mine would be $HOME/.steam/root on archlinux)

With this ModOrganizer is launching but it is not a fix It might be because of the anniversary update

EDIT : Skyrim AE works fine with new skse version, don't forget to download it and replace it in the Skyrim Special Edition folder

Animal-Machine commented 2 years ago

Thank you for your workaround! But I still get an error, a different one: "Error while installing winetricks, please run Lutris from a terminal and check the logs". So did I, here are the last lines:

Executing wine vc_redist.x86.exe /q
0054:err:module:map_image_into_view Could not map section .reloc, file probably truncated
0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\MountMgr": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 1114
0070:err:module:map_image_into_view Could not map section .rsrc, file probably truncated
0070:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
00a0:err:module:map_image_into_view Could not map section .rsrc, file probably truncated
00a0:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
00d4:fixme:virtual:NtQueryVirtualMemory (0xffffffffffffffff,0x229880000,info_class=1000,0x229887008,8,(nil)) Unknown information class
00d4:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\nsiproxy": c0000003
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 87
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0024:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0024:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0024:fixme:advapi:DecryptFileW (L"C:\\windows\\Temp\\{40624C0E-EC0D-4169-97B7-2F573F7FBD83}\\", 00000000): stub
0130:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0130:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0130:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0130:fixme:advapi:DecryptFileW (L"C:\\windows\\Temp\\{BA4D54DF-8A11-4058-8D82-A1B1C3572037}\\", 00000000): stub
0138:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0138:err:winediag:nodrv_CreateWindow Unknown error (193).
0130:fixme:ver:GetCurrentPackageId (0031FE94 00000000): stub
0024:fixme:ver:GetCurrentPackageId (0031FE94 00000000): stub
------------------------------------------------------
warning: Note: command wine vc_redist.x86.exe /q returned status 120. Aborting.
------------------------------------------------------
Gtk-Message: 03:11:27.192: Failed to load module "xapp-gtk3-module"
Monitored process exited.
Initial process has exited (return code: 256)
All children have exited.
Exit with returncode 256
2021-12-03 03:12:09,036: I can't move /home/myusername/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation, it does not exist
None
2021-12-03 03:12:09,037: Error while completing task <bound method CommandsMixin.move of <interpreter.ScriptInterpreter object at 0x7f1e7801ccc0 (lutris+installer+interpreter+ScriptInterpreter at 0x267d0a0)>>: I can't move /home/myusername/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation, it does not exist
None
  File "/usr/lib/python3/dist-packages/lutris/util/jobs.py", line 34, in target
    result = self.function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lutris/installer/commands.py", line 283, in move
    raise ScriptingError("I can't move %s, it does not exist" % src)
Conquerix commented 2 years ago

I don't how to fix your issue but found another tool called Steam Tinker Launch It's very complete with auto installers for ModOrganizer2 and vortex and many other things : https://github.com/frostworx/steamtinkerlaunch I discovered it like 1 hour ago, it's amazing!

Animal-Machine commented 2 years ago

Thank you, I'm going to check that out

Animal-Machine commented 2 years ago

I finally installed the libxapp1 package, it or one of its dependencies like xapps-common solved the Failed to load module "xapp-gtk3-module" issue. (Other solutions previously found online like installing libcanberra-gtk-module didn't work.) It seems it wasn't related to the two other problems explained above because I still get them. For now i'm going to close this issue, and probably open a new one for the latest error. Thanks @Conquerix!