User Tools

Site Tools


server:running_the_server:settings

file:///etc/crossfire/settings

Settings entries in the settings file of the server of Crossfire; usually located in the {prefix} /etc/crossfire directory.
The settings are read and compared by the function static void load_settings(void) in the source code file server/server/init.c .
A not matching settings entry should at the end throw an error message LOG(llevError,“Unknown value in settings file: %s\n”, buf); without early exiting and death of the server at it's start.

Server Settings

fastclock

This setting variable needs to be a positive integer or a Zero (0) .
A negative value would
LOG(llevError, “load_settings: fastclock must be at least 0” “, %d is invalid\n”, lev);
and fall back to the default set in server/include/global.h
as uint8 fastclock; /* if true, clock goes warp 9 */ ..

The only function that uses it, is static void block_until_new_connection(void)
in server/socket/loop.c, and just tests it if it is greater than 0 .
Setting the fastclock to something like 2 or 10 does not make the server “faster” .

Older servers until including v1.11.0 used this variable once more in server/server/weather.c
and also tests if it is set greater than zero;
found in void tick_the_clock(void) to call the write_skymap function.

My impression was that the Computer's CPU used one whole Core 100% when setting fastclock to 1 .
So it seems not advisable to set it to anything else than 0 .

But therefore the skymap is not painted in the var/crossfire/weather.ppm 300×300 pixels picture; it's field in the middle of the bottom row of the picture of 9 climate maps stays black.
The weather.ppm can be easily converted by ppmtoxpm weather.ppm >weather.xpm to be viewed.

Unknown is the behaviour of the server, when the fastclock is set to something like X, *, NULL, TRUE, FALSE .

port

Spellcasting Settings

casting_time

spell_encumbrance

spell_failure_effects

spellpoint_level_depend

Item Settings

item_power_factor

search_items

Player Settings

create_home_portals

explore_mode

no_player_stealing

pk_luck_penalty

set_friendly_fire

set_title

who_format

Player Death Settings

balanced_stat_loss

death_penalty_levels

death_penalty_percentage

permanent_experience_percentage

resurrection

stat_loss_on_death

Dungeon Mster Settings

dm_mail

who_wiz_format

real_wiz

Files Settings

log_timestamp

log_timestampformat

motd

Maps Settings

dynamiclevel

recycle_tmp_maps

worldmapstartx

worldmapstarty

worldmaptilesizex

worldmaptilesizey

worldmaptilesx

worldmaptilesy

Server to Metaserver Settings

metaserver_comment

metaserver_host

metaserver_notification

metaserver_port

metaserver_server

server/running_the_server/settings.txt · Last modified: 2018/03/02 10:45 by karl