WESNOTHD(6)
bestie. welcome to the WESNOTHD(6) manual β aka the whole entire lore drop on wesnothd, the server daemon that runs your multiplayer games. grab a snack, we're going through everything. π
β¨ NAME β¨
wesnothd β the Battle for Wesnoth multiplayer network daemon. that's her. that's the girl. π
π SYNOPSIS π
wesnothd [-dv] [-c path] [-p port] [-t number] [-T number]
wesnothd -V
π¦ DESCRIPTION π¦
okay so wesnothd manages Battle for Wesnoth multiplayer games. that's the whole job, and she does it flawlessly, no cap.
if you wanna know what commands the server actually accepts β whether they come from the wesnoth client via /query ... or through the fifo β go read up at https://www.wesnoth.org/wiki/ServerAdministration. iykyk. π
πΈ OPTIONS πΈ
the flags, bestie. all of them. every single one. π
-c path,--config pathβ tellswesnothdwhere to find the config file to use. peep the SERVER CONFIG section below for the syntax. fun fact: you can reload the config by sendingSIGHUPto the server process. iconic. π-d,--daemonβ runswesnothdas a daemon. she's independent now. main character energy. β¨-h,--helpβ tells you what the command line options do. self-explanatory queen. πββοΈ--log-level=domain1,domain2,...β sets the severity level of the log domains. you can useallto match any log domain. available levels are:error,warning,info,debug. by default theerrorlevel is used, and theinfolevel for theserverdomain. π-p port,--port portβ binds the server to the specified port. if no port is specified, port15000will be used. π-t number,--threads numberβ sets the maximum number of waiting worker threads for network I/O ton(default:5, max:30). π§΅-T number,--max-threads numberβ sets the maximum number of worker threads that will be created. if set to0there will be no limit (default:0). π₯-V,--versionβ shows version number and exits. bye bestie π-v,--verboseβ turns debug logging on. she's telling you everything. π¬
π SERVER CONFIG π
π§ The general syntax is:
[tag]
key="value"
key="value,value,..."
[/tag]
π Global keys:
allow_remote_shutdownβ if set tono(the default),shut_downandrestartrequests are ignored unless they come from the fifo. set it toyesto allow remote shutdown via a/queryby an administrator. β οΈban_save_fileβ full or relative path to a (gzip compressed) file that the server can read and write. bans get saved to this file and read again on server start. πcompress_stored_roomsβ determines whether the rooms file should be read and written to in compressed form. defaults toyes.connections_allowedβ the number of allowed connections from the same IP.0means infinite. (default:5)disallow_namesβ names/nicks that are not accepted by the server.*and?from wildcard patterns are supported. seeglob(7)for more details. default values (used if nothing is specified) are:*admin*,*admln*,*server*,ai,ai?,computer,human,network,player.fifo_pathβ the path to the fifo you can echo server commands into (same as/query ...from wesnoth). if not specified, it defaults to the compile-time path (default:/var/run/wesnothd/socket).max_messagesβ the number of allowed messages inmessages_time_period. (default:4)messages_time_periodβ the time period (in seconds) message flooding is detected in. (default:10seconds)motdβ the message of the day. πnew_room_policyβ determines who can create new rooms on the server. available values areeveryone,registered,adminandnobody, and they give the permission respectively to everyone, registered users, admin users, or they disable new room creation entirely. default value iseveryone.passwdβ the password used to gain admin privileges (via/query admin password). π€«replay_save_pathβ the directory where the server stores game replays. (don't forget the trailing/!!) defaults to`'which means the directorywesnothdwas started in.restart_commandβ the command that the server uses to start a new server process via therestartcommand. (can only be issued via the fifo. see theallow_remote_shutdownsetting.)room_save_fileβ path to a file where the room info should be stored. this file is read on server startup and written to later. if it's empty or not set, rooms are not loaded and not saved.save_replaysβ defines whether the server will automatically save replays of games. (default:false)versions_acceptedβ a comma separated list of version strings to be accepted by the server.*and?from wildcard patterns are supported. (defaults to the corresponding wesnoth version) example:versions_accepted="*"accepts any version string.deny_unregistered_loginβ whether to prevent users who are not registered with theuser_handlerbeing used from logging in. (default:false)
π Global tags:
[redirect]β a tag to specify a server to redirect certain client versions to. it is not used ifversions_acceptedis not set.hostβ the address of the server to redirect to.portβ the port to connect to.versionβ a comma separated list of versions to redirect. behaves the same way asversions_acceptedin regard to wildcard patterns.
[ban_time]β a tag to define convenient keywords for temporary ban time lengths. β°nameβ the name used to reference the ban time.timeβ the time length definition. the format is:%d[%s[%d%s[...]]]where%siss(seconds),m(minutes),h(hours),D(days),M(months) orY(years) and%dis a number. if no time modifier is given, minutes (m) are assumed. example:time="1D12h30m"results in a ban time of 1 day, 12 hours and 30 minutes.
[proxy]β a tag to tell the server to act as a proxy and forward the connected client's requests to the specified server. accepts the same keys as[redirect].[user_handler]β configures the user handler. if no[user_handler]section is present in the configuration, the server will run without any nick registration service. all the additional tables that are needed for theforum_user_handlerto function can be found intable_definitions.sqlin the Wesnoth source repository. requires mysql support enabled β for cmake this isENABLE_MYSQL, and for scons this isforum_user_handler.db_hostβ the hostname of the database serverdb_nameβ the name of the databasedb_userβ the name of the user under which to log into the databasedb_passwordβ this user's passworddb_users_tableβ the name of the table in which your phpbb forums saves its user data. most likely this will be<table-prefix>_users(e.g.phpbb3_users).db_extra_tableβ the name of the table in whichwesnothdwill save its own data about users.db_game_info_tableβ the name of the table in whichwesnothdwill save its own data about games.db_game_player_info_tableβ the name of the table in whichwesnothdwill save its own data about the players in a game.db_game_modification_info_tableβ the name of the table in whichwesnothdwill save its own data about the modifications used in a game.db_user_group_tableβ the name of the table in which your phpbb forums saves its user group data. most likely this will be<table-prefix>_user_group(e.g.phpbb3_user_group).mp_mod_groupβ the ID of the forum group to be considered as having moderation authority.
π EXIT STATUS π
- normal exit status is
0when the server was properly shutdown. slay, clean exit. β¨ - an exit status of
2indicates an error with the command line options. not slay. π
π«Ά AUTHOR π«Ά
written by David White <davidnwhite@verizon.net>. edited by Nils Kneuper <crazy-ivanovic@gmx.net>, ott <ott@gaon.net>, Soliton <soliton.de@gmail.com> and Thomas Baumhauer <thomas.baumhauer@gmail.com>. this manual page was originally written by Cyril Bouthors <cyril@bouthors.org>.
visit the official homepage: https://www.wesnoth.org/ π
π COPYRIGHT π
Copyright Β© 2003-2022 David White <davidnwhite@verizon.net>
this is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. fr fr. β οΈ
π SEE ALSO π
okay that's the whole page bestie, you ate that. π
this was the wesnothd manual from source/version wesnothd, dated 2022 β go forth and host some games. mwah πβ¨
π¦ where this page comes from
- debian bookworm: wesnoth-1.16-server 1:1.16.9-1
- ubuntu noble: wesnoth-1.16-server 1:1.16.11-1build3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms