Loading...
  OR  Zero-K Name:    Password:   

Post edit history

can't see zero-k games in Spring Lobby

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
1/17/2019 4:05:00 PMFIrankVermind before revert after revert
1/17/2019 4:03:58 PMFIrankVermind before revert after revert
Before After
1 For Debian-based distros we also needed to install these things: 1 For Debian-based distros we also needed to install these things:
2 \n 2 \n
3 mono-complete 3 mono-complete
4 xprintidle 4 xprintidle
5 p7zip-full 5 p7zip-full
6 wget 6 wget
7 \n 7 \n
8 Since some maps are 7zip files, wget was used for some downloads, xprintidle for debugging, and simply "mono" did not include all of the parts of Mono that are being used. Also, if you have no games installed before Zero-K, we also needed to install SDL2 ( libsdl-2.0 ). Are you sure these are not needed on manjaro? Do you have them installed? 8 Since some maps are 7zip files, wget was used for some downloads, xprintidle for debugging, and simply "mono" did not include all of the parts of Mono that are being used. Also, if you have no games installed before Zero-K, we also needed to install SDL2 ( libsdl-2.0 ). Are you sure these are not needed on manjaro? Do you have them installed?
9 \n 9 \n
10 Also, before the itch. io client, I had a script that would install ZK for Linux. You would run it after extracting it to a folder, which would then become the game folder: 10 Also, before the itch. io client, I had a script that would install ZK for Linux. You would run it after extracting it to a folder, which would then become the game folder. It does not depend on any debian stuff, should work on all Linux computers. However, it does not know how to install the dependencies except on Debian based distros.
11 \n 11 \n
12 installdir=$( dirname "${0}" ) 12 installdir=$( dirname "${0}" )
13 \n 13 \n
14 # User install folders 14 # User install folders
15 lshare="$HOME/.local/share" 15 lshare="$HOME/.local/share"
16 \n 16 \n
17 # Where to place .desktop file 17 # Where to place .desktop file
18 apps="${lshare}/applications" 18 apps="${lshare}/applications"
19 # Where to place icon 19 # Where to place icon
20 icons="${lshare}/icons" 20 icons="${lshare}/icons"
21 \n 21 \n
22 # Setup dependencies ... 22 # Setup dependencies ...
23 pkgmanager=$( which apt-get ) 23 pkgmanager=$( which apt-get )
24 pkx=$( which pkexec ) 24 pkx=$( which pkexec )
25 if [ -n "${pkgmanager}" -a -n "${pkx}" ] 25 if [ -n "${pkgmanager}" -a -n "${pkx}" ]
26 then 26 then
27 ${pkx} ${pkgmanager} -y install mono-complete libsdl2-2.0-0 libopenal1 libcurl3 zenity libgdiplus 27 ${pkx} ${pkgmanager} -y install mono-complete libsdl2-2.0-0 libopenal1 libcurl3 zenity libgdiplus
28 fi 28 fi
29 \n 29 \n
30 # Binary name 30 # Binary name
31 bin="Zero-K.exe" 31 bin="Zero-K.exe"
32 \n 32 \n
33 # Setup ZK... 33 # Setup ZK...
34 cd ${installdir} 34 cd ${installdir}
35 installdir=$PWD 35 installdir=$PWD
36 wget -N https://zero-k.info/lobby/${bin} 2>&1 | tee /dev/stderr | sed -u "s/^ *[0-9]*K[ .]*\([0-9]*%\).*/\1/" | zenity --progress --text "Downloading Zero-K Lobby..." --title "Downloading Zero-K" --auto-close --auto-kill --no-cancel 36 wget -N https://zero-k.info/lobby/${bin} 2>&1 | tee /dev/stderr | sed -u "s/^ *[0-9]*K[ .]*\([0-9]*%\).*/\1/" | zenity --progress --text "Downloading Zero-K Lobby..." --title "Downloading Zero-K" --auto-close --auto-kill --no-cancel
37 chmod +x ${bin} 37 chmod +x ${bin}
38 \n 38 \n
39 # Create .desktop file for launching Zero-K from the menu 39 # Create .desktop file for launching Zero-K from the menu
40 echo "[Desktop Entry] 40 echo "[Desktop Entry]
41 Type=Application 41 Type=Application
42 Version=1.0-5 42 Version=1.0-5
43 Name=Zero-K 43 Name=Zero-K
44 Keywords=game;strategy; 44 Keywords=game;strategy;
45 Icon=Zero-K 45 Icon=Zero-K
46 Path=${installdir} 46 Path=${installdir}
47 Exec=mono ${installdir}/${bin} 47 Exec=mono ${installdir}/${bin}
48 Terminal=false 48 Terminal=false
49 StartupNotify=false 49 StartupNotify=false
50 Categories=Game;StrategyGame; 50 Categories=Game;StrategyGame;
51 Comment=Free real time strategy (RTS) game 51 Comment=Free real time strategy (RTS) game
52 " > "${installdir}/Zero-K.desktop" 52 " > "${installdir}/Zero-K.desktop"
53 chmod +x "${installdir}/Zero-K.desktop" 53 chmod +x "${installdir}/Zero-K.desktop"
54 \n 54 \n
55 # Verify local folders exist 55 # Verify local folders exist
56 if [ ! -d "$apps" ] 56 if [ ! -d "$apps" ]
57 then 57 then
58 mkdir "$apps" 58 mkdir "$apps"
59 fi 59 fi
60 \n 60 \n
61 if [ ! -d "$icons" ] 61 if [ ! -d "$icons" ]
62 then 62 then
63 mkdir "$icons" 63 mkdir "$icons"
64 fi 64 fi
65 \n 65 \n
66 mv "${installdir}/Zero-K.desktop" "${apps}/." 66 mv "${installdir}/Zero-K.desktop" "${apps}/."
67 \n 67 \n
68 mv "${installdir}/Zero-K.png" "${icons}/." 68 mv "${installdir}/Zero-K.png" "${icons}/."
69 \n 69 \n
70 # Delete itself 70 # Delete itself
71 zenity --info --title "Done\!" --text "Zero-K is now installed\! You can find it in your applications menu." 71 zenity --info --title "Done\!" --text "Zero-K is now installed\! You can find it in your applications menu."
72 rm "${0}" 72 rm "${0}"
73 \n 73 \n