62
62
Freeciv compiled and installed on your machine.
68
Freeciv is actually two programs, a server and a client. When a game
69
is in progress, there will be one server program running, and as many
70
client programs as there are human players. The server does not need
71
X, but the clients do.
68
Freeciv is actually several programs, a server and one or more clients. When
69
a game is in progress, there will be one server program running, and as many
70
client programs as there are human players. The server does not use a gui,
71
but the clients do. The clients come in many flavors:
73
freeciv-gtk2: This uses the X Window System along with GTK+ 2 libraries. To
74
install, see section 1a of the INSTALL document. This client is better
75
supported and more developed than the others, as such it is considered to be
76
the default interface throughout the rest of this document.
78
freeciv-sdl: This uses Simple DirectMedia Layer libraries. This client is
79
currently unmaintained but is usable.
81
freeciv-xaw: This uses the X Window System along with its Athena Widget
82
interface. It is somewhat minimalistic compared to the others.
74
89
The following examples assume that Freeciv has been installed on
75
your system, and that the directory containing the "civclient"
76
and "civserver" programs is in your PATH. If Freeciv is not
90
your system, and that the directory containing the "freeciv-gtk2"
91
and "freeciv-server" programs is in your PATH. If Freeciv is not
77
92
installed, then you may want to use the "civ" and "ser" programs,
78
93
which can be found in the top Freeciv directory. They are used
79
in exactly the same fashion as "civclient" and "civserver".
94
in exactly the same fashion as "freeciv-gtk2" and "freeciv-server".
81
96
Running Freeciv involves starting the server, then the client(s)
82
97
and AI(s), then telling the server to start the game. Here are the
142
157
This will make the map twice as large as the default.
146
161
Now all the human players should join, by running the Freeciv
151
166
This assumes the server is running on the same machine. If not, you
152
167
can either specify it on the command line with the '--server' option,
155
170
For example, suppose the server is running on a different machine
156
171
called 'neptune'. Then players would join with a command like:
158
| % civclient --server neptune
173
| % freeciv-gtk2 --server neptune
160
175
If you're the only human player, then only one client needs to be
161
176
started. In standard Unix fashion you can start the client
162
177
"in the background" by appending an ampersand:
166
181
Another option for the client you may like to try is the '--tiles'
167
182
option, which can be used to select different "tilesets" (that is,
177
192
To try another one, for instance the trident tileset, start the
180
| % civclient --tiles trident
195
| % freeciv-gtk2 --tiles trident
182
197
Other tilesets are available from http://www.freeciv.org/wiki/Tilesets
229
244
And the game is on!
231
246
NOTE: In this version of Freeciv, the GTK and SDL clients have the
232
capability to automagically start a civserver session when the user
247
capability to automagically start a freeciv-server session when the user
233
248
selects "Start New Game" from the main menu. This reduces the steps
234
249
needed to get started playing a game of Freeciv. On the other hand,
235
250
it also means that if the client crashes for some reason or becomes
236
unavailable, the civserver session will also be lost. So starting a
237
separate civserver session and then connect to it with the client is
251
unavailable, the freeciv-server session will also be lost. So starting a
252
separate freeciv-server session and then connect to it with the client is
238
253
generally the recommended method.
247
262
http://meta.freeciv.org/
249
264
It is a list of Freeciv servers. To make your own server announce itself
250
there, start civserver with the '--meta' option, or just '-m' for short.
265
there, start freeciv-server with the '--meta' option, or just '-m' for short.
256
271
incompatible with 1.14.2 or earlier versions.
258
273
2) If the Metaserver button in the connection dialog doesn't work,
259
check if your ISP uses a mandatory WWW proxy and make civclient
274
check if your ISP uses a mandatory WWW proxy and make freeciv-gtk2
260
275
use it through the $http_proxy environment variable. For instance,
261
276
if the proxy is proxy.myisp.com port 8888, set $http_proxy
262
277
to http://proxy.myisp.com:8888/ before starting the client.
358
373
You can restore a saved game by using the '-f' server option, eg:
360
| % civserver -f oursave2001.sav
375
| % freeciv-server -f oursave2001.sav
362
377
or, if the save-file was created by a server that compressed it:
364
| % civserver -f oursave2001.sav.gz
379
| % freeciv-server -f oursave2001.sav.gz
366
381
Now the players can rejoin the game:
368
| % civclient -n Alexander
383
| % freeciv-gtk2 -n Alexander
370
385
Notice how the player-name is specified with the -n option. It's vital
371
386
that the player uses the same name as they had when the game was running,
382
397
You may choose which local language to use by specifying a "locale".
383
398
Each locale has a standard name (e.g., 'de' for German). If you have
384
399
installed Freeciv, you may choose a locale by setting the environment
385
variable LANG to that locale's standard name before running civserver
400
variable LANG to that locale's standard name before running freeciv-server
388
403
For example, assuming you wish to use the German localization, you
441
| % civserver -l my.log -d 3
456
| % freeciv-server -l my.log -d 3
443
458
This sends all server log messages to file "my.log", including verbose
448
| % civclient --debug 0
463
| % freeciv-gtk2 --debug 0
450
465
This suppresses all non-fatal client log messages.
454
| % civserver -d 4:log:civserver,120,500:autoattack
469
| % freeciv-server -d 4:log:civserver,120,500:autoattack
456
471
This turns on all fatal, error, normal and verbose messages for the
457
472
server, and debug level messages for some specified modules. Note