| 1 |
[[ Frozen-Bubble server ]] |
| 2 |
|
| 3 |
Copyright (c) 2004, 2008 Guillaume Cottenceau. |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU General Public License |
| 7 |
version 2, as published by the Free Software Foundation. |
| 8 |
|
| 9 |
|
| 10 |
This directory contains a suggested initscript and skeleton |
| 11 |
configuration file for automatic starting of the Frozen-Bubble |
| 12 |
server. |
| 13 |
|
| 14 |
Since the Frozen-Bubble server at least needs to know the preferred |
| 15 |
language for players (it is just an indication used by players |
| 16 |
when choosing a server, so that they can chat using their native |
| 17 |
language), a configuration file is best suited for this purpose. |
| 18 |
|
| 19 |
The initscript by default launches one server for each |
| 20 |
'/etc/fb-server*.conf' files (-c commandline option controls the |
| 21 |
name of the configuration file, if you need to modify its |
| 22 |
location or name). You have to install and modify the skeleton |
| 23 |
configuration file specifying the name of your server to setup a |
| 24 |
unique server, and copy the file to a different name (and change |
| 25 |
option values) for all subsequent servers you can host. For first |
| 26 |
server you must at least set the language, and for all subsequent |
| 27 |
servers you must also specify a different port. Note: if you host |
| 28 |
multiple servers, it is probably a good idea to not use the same |
| 29 |
server name for each of them (even if languages are different) so |
| 30 |
that players can easily rendez-vous on the correct server. |
| 31 |
|
| 32 |
If needed, other configuration parameters can be set in the |
| 33 |
configuration file. Each configuration parameter must be on its |
| 34 |
own line, first character is the name of the option, followed if |
| 35 |
needed by a space character and the string parameter of the |
| 36 |
option. The list of options can be retrieved by launching the |
| 37 |
Frozen-Bubble server with option '--help'. |
| 38 |
|
| 39 |
Here's an example of configuration file copied from the skeleton |
| 40 |
configuration file, but also specifying the server name and |
| 41 |
language, a different server port and LAN mode: |
| 42 |
|
| 43 |
--------8<--------8<--------8<--------8<--------8<--------8<----- |
| 44 |
# Name of the server as seen by FB players |
| 45 |
n zarb |
| 46 |
# Preferred language of players |
| 47 |
a en |
| 48 |
# Change default port |
| 49 |
p 1789 |
| 50 |
# Also create an UDP server for easy LAN games. |
| 51 |
l |
| 52 |
--------8<--------8<--------8<--------8<--------8<--------8<----- |
| 53 |
|
| 54 |
Notice that the registration process of the server is done |
| 55 |
automatically if the -q option is not set. The remote end as seen |
| 56 |
by www.frozen-bubble.org is used as IP, and the TCP port used |
| 57 |
(defaults to 1511 or specified with -p) as port. If you're using |
| 58 |
host/port forwarding, you can use the options -H and -P to |
| 59 |
register the proper host/port as seen from outside. |