1 |
= Linux (alternate instructions) =
|
1 |
= Linux (alternate instructions) =
|
2 |
== Install of Zero-K dependencies ==
|
2 |
== Install of Zero-K dependencies ==
|
3 |
First you need to install Mono, 7zip, Wget, and Xprintidle to make the lobby function properly.
|
3 |
First you need to install Mono, 7zip, Wget, and Xprintidle to make the lobby function properly.
|
4 |
\n
|
4 |
\n
|
5 |
=== On Debian or Ubuntu ===
|
5 |
=== On Debian or Ubuntu ===
|
6 |
Find & install them using Software Center, or use the terminal:
|
6 |
Find & install them using Software Center, or use the terminal:
|
7 |
{{{
|
7 |
{{{
|
8 |
sudo apt-get install mono-complete xprintidle p7zip-full wget
|
8 |
sudo apt-get install mono-complete xprintidle p7zip-full wget
|
9 |
}}}
|
9 |
}}}
|
10 |
\n
|
10 |
\n
|
11 |
=== On Manjaro or Arch Linux ===
|
11 |
=== On Manjaro or Arch Linux ===
|
12 |
Most dependencies should already be installed, but you may need mono:
|
12 |
Most dependencies should already be installed, but you may need mono:
|
13 |
{{{
|
13 |
{{{
|
14 |
# installing mono package
|
14 |
# installing mono package
|
15 |
$ sudo pacman -S mono
|
15 |
$ sudo pacman -S mono
|
16 |
}}}
|
16 |
}}}
|
17 |
\n
|
17 |
\n
|
18 |
==
Download
and
run
the
game
==
|
18 |
==
Download
and
run
the
game
(
GUI)
==
|
19 |
Install
the
game
itself.
Download
from
http://zero-k.
info/lobby/Zero-K.
exe
and
run
Zero-K.
exe
with
Mono
runtime,
or
use
the
terminal:
|
19 |
Install
the
game
itself.
Download
from
http://zero-k.
info/lobby/Zero-K.
exe
and
place
it
in
a
folder
of
your
choice.
Zero-K
will
store
&
look
for
maps
and
game
components
in
the
directory
that
you
place
the
game
exe
in.
It
will
automatically
download
the
game
engine
(
currently
Spring
100)
,
the
Zero-K
module,
and
maps
when
you
join
a
battle.
|
|
|
20 |
\n
|
|
|
21 |
To start the game, run Zero-K.exe with Mono runtime.
|
20 |
\n
|
22 |
\n
|
21 |
#
Optional:
make
game
directory
inside
user
home
|
23 |
==
Download
and
run
the
game
(
Terminal)
==
|
|
|
24 |
\n
|
|
|
25 |
=== Optional: make game directory inside user home ===
|
22 |
{{{
|
26 |
{{{
|
23 |
cd ~
|
27 |
cd ~
|
24 |
mkdir Zero-K
|
28 |
mkdir Zero-K
|
25 |
cd Zero-K
|
29 |
cd Zero-K
|
26 |
}}}
|
30 |
}}}
|
27 |
\n
|
|
|
28 |
\n
|
31 |
\n
|
|
|
32 |
=== Download the game using terminal and run it ===
|
29 |
{{{
|
33 |
{{{
|
30 |
# Download the game using terminal
|
|
|
31 |
wget http://zero-k.info/lobby/Zero-K.exe
|
34 |
wget http://zero-k.info/lobby/Zero-K.exe
|
32 |
mono Zero-K.exe
|
35 |
mono Zero-K.exe
|
33 |
}}}
|
36 |
}}}
|
34 |
\n
|
|
|
35 |
Zero-K will store & look for maps and game components in the directory that you place the game exe in. It will automatically download the game engine (currently Spring 100), the Zero-K module, and maps when you join a battle.
|
|
|
36 |
\n
|
37 |
\n
|
37 |
When you join a battle and press Start, if the game does not run, you may need SDL2. Versions of Ubuntu older than 13.10 do not have sdl2 in their default repositories. To install sdl2 in newer versions of Ubuntu:
|
38 |
When you join a battle and press Start, if the game does not run, you may need SDL2. Versions of Ubuntu older than 13.10 do not have sdl2 in their default repositories. To install sdl2 in newer versions of Ubuntu:
|
38 |
{{{
|
39 |
{{{
|
39 |
sudo apt-get install libsdl2-2.0-0
|
40 |
sudo apt-get install libsdl2-2.0-0
|
40 |
}}}
|
41 |
}}}
|
41 |
Manjaro / Arch users can use a similar pacman command.
|
42 |
Manjaro / Arch users can use a similar pacman command.
|
42 |
\n
|
43 |
\n
|
43 |
== Troubleshooting ==
|
44 |
== Troubleshooting ==
|
44 |
\n
|
45 |
\n
|
45 |
In case you join a room using Spring 100 and download failed, you can try download it directly and extract it to [YOUR-DATADIR]/engine/100 :
|
46 |
In case you join a room using Spring 100 and download failed, you can try download it directly and extract it to [YOUR-DATADIR]/engine/100 :
|
46 |
* Go to http://springrts.com/dl/buildbot/default/master/ and folder with latest engine
|
47 |
* Go to http://springrts.com/dl/buildbot/default/master/ and folder with latest engine
|
47 |
* Pick *minimal-portable-linux64-static.7z* or *minimal-portable-linux32-static.7z*
|
48 |
* Pick *minimal-portable-linux64-static.7z* or *minimal-portable-linux32-static.7z*
|
48 |
\n
|
49 |
\n
|
49 |
Spring requires libstdc++.so.6, sdl-1.2 and a few other things (use ldd) to run. You can get them by installing Spring package from repository, find & install them using the Software Center, or enter the following in terminal:
|
50 |
Spring requires libstdc++.so.6, sdl-1.2 and a few other things (use ldd) to run. You can get them by installing Spring package from repository, find & install them using the Software Center, or enter the following in terminal:
|
50 |
{{{
|
51 |
{{{
|
51 |
sudo apt-add-repository ppa:spring/ppa
|
52 |
sudo apt-add-repository ppa:spring/ppa
|
52 |
sudo apt-get update
|
53 |
sudo apt-get update
|
53 |
sudo apt-get install spring
|
54 |
sudo apt-get install spring
|
54 |
}}}
|
55 |
}}}
|
55 |
\n
|
56 |
\n
|
56 |
Optionally, if you want to manually compile spring yourself, first install its dependencies:
|
57 |
Optionally, if you want to manually compile spring yourself, first install its dependencies:
|
57 |
{{{
|
58 |
{{{
|
58 |
sudo apt-get install build-essential cmake cmake-gui git
|
59 |
sudo apt-get install build-essential cmake cmake-gui git
|
59 |
sudo apt-get install libglew-dev libsdl-dev libdevil-dev libopenal-dev libogg-dev libvorbis-dev libfreetype6-dev
|
60 |
sudo apt-get install libglew-dev libsdl-dev libdevil-dev libopenal-dev libogg-dev libvorbis-dev libfreetype6-dev
|
60 |
sudo apt-get install p7zip-full libxcursor-dev libboost-thread-dev libboost-regex-dev
|
61 |
sudo apt-get install p7zip-full libxcursor-dev libboost-thread-dev libboost-regex-dev
|
61 |
sudo apt-get install libboost-system-dev libboost-program-options-dev libboost-signals-dev
|
62 |
sudo apt-get install libboost-system-dev libboost-program-options-dev libboost-signals-dev
|
62 |
}}}
|
63 |
}}}
|
63 |
\n
|
64 |
\n
|
64 |
Then download the [https://springrts.com/wiki/Download#Source_Code source files] with Git. Navigate into that folder and:
|
65 |
Then download the [https://springrts.com/wiki/Download#Source_Code source files] with Git. Navigate into that folder and:
|
65 |
{{{
|
66 |
{{{
|
66 |
cmake .
|
67 |
cmake .
|
67 |
make
|
68 |
make
|
68 |
sudo make install
|
69 |
sudo make install
|
69 |
}}}
|
70 |
}}}
|
70 |
\n
|
71 |
\n
|
71 |
You now have Spring installed. To make Zero-K lobby use your compiled version of spring you need to make two symlinks, one to the unitsync file and one to the spring executable. Do this by running:
|
72 |
You now have Spring installed. To make Zero-K lobby use your compiled version of spring you need to make two symlinks, one to the unitsync file and one to the spring executable. Do this by running:
|
72 |
\n
|
73 |
\n
|
73 |
{{{
|
74 |
{{{
|
74 |
ln -s /usr/local/bin/spring [YOUR-DATADIR]/engine/100
|
75 |
ln -s /usr/local/bin/spring [YOUR-DATADIR]/engine/100
|
75 |
ln -s /usr/local/lib/libunitsync.so [YOUR-DATADIR]/engine/100
|
76 |
ln -s /usr/local/lib/libunitsync.so [YOUR-DATADIR]/engine/100
|
76 |
}}}
|
77 |
}}}
|
77 |
\n
|
78 |
\n
|
78 |
Now Zero-K Lobby will use the engine that you have compiled.
|
79 |
Now Zero-K Lobby will use the engine that you have compiled.
|
79 |
\n
|
80 |
\n
|