rockerbacon / modorganizer2-linux-installer

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

Stuck on "Configuring game prefix" for FNV #516

Closed skyvenom-msx closed 10 months ago

skyvenom-msx commented 1 year ago

I've tried installing this multiple times with clean prefixes and fresh installs and it keeps getting stuck on "Configuring game prefix This may take a while" for an hour. It may be a protontricks problem but I couldn't find any issues on it. Maybe I'm just being impatient but I couldn't find anything running from this script in htop. I'm on Artix (non-systemd Arch) using runit.

Here what I see before it gets stuck for at least an hour:

INFO: all dependencies met
INFO: selected game 'newvegas'
INFO: found Steam in '/home/belotto/.local/share/Steam'
INFO: steam not found in '/home/belotto/.var/app/com.valvesoftware.Steam/.local/share/Steam'
INFO: game found in '/home/belotto/.local/share/Steam'
(zenity:29944): GLib-GIO-CRITICAL **: 21:52:57.892: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
INFO: selected install directory '/home/belotto/Games/mod-organizer-2-newvegas'
INFO: using wget backend
INFO: fetching remote resource at 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip'
INFO: downloading 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip' to '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip'
INFO: extracting '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip' to '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07'
INFO: using wget backend
INFO: fetching remote resource at 'https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z'
INFO: downloading 'https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z' to '/tmp/mo2-linux-installer-downloads-cache/Mod.Organizer-2.4.4.7z'
INFO: extracting '/tmp/mo2-linux-installer-downloads-cache/Mod.Organizer-2.4.4.7z' to '/tmp/mo2-linux-installer-downloads-cache/Mod.Organizer-2.4.4'
INFO: using wget backend
INFO: fetching remote resource at 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks'
INFO: downloading 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' to '/tmp/mo2-linux-installer-downloads-cache/winetricks'
INFO: using wget backend
INFO: fetching remote resource at 'https://github.com/xNVSE/NVSE/releases/download/6.2.4/nvse_6_2_4.7z'
INFO: downloading 'https://github.com/xNVSE/NVSE/releases/download/6.2.4/nvse_6_2_4.7z' to '/tmp/mo2-linux-installer-downloads-cache/newvegas_nvse_6_2_4.7z'
INFO: extracting '/tmp/mo2-linux-installer-downloads-cache/newvegas_nvse_6_2_4.7z' to '/tmp/mo2-linux-installer-downloads-cache/newvegas_nvse_6_2_4'
INFO: removing existing JDK installation in '/home/belotto/.local/share/Steam/steamapps/compatdata/22380/pfx/drive_c/java'
INFO: installing JDK in '/home/belotto/.local/share/Steam/steamapps/compatdata/22380/pfx/drive_c/java'
INFO: installing Mod Organizer 2 in '/home/belotto/Games/mod-organizer-2-newvegas/modorganizer2'
INFO: installing script extender in '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas'
INFO: copying all files from '/tmp/mo2-linux-installer-downloads-cache/newvegas_nvse_6_2_4' into '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas'
cp: not replacing '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas/Data/NVSE/nvse_config.ini'
cp: not replacing '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas/nvse_1_4.dll'
cp: not replacing '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas/nvse_editor_1_4.dll'
cp: not replacing '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas/nvse_loader.exe'
cp: not replacing '/home/belotto/.local/share/Steam/steamapps/common/Fallout New Vegas/nvse_steam_loader.dll'
INFO: installing nxm link broker in '/home/belotto/.local/share/modorganizer2'
INFO: installing nxm link handler in '/home/belotto/.local/share/applications/'
INFO: applying protontricks d3dcompiler_43 d3dx9
protontricks (WARNING): Steam library folder /mnt/Games not found. Protontricks might not have access to the directory.
pressure-vessel-wrap[30140]: W: libsystemd.so.0: cannot open shared object file: No such file or directory
steam-runtime-launcher-service[30290]: E: Can't find session bus: Error spawning command line `dbus-launch --autolaunch=f5e2011d7c6638b29c9027ae5f4195e6 --binary-syntax --close-stderr': Failed to execute child process "dbus-launch" (No such file or directory)
skyvenom-msx commented 1 year ago

Found a workaround! I added "--no-bwrap" to the protontricks command in step/configure_steam_wineprefix.sh.

Fix: protontricks --no-bwrap "$game_appid" -q "${game_protontricks[@]}"

fanuch commented 1 year ago

On Pop_OS! using Flatpak protontricks and had a similar issue and solution. Needed to add --no-bwrap on line 10 if configure_steam_wineprefix.sh

edit* should add this was for Skyrim: Special Edition on an external harddrive :shrug:

from:

flatpak run 'com.github.Matoking.protontricks' \
            "$game_appid" -q "${game_protontricks[@]}" \

to:

flatpak run 'com.github.Matoking.protontricks' --no-bwrap \
            "$game_appid" -q "${game_protontricks[@]}" \

I don't know enough about about wine to cast judgement if this is a valid solution that should be applied to all source.

Perhaps a re-try to add --no-bwrap if it fails at this step?

rockerbacon commented 1 year ago

Problem here is the Steam client itself (pressure-vessel most likely) and seems to be described in the following line from the logs:

steam-runtime-launcher-service[30290]: E: Can't find session bus: Error spawning command line `dbus-launch --autolaunch=f5e2011d7c6638b29c9027ae5f4195e6 --binary-syntax --close-stderr': Failed to execute child process "dbus-launch" (No such file or directory)

From the looks of it, Steam can't find the program dbus-launch and can't proceed because of that.

@skyve2222 you can check whether or not dbus-launch is installed on your system with the command command -V dbus-launch.

@fanuch your problem is unlikely to be the same, since you're on Pop_OS!. Getting Protontricks to continue by using --no-bwrap was probably just a coincidence. Please provide the failure logs so we can take a look at what happened.

rockerbacon commented 10 months ago

Closing due to inactivity. The use of --no-bwrap may be related to bugs in older versions of Protontricks, see conversations in #555