WESNOTHD(6)

命名
wesnothd - 韋諾之戰 Wesnoth 多人游戲伺服器

摘要
wesnothd [-dv] [-c path] [-p port] [-t number] [-T number]
wesnothd -V

描述
控制韋諾之戰多人遊戲。 官方wiki上的ServerAdministration頁面上取得更多可以經由韋諾之戰客戶端或者socket在伺服器上運行的指令。連結wiki: http://www.wesnoth.org/wiki/ServerAdministration

選項

-c path, --config path
    指定韋諾找到的檔案配置目錄。下面的SERVER CONFIG通過發送SIGHUP信號給伺服器程序可以重新裝載檔案配置。

-d, --daemon
    以安全模式執行韋諾。

-h, --help
    顯示指令的功用。

--log-level=domain1,domain2,...
    設定日誌記錄的類別。all可以用來支援任何日誌域的類別。可選的類別有：error, warning, info,debug。預設的類別是error，對server域預設類別是info。

-p port, --port port
    設定伺服器到指定的埠。如果不指定埠將使用15000。

-t number, --threads number
    設定網路I/O的最大等待工作流程數為 n (預設值為5， 最大值為 30)。

-T number, --max-threads number
    允許創造最大等待工作流程數。如果設定為0則不限制流程數（預設值：0）

-V, --version
    顯示版本並退出。

-v, --verbose
    開啟偵測日誌記錄。

伺服器設定

  常用語法是:

[tag]

    key="value"

    key="value,value,..."

[/tag]

  全球關鍵字:

ban_save_file
    Full or relative path to a (gzip compressed) file that the server can read and write. Bans will be saved to this file and read again on server start.

connections_allowed
    同一IP允許的連接數。(預設值：5)

disallow_names
    伺服器不允許使用的使用者名稱/暱稱。可以使用 "＊" 和 "？"符號。更多資料請查看 glob(7) 。預設值(如果使用者沒有指定則自動使用)是： *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 defaults to the compile-time specified path (default: /var/run/socket/wesnothd/socket).

max_messages
    messages_time_period中允許存在的訊息數。 (默認值: 4)

messages_time_period
    訊息檢測間隔(秒)。 (預設值: 10 秒)

motd
    當日訊息。

passwd
    取得管理員權限的密碼。通常以"admin"開頭。

replay_save_path
    The directory where the server stores game replays. (Don't forget the trailing /!) Defaults to `' which means the directory wesnothd was started in.

restart_command
    The command that the server uses to start a new server process via the `restart' command. (Can only be issued via the fifo.)

save_replays
    Defines whether the server will automatically save replays of games. (default: false)

versions_accepted
    用逗號分隔的伺服器接受版本列表。支援 "＊" 和 "？" 符號。（預設為相同版本）
    例如: versions_accepted="*" 允許所有版本連接。

user_handler
    The name of the user handler to use. Currently available user handlers are 'forum' (to connect wesnothd to a phpbb forum database) and 'sample' (a sample implementation of the user handler interface, if you use this on anything real you are insane). The default value is 'forum'. You must also add a [user_handler] section, see below.

  全球標籤:

[redirect] 伺服器用來重定向特定客戶端版本的標簽。

    host
        重定向到的伺服器地址。

    port
        連接埠口

    version
        重定向用逗號分隔列表的版本。顯示同樣的模式包括versions_accepted在符號模式。

[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 %s is s (seconds), m (minutes), h (hours), D (days), M (months) or Y (years) and %d is 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] 這個標簽告訴伺服器扮演代理伺服器角色，把使用者連接重定向到另一台伺服器。與[redirect]接受一樣的參數。

[user_handler] Configures the user handler. Available keys vary depending on which user handler is set with the user_handler key. If no [user_handler] section is present in the configuration the server will run without any nick registration service.

    db_host
        (for user_handler=forum) The hostname of the database server

    db_name
        (for user_handler=forum) The name of the database

    db_user
        (for user_handler=forum) The name of the user under which to log into the database

    db_password
        (for user_handler=forum) This user's password

    db_users_table
        (for user_handler=forum) 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
        (for user_handler=forum) The name of the table in which wesnothd will save its own data about users. You will have to create this table manually, e.g.: CREATE TABLE <table-name>(username VARCHAR(255) PRIMARY KEY, user_lastvisit INT UNSIGNED NOT NULL DEFAULT 0, user_is_moderator TINYINT(4) NOT NULL DEFAULT 0);

    user_expiration
        (for user_handler=sample) The time after which a registered nick expires (in days).

[mail] Configures an SMTP server through which the user handler can send mail. Currently only used by the sample user handler.

    server
        The hostname of the mail server

    username
        The user name under which to log into the mail server.

    password
        使用者密碼。

    from_address
        The reply-to address of you mail.

    mail_port
        The port on which your mail server is running. Default is 25.

作者
由 David White <davidnwhite@verizon.net>編寫。經 Nils Kneuper <crazy-ivanovic@gmx.net>, ott <ott@gaon.net> 和 Soliton <soliton.de@gmail.com>修改。這個說明頁最早由Cyril Bouthors <cyril@bouthors.org>編寫。
官方網站: http://www.wesnoth.org/繁體中文翻譯團隊:http://wesnoth-tw.blogspot.com/

版權
版權 © 2003-2007 David White <davidnwhite@verizon.net>
這是一個免費遊戲；使用由FSF發布的GPL v2協議授權。原文如下：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.There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

參見
wesnoth(6), wesnoth_editor(6)