rockerbacon / modorganizer2-linux-installer

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

Couldn't install winetricks. Maybe a personal problem? #259

Closed CaptJRoger closed 1 year ago

CaptJRoger commented 2 years ago

I've seen this issue come up a couple of times, but the ones I see seem to be different errors. I don't know what I'm doing, I just want to play New Vegas with mods again.

lutris -i "$HOME/Downloads/modorganizer2.yml"
2021-11-30 20:19:11,190: Starting Lutris 0.5.9.1
2021-11-30 20:19:11,221: No cores found
2021-11-30 20:19:12,193: Failed to read content length on response from https://api.github.com/repos/lutris/dxvk/releases
2021-11-30 20:19:12,366: Failed to read content length on response from https://api.github.com/repos/lutris/dxvk-nvapi/releases
2021-11-30 20:19:12,669: Startup complete
2021-11-30 20:19:12,670: Using NVIDIA drivers 495.44 for x86_64
2021-11-30 20:19:12,670: GPU: Unknown
2021-11-30 20:19:12,670: GPU: 10DE:2187 3842:1357 (nvidia drivers)
2021-11-30 20:19:20,192: Download completed
2021-11-30 20:19:20,196: Download completed
2021-11-30 20:19:20,199: Download completed
2021-11-30 20:19:21,199: Download completed
2021-11-30 20:19:21,204: Download completed
2021-11-30 20:19:23,204: Download completed
2021-11-30 20:19:24,199: Download completed
2021-11-30 20:19:24,206: Download completed
2021-11-30 20:19:24,702: Download completed
2021-11-30 20:19:24,713: Download completed
2021-11-30 20:19:25,209: Download completed
2021-11-30 20:19:25,216: Download completed
2021-11-30 20:19:25,712: Download completed
2021-11-30 20:19:25,717: Download completed
2021-11-30 20:19:26,215: Download completed
2021-11-30 20:19:26,706: Download completed
2021-11-30 20:19:26,706: All files available
2021-11-30 20:19:26,706: All files are available, continuing install
/usr/lib/python3/dist-packages/gi/overrides/GObject.py:493: Warning: ../../../gobject/gsignal.c:2732: instance '0x2834340' has no handler with id '4995'
  return func(*args, **kwargs)
Started initial process 379418 from /usr/bin/bash -c xdg-mime default modorganizer2-nxm-handler.desktop x-scheme-handler/nxm
Start monitoring process.
Monitored process exited.
Initial process has exited (return code: 0)
All processes have quit
Exit with return code 0

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 37319384 bytes (36 MiB)                                            

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/openjdk/OpenJDK8U-jre_x64_windows_8u252b09.zip
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/openjdk/OpenJDK8U-jre_x64_windows_8u252b09.zip
Type = zip
Physical Size = 37319384

Everything is Ok                                  

Folders: 15
Files: 121
Size:       94859720
Compressed: 37319384

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 384875 bytes (376 KiB)                                          

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/fose/fose_v1_2_beta2.7z
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/fose/fose_v1_2_beta2.7z
Type = 7z
Physical Size = 384875
Headers Size = 3155
Method = LZMA:6m BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 8
Files: 184
Size:       4753751
Compressed: 384875

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 598435 bytes (585 KiB)                                          

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/f4se/f4se_0_06_21.7z
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/f4se/f4se_0_06_21.7z
Type = 7z
Physical Size = 598435
Headers Size = 5414
Method = LZMA2:22 LZMA:20 BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 14
Files: 393
Size:       3284040
Compressed: 598435

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 712979 bytes (697 KiB)                                          

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/nvse/nvse_5_1_beta4.7z
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/nvse/nvse_5_1_beta4.7z
Type = 7z
Physical Size = 712979
Headers Size = 4131
Method = LZMA2:6m LZMA:20 BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 12
Files: 231
Size:       4902927
Compressed: 712979

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 6401195 bytes (6252 KiB)                                        

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/mwse/mwse.zip
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/mwse/mwse.zip
Type = zip
Physical Size = 6401195

Everything is Ok

Folders: 32
Files: 498
Size:       22894202
Compressed: 6401195

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 1662426 bytes (1624 KiB)                                        

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/obse/obse_0021.zip
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/obse/obse_0021.zip
Type = zip
Physical Size = 1662426
Comment = ; WinRAR
; Multifunctional Integrated Archive Manager

Everything is Ok

