2021-01-13 23:55:58 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2021-08-13 18:54:22 +02:00
|
|
|
# Steam setting: Proton 4.11-13
|
|
|
|
|
#
|
|
|
|
|
# * It *must not* have any symlinks for the directmusic dlls like:
|
|
|
|
|
# pfx/dosdevices/c:/windows/syswow64/dmusic.dll
|
|
|
|
|
|
2024-05-28 17:06:21 +02:00
|
|
|
STEAMAPPS=$XDG_DATA_HOME/Steam/steamapps/
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
read -rp "Make sure that gothic was installed via Steam and started once! <Enter> to continue, <CTRL+C> to abort "
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
set -o nounset
|
|
|
|
|
set -o xtrace
|
|
|
|
|
set -o errexit
|
|
|
|
|
|
2024-05-27 16:09:24 +02:00
|
|
|
downloaddir="${XDG_DOWNLOAD_DIR}"/gothic
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
mkdir -p "${downloaddir}"
|
|
|
|
|
cd "${downloaddir}"
|
|
|
|
|
|
2021-08-13 18:54:22 +02:00
|
|
|
curl -C - -L -o gothic_patch_108k.exe "https://www.worldofgothic.de/download.php?id=15"
|
|
|
|
|
curl -C - -L -o gothic1_playerkit-1.08k.exe "https://www.worldofgothic.de/download.php?id=61"
|
|
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -o Definitive_Edition_2_2_8.exe "https://www.worldofgothic.de/download.php?id=1586"
|
2021-08-13 18:54:22 +02:00
|
|
|
|
|
|
|
|
# superseded by union
|
2024-09-24 19:03:22 +02:00
|
|
|
# curl -C - -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/G1Classic-SystemPack-1.8.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -o LaaHack.zip https://www.worldofgothic.de/download.php?id=1457
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/Gothic1_PlayerKit-2.8.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -o Ninja-2.9.14.exe "https://www.worldofgothic.de/download.php?id=1626"
|
|
|
|
|
curl -C - -L -o Union_1.0m_26.06.2022.exe "https://www.worldofgothic.de/download.php?id=1625"
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -o G1CP-1.2.0.exe "https://www.worldofgothic.de/download.php?id=1636"
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
curl -C - -L -o GD3D11-v17.8-dev9.zip https://github.com/kirides/GD3D11/releases/download/v17.8-dev9/GD3D11-v17.8-dev9.zip
|
2021-08-13 18:54:22 +02:00
|
|
|
curl -C - -L -o RiisisGothic1TextureMixV1.1.zip "https://www.worldofgothic.de/download.php?id=1458"
|
|
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
read -rp "During installation, use \"${STEAMAPPS}/common/Gothic\" as the install directory! <Enter> to continue, <CTRL+C> to abort "
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
|
2021-08-13 18:54:22 +02:00
|
|
|
export WINEPREFIX="${STEAMAPPS}/compatdata/65540/pfx/"
|
2021-01-13 23:55:58 +01:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
winetricks dotnet7
|
2021-08-13 18:54:22 +02:00
|
|
|
winetricks directmusic
|
|
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
wine "${downloaddir}"/gothic_patch_108k.exe
|
|
|
|
|
wine "${downloaddir}"/gothic1_playerkit-1.08k.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
wine "${downloaddir}"/Gothic1_PlayerKit-2.8.exe
|
2021-01-13 23:55:58 +01:00
|
|
|
wine "${downloaddir}"/G1Classic-SystemPack-1.8.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
unzip -u "${downloaddir}"/LaaHack.zip -d "${STEAMAPPS}/common/Gothic/system"
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
# wine "${downloaddir}"/Union_1.0m_26.06.2022.exe
|
|
|
|
|
wine "${downloaddir}"/Ninja-2.9.14.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
wine "${downloaddir}"/G1CP-1.2.0.exe
|
|
|
|
|
wine "${downloaddir}"/Definitive_Edition_2_2_8.exe
|
2021-08-13 18:54:22 +02:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
unzip -u "${downloaddir}"/GD3D11-v17.8-dev9.zip -d "${STEAMAPPS}/common/Gothic/system"
|
2021-08-13 18:54:22 +02:00
|
|
|
unzip -u "${downloaddir}"/RiisisGothic1TextureMixV1.1.zip -d "${STEAMAPPS}/common/Gothic/Data"
|
|
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
read -rp "Now run the game once and exit! <Enter> to continue, <CTRL+C> to abort "
|
2021-01-13 23:55:58 +01:00
|
|
|
|
2024-09-24 19:03:22 +02:00
|
|
|
cd "${STEAMAPPS}"/common/Gothic
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
sed -i 's/^playLogoVideos=.*$/playLogoVideos=0\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^sightValue=.*$/sightValue=14\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^modelDetail=.*$/modelDetail=1\r/' system/Gothic.ini
|
2021-08-13 18:54:22 +02:00
|
|
|
sed -i 's/^subTitles=.*$/subTitles=1\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^animatedWindows=.*$/animatedWindows=0\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^bloodDetail=.*$/bloodDetail=2\r/' system/Gothic.ini
|
2021-01-13 23:55:58 +01:00
|
|
|
sed -i 's/^zVidResFullscreenX=.*$/zVidResFullscreenX=2560\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^zVidResFullscreenY=.*$/zVidResFullscreenY=1440\r/' system/Gothic.ini
|
2021-08-13 18:54:22 +02:00
|
|
|
sed -i 's/^zDetailTexturesEnabled=.*$/zDetailTexturesEnabled=1\r/' system/Gothic.ini
|
|
|
|
|
sed -i 's/^zSubdivSurfacesEnabled=.*$/zSubdivSurfacesEnabled=1\r/' system/Gothic.ini
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
sed -i 's/^SimpleWindow=.*$/SimpleWindow=0\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^Gothic2_Control=.*$/Gothic2_Control=1\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^USInternationalKeyboardLayout=.*$/USInternationalKeyboardLayout=0\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^FPS_Limit=.*$/FPS_Limit=144\r/' system/SystemPack.ini
|
2021-08-13 18:54:22 +02:00
|
|
|
sed -i 's/^VerticalFOV=.*$/VerticalFOV=85\r/' system/SystemPack.ini
|
2021-01-13 23:55:58 +01:00
|
|
|
|
|
|
|
|
sed -i 's/^OutDoorPortalDistanceMultiplier=.*$/OutDoorPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^InDoorPortalDistanceMultiplier=.*$/InDoorPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^WoodPortalDistanceMultiplier=.*$/WoodPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^DrawDistanceMultiplier=.*$/DrawDistanceMultiplier=3\r/' system/SystemPack.ini
|
|
|
|
|
|
2021-08-13 18:54:22 +02:00
|
|
|
sed -i 's/^keyDelayRate=.*$/keyDelayRate=50\r/' system/SystemPack.ini
|
|
|
|
|
sed -i 's/^keyDelayFirst=.*$/keyDelayFirst=150\r/' system/SystemPack.ini
|
|
|
|
|
|
2021-01-13 23:55:58 +01:00
|
|
|
sed -i 's/^HideFocus=.*$/HideFocus=0\r/' system/SystemPack.ini
|
|
|
|
|
|
|
|
|
|
sed -i 's/^Scale=.*$/Scale=1.9\r/' system/SystemPack.ini
|