chore: rewrite directory name & feat: add lol sulaunchhelper2.sh

This commit is contained in:
2022-05-30 20:12:39 +07:00
parent a5abc5f35c
commit ec2fa3d16d
18 changed files with 327 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#!/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 "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/):"
read CS_LOCATION
[ -z "$CS_LOCATION" ] && CS_LOCATION="$HOME/.local/share/Steam/steamapps/common/Cities_Skylines/"
echo "Changing directory to Cities: Skylines..."
cd "$CS_LOCATION"
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
if [[ $steam_apps == *"Proton"* ]];then
echo "Found Proton: $steam_apps"
PROTONS+=("$steam_apps")
fi
done
echo "Available Proton:"
for idx in ${!PROTONS[@]}; do
echo "[$idx]: ${PROTONS[idx]}"
done
echo "Select: "
read PROTON_SEL_INT
PROTON_SEL_slash=${PROTONS[PROTON_SEL_INT]}
PROTON_SEL=${PROTON_SEL_slash%?}
echo "Selected $PROTON_SEL, processing..."
echo "Creating NotParadoxLauncher script..."
PREFIXPATH=$(realpath "./../../compatdata/255710/pfx")
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."

View File

@ -0,0 +1,9 @@
# Scripts for [Cities: Skylines](https://www.citiesskylines.com/)
Scripts I created for this game, thats it.
### Scripts
+ [NotParadoxLauncher_Win_Proton.sh](./NotParadoxLauncher_Win_Proton.sh) - Install [Not Paradox Launcher] to Cities: Skylines (Windows version running in Linux using Proton)
+ [Win_Proton_dowser_patch.sh](./Win_Proton_dowser_patch.sh) - Replace dowser.exe with Cities.exe so the game can launch without using bloated launcher (for CS Windows version running in Proton)
#### Note
These script I created for my friend because I don't play this game, so if it has any problem then feel free to open a issue, thanks.

View File

@ -0,0 +1,33 @@
#!/bin/bash
echo "Cities: Skylines no launcher patch (dowser.exe replacing method)"
echo "Type your Cities:Skylines location (default is $HOME/.local/share/Steam/steamapps/common/Cities_Skylines/):"
read CS_LOCATION
[ -z "$CS_LOCATION" ] && CS_LOCATION="$HOME/.local/share/Steam/steamapps/common/Cities_Skylines/"
echo "Changing directory..."
cd "$CS_LOCATION"
PROTON6=false
for steam_apps in ./../*/; do
if [[ $steam_apps == *"Proton 6"* || $steam_apps == *"Proton - Experimental"* ]]; then
PROTON6=true
break
fi
done
if [[ $PROTON6 == false ]]; then
echo "Proton 6/Proton - Experimental not found!"
echo "Make sure you installed Proton 6+ for the game to launch properly."
echo "Proton 5 may work for Intel, but not for NVIDIA (it hang)"
read -p "Do you want to proceed? [Y/n] " -n 1 -r
echo
if ! [[ $REPLY =~ ^[Yy]$ ]]
then
exit 1
fi
fi
echo "Patching dowser.exe --> Cities.exe"
mv dowser.exe dowser.exe.bak
ln -sf Cities.exe dowser.exe
ln -sf Cities_Data dowser_Data
echo "Done! You can now launch the game in Steam."
xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ
neofetch