Revert because I updated wrong file :P
yes im using web
This commit is contained in:
parent
efa9c99a0d
commit
0df5f92509
@ -1,27 +1,40 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Cities: Skylines no launcher patch (dowser.exe replacing method)"
|
NPL_WIN_DL='https://github.com/shusaura85/notparadoxlauncher/releases/download/v1.3.1/Windows.Not.Paradox.Launcher.v1.3.1.x64.zip'
|
||||||
|
|
||||||
|
echo "NotParadoxLauncher for Cities: Skylines (Windows version running in Proton)"
|
||||||
echo "Type your Cities:Skylines location (default is $HOME/.local/share/Steam/steamapps/common/Cities_Skylines/):"
|
echo "Type your Cities:Skylines location (default is $HOME/.local/share/Steam/steamapps/common/Cities_Skylines/):"
|
||||||
read CS_LOCATION
|
read CS_LOCATION
|
||||||
[ -z "$CS_LOCATION" ] && CS_LOCATION="$HOME/.local/share/Steam/steamapps/common/Cities_Skylines/"
|
[ -z "$CS_LOCATION" ] && CS_LOCATION="$HOME/.local/share/Steam/steamapps/common/Cities_Skylines/"
|
||||||
echo "Changing directory..."
|
echo "Changing directory to Cities: Skylines..."
|
||||||
cd "$CS_LOCATION"
|
cd "$CS_LOCATION"
|
||||||
PROTON6=false
|
rm -rf NPX_WIN.zip
|
||||||
|
rm -rf NotParadoxLauncher
|
||||||
|
echo "Downloading NotParadoxLauncher (Windows version)..."
|
||||||
|
wget -O NPX_WIN.zip "$NPL_WIN_DL"
|
||||||
|
echo "Extracting NotParadoxLauncher..."
|
||||||
|
mkdir -p ./NotParadoxLauncher
|
||||||
|
unzip ./NPX_WIN.zip -d NotParadoxLauncher
|
||||||
|
rm -rf NPX_WIN.zip
|
||||||
|
echo "Detecting installed Proton..."
|
||||||
|
PROTONS=()
|
||||||
for steam_apps in ./../*/; do
|
for steam_apps in ./../*/; do
|
||||||
if [[ $steam_apps == *"Proton 6"* || $steam_apps == *"Proton - Experimental"* ]]; then
|
if [[ $steam_apps == *"Proton"* ]];then
|
||||||
PROTON6=true
|
echo "Found Proton: $steam_apps"
|
||||||
break
|
PROTONS+=("$steam_apps")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ $PROTON6 == false ]]; then
|
echo "Available Proton:"
|
||||||
echo "Proton 6/Proton - Experimental not found!"
|
for idx in ${!PROTONS[@]}; do
|
||||||
echo "Make sure you installed Proton 6+ for the game to launch properly."
|
echo "[$idx]: ${PROTONS[idx]}"
|
||||||
exit 1
|
done
|
||||||
fi
|
echo "Select: "
|
||||||
echo "Patching dowser.exe --> Cities.exe"
|
read PROTON_SEL_INT
|
||||||
mv dowser.exe dowser.exe.bak
|
PROTON_SEL_slash=${PROTONS[PROTON_SEL_INT]}
|
||||||
ln -sf Cities.exe dowser.exe
|
PROTON_SEL=${PROTON_SEL_slash%?}
|
||||||
ln -sf Cities_Data dowser_Data
|
echo "Selected $PROTON_SEL, processing..."
|
||||||
echo "Done! You can now launch the game in Steam."
|
echo "Creating NotParadoxLauncher script..."
|
||||||
xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
PREFIXPATH=$(realpath "./../../compatdata/255710/pfx")
|
||||||
neofetch
|
echo "WINEPREFIX=\"$PREFIXPATH\" \"$PROTON_SEL/files/bin/wine\" ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh
|
||||||
|
chmod +x launcher.sh
|
||||||
|
echo "Done! You can launch NotParadoxLauncher by doing './launcher.sh' in Cities: Skylines dir."
|
||||||
|
Loading…
Reference in New Issue
Block a user