Folders: 12
Files: 342
Size:       6092629
Compressed: 1662426
Started initial process 379492 from /usr/bin/bash -c printf '\x90\x90\x90' | dd conv=notrunc of='/home/jalenprice/.cache/lutris/installer/mod-organizer-2/oblivion-script-extender/obse_loader.exe' bs=1 seek=$((0x14cb))
Start monitoring process.
3+0 records in
3+0 records out
3 bytes copied, 2.914e-05 s, 103 kB/s
Monitored process exited.
Initial process has exited (return code: 0)
All processes have quit
Exit with return code 0

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 624845 bytes (611 KiB)                                          

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/skse/skse_1_07_03.7z
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/skse/skse_1_07_03.7z
Type = 7z
Physical Size = 624845
Headers Size = 8072
Method = LZMA2:22 LZMA:20 BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 14
Files: 544
Size:       3591799
Compressed: 624845

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 755625 bytes (738 KiB)                                            

Extracting archive: /home/jalenprice/.cache/lutris/installer/mod-organizer-2/skse64/skse64_2_00_17.7z
--
Path = /home/jalenprice/.cache/lutris/installer/mod-organizer-2/skse64/skse64_2_00_17.7z
Type = 7z
Physical Size = 755625
Headers Size = 7057
Method = LZMA2:6m LZMA:20 BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 13
Files: 520
Size:       4426059
Compressed: 755625
Started initial process 379516 from /usr/bin/bash -c # clear envs set by Lutris
export LD_LIBRARY_PATH=""

nexus_game_id=newvegas
runner=proton

if [ ! -f "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/gamesinfo/$nexus_game_id.sh" ]; then
    "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" errorbox \
        "Could not find gameinfo for '$nexus_game_id', remove Lutris cache and try again"
    exit 1
fi

source "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/gamesinfo/$nexus_game_id.sh"

if [ -z "$game_appid" ]; then
    echo "ERROR: empty game_appid" >&2
    exit 1
elif [ -z "$game_steam_subdirectory" ]; then
    echo "ERROR: empty steam_subdirectory" >&2
    exit 1
fi

shared="/home/jalenprice/.local/share/modorganizer2"

case "$runner" in
    proton)
        mo2_tricks="vcrun2019"
        mo2_options=""

        if [ -z "$steam_library" ]; then
            steam_library=$("/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh" $game_appid)
        fi

        if [ ! -d "$steam_library" ]; then
            "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" errorbox \
                "Could not find '$game_steam_subdirectory' in your Steam library"
            exit 1
        fi

        game_prefix="$steam_library/steamapps/compatdata/$game_appid/pfx"
        game_installation="$steam_library/steamapps/common/$game_steam_subdirectory"
        game_tricks="$game_protontricks"

        echo -e \
        "#!/bin/bash\n\n'$shared/proton-launcher.sh' $mo2_options $game_proton_options \"\$@\" $game_appid '/home/jalenprice/Games/mod-organizer-2/ModOrganizer2/ModOrganizer.exe'" \
        > "/home/jalenprice/Games/mod-organizer-2/run.sh"

        echo -e \
        "#!/bin/bash\n\n'$shared/proton-launcher.sh' $mo2_options $game_proton_options $game_appid '/home/jalenprice/Games/mod-organizer-2/ModOrganizer2/nxmhandler.exe' \"\$1\"" \
        > "/home/jalenprice/Games/mod-organizer-2/download.sh"
        ;;

    wine)
        mo2_tricks="vcrun2019 dotnet40"
        mo2_options="--proton-wine --winever 5.*"

        "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" warnbox \
            "As of version 5.7, Wine still does not fully support Mod Organizer 2.2.1 and later.\nFor this reason this installer uses the Wine version bundled with Proton 5.0.\nMake sure you have Steam and Proton 5.0 installed on your system"

        game_prefix=$( \
            "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" directorypicker \
                "Inform the path to your wineprefix" \
        )
        if [ -z "$game_prefix" ]; then
            echo "ERROR: Installation canceled by user" >&2
            exit 1
        fi

        game_tricks="$game_winetricks"

        install_path_candidates=( \
            "$game_prefix/drive_c/Program Files (x86)/Steam/steamapps/common/$game_steam_subdirectory" \
            "$game_prefix/drive_c/GOG Games/$game_steam_subdirectory" \
        )
        if [ -n "$game_gog_subdirectory" ]; then
            install_path_candidates+=( \
                "$game_prefix/drive_c/GOG Games/$game_gog_subdirectory" \
            )
        fi
        if [ "$nexus_game_id" == "fallout3" ]; then
            install_path_candidates+=( \
                "$game_prefix/drive_c/Program Files (x86)/Steam/steamapps/common/Fallout 3" \
                "$game_prefix/drive_c/GOG Games/Fallout 3" \
            )
        fi

        for path in "${install_path_candidates[@]}"; do
            echo "Searching for game at '$path'"
            if [ -d "$path" ]; then
                echo "Found game"
                game_installation="$path"
                break
            fi
        done

        if [ -z "$game_installation" ]; then
            game_installation=$( \
                "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" directorypicker \
                    "Could not automatically find the game.\nPlease inform the path where the game is installed" \
            )
            if [ -z "$game_installation" ]; then
                echo "ERROR: installation canceled by user" >&2
                exit 1
            fi
        fi

        # TODO: uncomment once Wine fixes issues with VC2019
        # winever=$( \
        #     "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" textentry \
        #         "Inform which version of Wine you're using\nLeave as * to use the latest version available on Lutris" \
        #         "*" \
        # )
        # if [ -z "$winever" ]; then
        #     echo "ERROR: Installation canceled by user" >&2
        #     exit 1
        # fi

        echo -e \
        "#!/bin/bash\n\nWINEPREFIX='$game_prefix' '$shared/wine-launcher.sh' $mo2_options $game_wine_options \"\$@\" '/home/jalenprice/Games/mod-organizer-2/ModOrganizer2/ModOrganizer.exe'" \
        > "/home/jalenprice/Games/mod-organizer-2/run.sh"

        echo -e \
        "#!/bin/bash\n\nWINEPREFIX='$game_prefix' '$shared/wine-launcher.sh' $mo2_options $game_wine_options '/home/jalenprice/Games/mod-organizer-2/ModOrganizer2/nxmhandler.exe' \"\$1\"" \
        > "/home/jalenprice/Games/mod-organizer-2/download.sh"
        ;;
