setting up server

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
BiotaRiot
Posts: 2
Joined: Thu Jan 01, 2015 11:31 am

setting up server

Postby BiotaRiot » Thu Jan 22, 2015 1:47 am

Two files from xavier:

http://pastebin.com/2VG5iEr0

Code: Select all

#!/bin/bash
usage(){
        echo -e "Usage: $0 [serverID] [type] [extra args]"
        echo -e "\tserver id start with 1 (default)"
        echo -e "\ttype is continent (default), wrapped or original"
        exit 1
        }

ulimit -c unlimited
CONF_D=./freeciv/config
ID=${1:-1}
TYPE=${2:-continent}
EXTRA="${*:3}"

PORT=$(( ID + 5555 ))
START_SCRIPT=$CONF_D/${TYPE}.serv
if [ ! -f "$START_SCRIPT" ]; then
        echo "File $START_SCRIPT cannot be found or is not a regular file"
        exit 1
fi

# save directory
SAVE=~/freeciv$ID

echo "debug $START_SCRIPT"

while true
do
        LANG=en_US freeciv-server -s "$SAVE" -q 120 -r "$START_SCRIPT" -p "$PORT" $EXTRA -m -e
        echo "INFO: new start"
        sleep 1
done


http://pastebin.com/PVH81pag

Code: Select all

read freeciv/config/common.serv
set allowtake H1h1AadOo
set separatepoles disabled
set xsize 24
set ysize 24
set barbarians "DISABLED"
set topology "WRAPX|WRAPY"
set steepness 10
set huts 0
set mapsize "XYSIZE"
set generator FRACTAL
set startpos "ALL"
set separatepoles disabled
set revolen 2
set wetness 50
set alltemperate enabled
set startunits cckwwwxx
normal
set aifill 4
set landmass 66
set specials 300
set timeout 80
set ec_turns 9
set ec_info enabled
set ec_max_size 1000
metamessage wrapped map
set trading_tech disabled
set timeaddenemymove 4


The question is how to use them with OpenRC and SystemD