home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Games / Freeciv / README.org < prev    next >
Text File  |  1999-10-20  |  16KB  |  460 lines

  1.                            =========================
  2.                            Freeciv 1.9 documentation
  3.                            =========================
  4.  
  5. Welcome to Freeciv!
  6.  
  7. This archive contains Freeciv version 1.9, a free Civilization clone
  8. for X, primarily under Unix.  It has support for multiplayer games
  9. locally or over a network, and an AI which gives most people a run for
  10. their money.
  11.  
  12. Freeciv aims to be mostly rule-compatible with Civilization II[tm],
  13. published by Sid Meier and Microprose[tm].  A few rules are different
  14. where we think it makes more sense, and we have lots and lots of
  15. adjustable parameters to make customizing games possible.
  16.  
  17. Freeciv has been implemented completely independently of Civilization;
  18. you do not need to own Civilization to play Freeciv.
  19.  
  20. Although the graphics are not as polished as those in Civilization II,
  21. the rules are very complete, and our multiplayer and networking code is
  22. excellent.
  23.  
  24. Web site:
  25. =========
  26.  
  27. Freeciv's web site is here:
  28.  
  29.   http://www.freeciv.org/
  30.  
  31. We invite you to visit.  You can get the latest Freeciv news, releases
  32. and patches, find out about the Freeciv mailing lists, and see the
  33. Freeciv metaserver, which records games being played around the world.
  34.  
  35.  
  36. License:
  37. ========
  38.  
  39. Freeciv is released under the GNU General Public Licence.  In short, 
  40. you may copy this program (including source) freely, but see the 
  41. COPYING file for full details.
  42.  
  43.  
  44. Compiling and installing:
  45. =========================
  46.  
  47. Please read the INSTALL file carefully for instructions on how to get
  48. Freeciv compiled and installed on your machine.
  49.  
  50.  
  51. Starting a new game:
  52. ===================
  53.  
  54. Freeciv is actually two programs, a server and a client.  When a game
  55. is in progress, there will be one server program running, and as many
  56. client programs as there are human players.  The server does not need
  57. X, but the clients do.
  58.  
  59.     NOTE:
  60.  
  61.     The following examples assume that Freeciv has been installed on
  62.     your system, and that the directory containing the "civclient" and
  63.     "civserver" programs is in your PATH.  If Freeciv is not
  64.     installed, then you may want to use the "civ" and "ser" programs,
  65.     which can be found in the top Freeciv directory.  They are used
  66.     in exactly the same fashion as "civclient" and "civserver".
  67.  
  68. Running Freeciv involves starting the server, then the client(s)
  69. and AI(s), then telling the server to start the game.  Here are the
  70. steps:
  71.  
  72. Server:
  73.  
  74.   To start the server:
  75.  
  76.   % civserver
  77.  
  78.   Or for a list of command-line options:
  79.  
  80.   % civserver --help
  81.  
  82.   Once the server is started, a prompt will appear:
  83.  
  84.   Get a list of the available commands with 'help'.
  85.   >
  86.  
  87.   and, you can see that list by using the help command:
  88.  
  89.   > help
  90.   Available commands: (P=player, M=message, F=file, L=level, T=topic, O=option)
  91.   -----------------------------------------------------------------------------
  92.   ai P            - toggles AI on player
  93.   cmdlevel        - see current command levels
  94.   cmdlevel L      - sets command access level to L for all players
  95.   cmdlevel L new  - sets command access level to L for new connections
  96.   cmdlevel L P    - sets command access level to L for player P
  97.   create P        - creates an AI player
  98.   cut P           - cut connection to player
  99.   easy            - All AI players will be easy
  100.   easy P          - AI player will be easy
  101.   explain         - help on server options
  102.   explain T       - help on a particular server option
  103.   hard            - All AI players will be hard
  104.   hard P          - AI player will be hard
  105.   help            - this help text
  106.   list            - list players
  107.   meta M          - Set meta-server infoline to M
  108.   metaserver A    - Game are reported to address A
  109.   nometa          - Close connection to the metaserver
  110.   normal          - All AI players will be normal
  111.   normal P        - AI player will be normal
  112.   quit            - quit game and shutdown server
  113.   remove P        - fully remove player from game
  114.   save F          - save game as file F
  115.   score           - show current score
  116.   set             - set options
  117.   show            - list current server options
  118.   show O          - list current value of server option O
  119.   start           - start game
  120.   Abbreviations are allowed.
  121.   >
  122.  
  123.   If you like, you can use the 'set' command to set any of the various
  124.   server options for the game.  You can get a list of the options
  125.   with the 'show' command, and explanations with the 'explain' command.
  126.  
  127.   For example:
  128.  
  129.   > explain xsize
  130.   Option: xsize
  131.   Description: Map width in squares.
  132.   Status: changeable
  133.   Value: 80, Minimum: 40, Default: 80, Maximum: 200
  134.  
  135.   > set xsize 100
  136.   > set ysize 80
  137.  
  138.   This will make the map twice as large as the default of 80x50.
  139.  
  140. Client:
  141.  
  142.   Now all the human players should join, by running the Freeciv
  143.   client:
  144.  
  145.   % civclient
  146.  
  147.   This assumes the server is running on the same machine.  If not, you
  148.   can either specify it on the command use with the '--server' option,
  149.   or enter it into the first dialog box once the client starts.
  150.  
  151.   For example, suppose the server is running on a different machine
  152.   called 'neptune'.  Then players would join with a command like:
  153.  
  154.   % civclient --server neptune
  155.  
  156.   If you're the only human player, then only one client needs to be
  157.   started.  In standard Unix fashion you can start the client
  158.   "in the background" by appending an ampersand:
  159.  
  160.   % civclient &
  161.  
  162.   Another option for the client you may like to try is the '--tiles'
  163.   option, which can be used to select different "tilesets" (that is,
  164.   different graphics for the map terrain, units, and so on).  The
  165.   distribution comes with two tilesets, called "trident" and "engels".
  166.   In this release the trident tileset is the default (in some previous
  167.   releases the engels tileset was the default).  The two tilesets have
  168.   quite different graphic style, so you may find you prefer one over
  169.   the other.  The trident tiles are smaller, so may be better if you
  170.   have a small display.  But try them both and decide for yourself --
  171.   to use the engels tileset start the client with:
  172.  
  173.   % civclient --tiles engels
  174.  
  175.   Other tilesets may be available from the ftp site.  
  176.  
  177.   Clients can be authorized to issue server commands.  To allow them
  178.   to use informational commands only, type at the server prompt
  179.  
  180.   > cmdlevel info
  181.  
  182.   Clients can now use '/help', '/list', '/show settlers', etc.
  183.  
  184. Computer Players:
  185.  
  186.   There are two ways to create AI players.  The first is to set 
  187.   the number of players (human and AI) by setting the 'aifill'
  188.   server option.  For example:
  189.  
  190.   > set aifill 7
  191.  
  192.   After using the 'start' server command to start the game, any players 
  193.   which aren't controlled by humans will be AI players.  For the above, 
  194.   if two human players had joined, 5 AI players would be created.
  195.  
  196.   The second way is to explicitly create an AI with the 'create'
  197.   server command.  For example:
  198.  
  199.   > create HumanKiller
  200.  
  201.   This will create an AI-controlled player called HumanKiller.
  202.  
  203.   AI players are assigned to tribes after all human players have
  204.   chosen their tribes, but you can choose a particular tribe for an AI
  205.   player by using the normal name for that nation's leader.  For
  206.   example, to play against AI-controlled Romans, use this server
  207.   command:
  208.  
  209.   > create Caesar
  210.  
  211.   Note, this is just a preference:  If no other human player chooses
  212.   to play the Romans, then this AI will.
  213.  
  214. Server:
  215.  
  216.   When everybody has joined (use the "list" command to see who's in), 
  217.   start the game with the "start" command:
  218.  
  219.   > start
  220.  
  221.  
  222. And the game is on!
  223.  
  224.  
  225. Announcing the game:
  226. ====================
  227.  
  228. If you do not want to limit your opponents to local friends or AI players,
  229. visit the Freeciv metaserver:
  230.  
  231.   http://meta.freeciv.org/metaserver
  232.  
  233. It is a list of Freeciv servers.  To make your own server announce itself
  234. there, start civserver with the '--meta' option, or just '-m' for short.
  235.  
  236. Caveats:
  237.  
  238.  1) Due to the inclusion of new features, different client and server
  239.     versions are often incompatible.  Not all incompatibilities
  240.     can be caught and reported properly.  One example is a 1.8.0 (or
  241.     later) client connecting to a 1.7.2 server: the client appears
  242.     to connect, but it never gets any messages from the server.
  243.  
  244.  2) If the Metaserver button in the connection dialog doesn't work,
  245.     check if your ISP uses a mandatory WWW proxy and make civclient
  246.     use it through the $http_proxy environment variable.  For instance,
  247.     if the proxy is proxy.myisp.com port 8888, set $http_proxy
  248.     to http://proxy.myisp.com:8888/ before starting the client.
  249.  
  250.  3) Sometimes there are no games on the metaserver.  This may be
  251.     partly because the metaserver has changed hosts, and previous
  252.     Freeciv versions do not know about the new address.  Also, games
  253.     no longer show up on the metaserver by default, instead people
  254.     have to deliberately use '--meta'.  If you want to play a game on
  255.     the metaserver, are there are none there, try starting one
  256.     yourself!
  257.  
  258.  
  259. Playing the game:
  260. =================
  261.  
  262. The game may be saved the game at any time using the 'save' server command,
  263. like so:
  264.  
  265. > save mygame
  266.  
  267. The Freeciv client works pretty much as you would expect from a
  268. multiplayer civilization game. That is, the players move at the same
  269. time.  There's a turn timeout value, which is by default set to 0
  270. seconds (no timeout).  The server operator can alter this value at 
  271. any time with the 'set' command.
  272.  
  273. Have a look at the online help system. All three mouse-buttons are
  274. used, and documented in the help.
  275.  
  276. Players can push the 'Return' key to announce the end of their turn,
  277. or just push the 'Turn done' button.
  278.  
  279. Use the 'Players' dialog to see who has announced their end of turn,
  280. and who you're waiting for.  (Hey feller, are you asleep or what?? ;).
  281.  
  282. Use the input line at the bottom of the window for broadcasting
  283. messages to other players.
  284.  
  285. You can send a message to an individual player (say, 'peter') like so:
  286.  
  287.   peter: move that armor away *NOW*!
  288.  
  289. The server is smart enough to perform "name completion", so if you had
  290. typed "pet:", it will pick find a player name that matches the part of
  291. the name you typed.
  292.  
  293. On newer servers (version 1.8.1 or later, or some development 1.8.0 
  294. versions) you can issue server commands from the client input line:
  295.  
  296.   /list
  297.   /set settlers 4
  298.   /save mygame.sav
  299.  
  300. The server operator will probably let you issue informational commands only.
  301. This is partly because allowing clients to use all server commands has
  302. security implications; consider if a player tried:
  303.  
  304.   /save /etc/passwd
  305.  
  306. Of course the server should not be running with superuser privileges in
  307. any case, to reduce this sort of risk.
  308.  
  309. If you're just starting, and would like to get an idea of a strategy,
  310. have a look in the Freeciv playing HOWTO, contained in the HOWTOPLAY
  311. file.
  312.  
  313. For lots more information about the client, the server, and the
  314. concepts and rules of the game, see the Freeciv manual, available
  315. at the web pages at:
  316.  
  317.    http://www.freeciv.org/manual/main.html
  318.  
  319.  
  320. Ending the game:
  321. ================
  322.  
  323. There are three ways in which a game can end:
  324.  
  325. 1) Only one race is left.
  326. 2) The final year is reached.
  327. 3) A player builds and launches a spaceship, which reaches Alpha
  328.    Centauri first.
  329.  
  330. A score-table will be shown in all cases.  Hint: The server operator 
  331. can set the final year while the game is still going by changing the
  332. 'end-year' option.  This is nice when the winner is obvious, but you
  333. don't want to play through the boring 'cleanup phase'.
  334.  
  335. Restoring games:
  336. ================
  337.  
  338. You can restore a saved game by using the '-f' server option, eg:
  339.  
  340.   % civserver -f oursave2001.sav
  341.  
  342. Now the players can rejoin the game:
  343.  
  344.   % civclient -n Alexander
  345.   
  346. Notice how the player-name is specified with the -n option. It's vital
  347. that the player uses the same name as they had when the game was running,
  348. if they're to be allowed in.
  349.  
  350. The game may then be restarted with the 'start' command as usual.
  351.  
  352.  
  353. Server autostart:
  354. =================
  355.  
  356. When the maximum number of players have connected, the server auto-starts.
  357. The maximum number of players can be set with the 'maxplayers' option.
  358.  
  359.  
  360. Log messages:
  361. =============
  362.  
  363. Both the client and server print messages known as "log messages".
  364. There are four categories of log messages: "fatal", "normal", "verbose",
  365. and "debug".  
  366.  
  367. By default, fatal and normal messages are printed to standard output
  368. where the client or server was started.  You can direct log messages
  369. to a file instead of the screen with the "--log filename", or "-l
  370. filename" command line options.
  371.  
  372. You can change the level of log messages displayed with "--debug 
  373. level" or "-d level" (or instead "-de level" for the Xaw client, since
  374. "-d" is ambiguous between "-debug" and "-display"), where "level" is 
  375. 0, 1, or 2.  0 means show fatal messages only, 1 means show fatal and 
  376. normal messages (the default), and 2 means show all fatal, normal, and 
  377. verbose messages.
  378.  
  379. If you compiled with DEBUG defined (an easy way to do this is to 
  380. configure with --enable-debug), then you can get debug level messages 
  381. by setting the level to 3.  Also, it is possible to control debug 
  382. level messages (but not other messages) on a per-file and per-line 
  383. basis.  To do this use "--debug 3:str1:str2" (as many strings as you 
  384. like, separated by colons) and any filenames which match those strings 
  385. as a substring will have debug log messages turned on, and all other 
  386. debug messages will be suppressed.  To control lines, use:
  387. "--debug 3:str1,min,max" and for files which match str1 only debug
  388. messages within the specified minimum and maximum lines will be 
  389. printed.  Only one set of (min,max) can be applied to each file.
  390.  
  391. Example: 
  392.      % civserver -l my.log -d 2
  393.  
  394. This sends all server log messages to file "my.log", including verbose
  395. level messages.
  396.  
  397. Example: 
  398.      % civclient --debug 0
  399.  
  400. This suppresses all non-fatal client log messages.
  401.  
  402. Example: 
  403.      % civserver -d 3:log:civserver,120,500:autoattack
  404.  
  405. This turns on all fatal, normal and verbose messages for the server, 
  406. and debug level messages for some specified modules.  Note that "log"
  407. will match "gamelog.c" as well as "log.c".  For "civserver.c", only
  408. debug messages between lines 120 and 500 will be printed.  This 
  409. example only works if the server was compiled with DEBUG.
  410.  
  411.  
  412. Bugs:
  413. =====
  414.  
  415. Found a bug?  We really want to hear from you so we can fix it.
  416. See the file BUGS, for a list of known bugs in this release, and 
  417. information about reporting new bugs.
  418.  
  419.  
  420. Mailing lists:
  421. ==============
  422.  
  423. We maintain three mailing lists.  One is for users of Freeciv,
  424. one is for developers of Freeciv, and the last is to notify developers
  425. of changes to the Freeciv source code.
  426.  
  427. The lists are called "freeciv", "freeciv-dev", and "freeciv-cvs".
  428. They are all public lists.
  429.  
  430. To send an email to the lists, address it to:
  431.  
  432.     <freeciv@freeciv.org>        (For Freeciv users)
  433.  
  434. or
  435.  
  436.     <freeciv-dev@freeciv.org>    (For bug reports, and for Freeciv developers)
  437.  
  438. To subscribe, send mail to <listar@freeciv.org>, with the single word
  439. "subscribe", followed by the name of the list.  (Put this in the body
  440. of the email message, leaving the email subject line blank.)
  441.  
  442. Example: To subscribe to the "freeciv" mailing list, send the line
  443. "subscribe freeciv" to <listar@freeciv.org>.
  444.  
  445.  
  446. New Releases:
  447. =============
  448.  
  449. We make a major new release of Freeciv available about every three
  450. months.  Check the Freeciv website from time to time to see if there's
  451. a newer version!!
  452.  
  453.  
  454. And finally:
  455. ============
  456.  
  457. Have fun and give 'em hell!
  458.  
  459.                                    -- The Freeciv team.
  460.