esac

if [ -d "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/${nexus_game_id}-script-extender" ]; then
    echo "Installing script extender..."

    output=$( \
        cp -af \
        "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/${nexus_game_id}-script-extender/." \
        "$game_installation/" 2>&1 \
    )
    if [ "$?" != "0" ]; then
        "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" errorbox \
            "Error while installing script extender: $output"
        exit 1
    fi
fi

mkdir -p "$game_prefix/drive_c/java"
output=$( \
    cp -af \
    "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/extracted-openjdk/." \
    "$game_prefix/drive_c/java/" 2>&1 \
)
if [ "$?" != "0" ]; then
    "/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/dialog.sh" errorbox \
        "Error while installing OpenJDK: $output"
    exit 1
fi

WINEPREFIX="$game_prefix" \
"/home/jalenprice/.local/share/lutris/runtime/winetricks/winetricks" -q $mo2_tricks $game_tricks
if [ "$?" != "0" ]; then
    "/home/jalenprice/.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/jalenprice/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation'
Start monitoring process.
Searching for Steam in '/home/jalenprice/.steam/debian-installation'
Found Steam
Searching for Steam in '/home/jalenprice/.var/app/com.valvesoftware.Steam/.local/share/Steam'
Steam not found in this install path
Searching for game in library '/home/jalenprice/.steam/debian-installation'
Searching for game in library '/home/jalenprice/.steam/debian-installation'
Searching for game in library '/media/jalenprice/Bulk Storage/SteamLibrary'
Found game
/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh: line 44: return: can only `return' from a function or sourced script
ERROR: could not find game with APPID '22380'
/home/jalenprice/.cache/lutris/installer/mod-organizer-2/utils/find-library-for-appid.sh: line 49: return: can only `return' from a function or sourced script
Installing script extender...
Executing mkdir -p /media/jalenprice/Bulk Storage/SteamLibrary/steamapps/compatdata/22380
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 40
drwxrwxr-x 10 jalenprice jalenprice 4096 Nov 28 20:39 .
drwxrwxr-x  4 jalenprice jalenprice 4096 Nov 30 19:47 ..
drwx------  4 jalenprice jalenprice 4096 Nov 30 20:21 java
drwxrwxr-x  2 jalenprice jalenprice 4096 Nov 28 20:23 openxr
drwxrwxr-x  3 jalenprice jalenprice 4096 Nov 28 20:22 ProgramData
drwxrwxr-x  6 jalenprice jalenprice 4096 Nov 28 20:22 Program Files
drwxrwxr-x  7 jalenprice jalenprice 4096 Nov 28 20:22 Program Files (x86)
drwxrwxr-x  4 jalenprice jalenprice 4096 Nov 28 20:22 users
drwxrwxr-x  3 jalenprice jalenprice 4096 Nov 28 20:22 vrclient
drwxrwxr-x 19 jalenprice jalenprice 4096 Nov 28 20:23 windows

Registry info:
/media/jalenprice/Bulk Storage/SteamLibrary/steamapps/compatdata/22380/pfx/system.reg:#arch=win64
/media/jalenprice/Bulk Storage/SteamLibrary/steamapps/compatdata/22380/pfx/user.reg:#arch=win64
/media/jalenprice/Bulk Storage/SteamLibrary/steamapps/compatdata/22380/pfx/userdef.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
------------------------------------------------------
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256
2021-11-30 20:21:56,065: Command exited with code 256
None
2021-11-30 20:22:00,291: Cancelling installation of Mod Organizer 2
2021-11-30 20:25:50,049: Shutting down Lutris
rockerbacon commented 2 years ago

Check if the pre-release 3.0.3 fixes your issue