Hi, the current guide to getting Zero-K on Linux is for the terminal. That's fine for me, but it might be nice to have a GUI version.
Current guide:
Here is one attempt at an installer that does all that:
(Link updated, fix current folder path)
https://mega.nz/#!K0t3FDRa!UEWVdtdqWKhhhAs8AK6ETjs9TlIwaINvhb2tdrrCxXQIt's a tar.gz file with an icon and a bash script that installs the dependencies, creates a .desktop file, and downloads Chobby.
Install guide with that:
1. Download Zero-K.tar.gz
2. extract it anywhere
3. double click to go into the newly created Zero-K folder
4. double click setup-zerok.sh, choose run or run in terminal
5. Follow instructions (first one is dependency install, then wait for Chobby download)
6. double click Zero-K.desktop and mark it trusted
7. Double click again to launch Chobby and play.
8. Optional: Copy Zero-K.desktop to your desktop or to your ~/.local/share/applications folder to have it in your Ubuntu / Mint / KDE / LXDE menu.
P.S.
For a bit of an improvement to the manual one, to get the dependencies, we can also say, please click this apt link to install the packagers required by Zero-K:
apt://mono-complete,libsdl2-2.0-0,libopenal1,libcurl3
P.P.S. Source code
[Spoiler]FILE: setup-zerok.sh
Contents:
#!/bin/bash
installdir=$( dirname "${0}" )
# Setup dependencies ...
pkexec apt-get install mono-complete libsdl2-2.0-0 libopenal1 libcurl3 zenity
# Setup ZK...
cd ${installdir}
wget -N
https://zero-k.info/lobby/Chobby.exe | zenity --progress --text "Downloading Zero-K Lobby..." --title "Downloading Zero-K" --auto-close --auto-kill
chmod o+x Chobby.exe
echo "[Desktop Entry]
Version=1.0
Name=Zero-K
Exec=mono ${installdir}/Chobby.exe
Path=${installdir}
Icon=${installdir}/icon.png
Terminal=false
Type=Application
Categories=Application;Game;ArcadeGame;
" > "${installdir}/Zero-K.desktop"
chmod o+x "${installdir}/Zero-K.desktop"
# Delete itself
zenity --info --title "Done\!" --text "Setup complete! Please click the \"Zero-K\" file to run the game."
rm "${0}"
Source code explanation:
[Spoiler]
First, install dependencies plus zenity, a small script GUI helper. We use pkexec since it should work across all desktops, unity, gnome, kde, lxde, xfce.
Then we download Chobby, but skip download if the folder already has a newer Chobby.exe, and show the user a progress window while we wait. Then we mark chobby executable.
Then we create a .desktop file, a Linux shortcut for running Zero-K. These can give the game a nice icon, they can be moved to your Desktop or placed in the menu, and they can enter the game directory before running it so the game finds its data.
Finally, we tell the user to run the Zero-K desktop file to start the game. The script deletes itself once it's done.