Remove 'debug' text :p

This commit is contained in:
tretrauit 2021-06-22 15:48:51 +00:00
parent 0a81e9aea8
commit efa9c99a0d

View File

@ -1,40 +1,27 @@
#!/bin/bash #!/bin/bash
NPL_WIN_DL='https://github.com/shusaura85/notparadoxlauncher/releases/download/v1.3.1/Windows.Not.Paradox.Launcher.v1.3.1.x64.zip' echo "Cities: Skylines no launcher patch (dowser.exe replacing method)"
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 to Cities: Skylines..." echo "Changing directory..."
cd "$CS_LOCATION" cd "$CS_LOCATION"
rm -rf NPX_WIN.zip PROTON6=false
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"* ]];then if [[ $steam_apps == *"Proton 6"* || $steam_apps == *"Proton - Experimental"* ]]; then
echo "Found Proton: $steam_apps" PROTON6=true
PROTONS+=("$steam_apps") break
fi fi
done done
echo "Available Proton:" if [[ $PROTON6 == false ]]; then
for idx in ${!PROTONS[@]}; do echo "Proton 6/Proton - Experimental not found!"
echo "[$idx]: ${PROTONS[idx]}" echo "Make sure you installed Proton 6+ for the game to launch properly."
done exit 1
echo "Select: " fi
read PROTON_SEL_INT echo "Patching dowser.exe --> Cities.exe"
PROTON_SEL_slash=${PROTONS[PROTON_SEL_INT]} mv dowser.exe dowser.exe.bak
PROTON_SEL=${PROTON_SEL_slash%?} ln -sf Cities.exe dowser.exe
echo "Selected $PROTON_SEL, processing..." ln -sf Cities_Data dowser_Data
echo "Creating NotParadoxLauncher script..." echo "Done! You can now launch the game in Steam."
PREFIXPATH=$(realpath "./../../compatdata/255710/pfx") xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ
echo "WINEPREFIX=\"$PREFIXPATH\" \"$PROTON_SEL/files/bin/wine\" ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh neofetch
chmod +x launcher.sh
echo "Done! You can launch NotParadoxLauncher by doing './launcher.sh' in Cities: Skylines dir."