OfficialServer.wiki
changeset 1861 7bbfe9e35cdf
child 1862 5da940c0285a
equal deleted inserted replaced
1860:6339b2b138de 1861:7bbfe9e35cdf
       
     1 #summary How to build the official server (WIP)
       
     2 
       
     3 NOTE: This guide is a work in progress!
       
     4 
       
     5 ## The official server
       
     6 
       
     7 The "official" server has some additional features over "normal" servers. Most notably, the "official" server saves replays and the `/watch` command in the lobby.
       
     8 
       
     9 Internally, this is just a `#define` that can be triggered on. It is possible to build a clone of the official server, but it is tricky (and not really documented yet).
       
    10 
       
    11 ## How to build the official server
       
    12 
       
    13 *NOTE*: This guide is INCOMPLETE and UNTESTED!
       
    14 
       
    15 First, make sure to define the symbol `OFFICIAL_SERVER` before building the server. 
       
    16 
       
    17 For the official server, you need the normal dependencies for the Hedgewars server plus a couple of additional Haskell dependencies. See `gameServer/hedgewars-server.cabal` in the source code repository for a list.
       
    18 
       
    19 As soon you built the official server, you need to set it up.
       
    20 
       
    21 In the same directory with `hedgewars-server`, create a file named `hedgewars-server.ini`. Add the following dummy contents:
       
    22 
       
    23 ```
       
    24 bans = []
       
    25 dbHost = localhost
       
    26 dbLogin = hedgewars
       
    27 dbName = hedgewars
       
    28 dbPassword = password
       
    29 sv_latestProto = 51
       
    30 sv_message = Hi
       
    31 ```