📄 bnetd.conf.win32
字号:
############################################################################### bnetd.conf - Configuration file for the Unix Battle.net daemon ##----------------------------------------------------------------------------## ## This file is an example configuration and may require modification to ## suit your needs or your site. Blank lines and lines starting with a "#" ## are ignored. Use quotes around values that contain spaces. ## ############################################################################################################################################################## Storage section ## storage_path will tell pvpgn how and where from/to to read/write accounts ## right now it supports 2 "drivers" : file and sql ## ## Syntax: ## * for plain file driver: ## storage_path = file:mode=plain;dir=<path_to_user_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account ## * for cdb file driver: ## storage_path = file:mode=cdb;dir=<path_to_cdb_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account ## * for sql/sql2 driver: ## storage_path = sql:variable=value;...;default=0 (0 is the default uid) ## or storage_path = sql2:variable=value;...;default=0 (0 is the default uid) ## ## Variables for sql/sql2 can be: ## - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) ## - "host" : the database host ## - "port" : the TCP/IP port if needed ## - "socket" : the UNIX local socket if needed ## - "name" : database name ## - "user" : db username ## - "pass" : db password ## - "default" : specify the UID to use for the default account data ## - "prefix" : prefix to use for all pvpgn tables (default "") ## ## Examples: ## storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain# storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb# storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_# storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_# storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_# storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_# storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_# storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_# storage_path = sql2:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_# storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn_#----------------------------------------------------------------------------#storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain# ############################################################################################################################################################## File section ## The pidfile can be set to "" to turn it off. ## Use absolute paths in these lines to avoid problems! ##----------------------------------------------------------------------------#filedir = filesreportdir = var\reportschanlogdir = var\chanlogsmotdfile = conf\bnmotd.txtissuefile = conf\bnissue.txtchannelfile = conf\channel.confnewsfile = conf\news.txtadfile = conf\ad.conftopicfile = conf\topics.confipbanfile = conf\bnban.confhelpfile = conf\bnhelp.conftransfile = conf\address_translation.confmpqfile = conf\autoupdate.conflogfile = var\bnetd.logrealmfile = conf\realm.confversioncheck_file = conf\versioncheck.confmapsfile = conf\bnmaps.confxplevelfile = conf\bnxplevel.confxpcalcfile = conf\bnxpcalc.conf#pidfile = var\bnetd.pidladderdir = var\ladderscommand_groups_file = conf\command_groups.confstatusdir = var\statusaliasfile = conf\bnalias.confanongame_infos_file = conf\anongame_infos.confDBlayoutfile = conf\sql_DB_layout.confsupportfile = conf\supportfile.conffortunecmd = bin\fortune.exe# ############################################################################################################################################################## Message logs ##----------------------------------------------------------------------------## Multiple log levels can be defined by connecting them with a comma (,)# Available loglevels are:# none# trace# debug# info# warn# error# fatal#loglevels = fatal,error,warn,info,debug,traceloglevels = fatal,error# ############################################################################################################################################################## D2CS realm server settings ##----------------------------------------------------------------------------## Version of D2CS server to connect with (set to zero to disable version check)d2cs_version = 0# Allow the D2CS server to change realm names?allow_d2cs_setname = true# ############################################################################################################################################################## Downloadable files ##----------------------------------------------------------------------------## These filenames are reported directly to the client and are relative to# the "filedir" directory specified above.iconfile = "icons.bni"war3_iconfile = "icons-WAR3.bni"star_iconfile = "icons_STAR.bni"tosfile = "tos.txt"# ############################################################################################################################################################## Client verification and upgrades ##----------------------------------------------------------------------------## This option lists the client types allowed to connect (only valid for # the bnet protocol). The list is a comma separated list of any of the # following elements: # all : all client types allowed (default)# chat : client type "CHAT" allowed (used by some bot software)# dshr : client type Diablo 1 Shareware# drtl : client type Diablo 1 (Retail)# sshr : client type Starcraft Shareware# star : client type Starcraft# sexp : client type Starcraft Broodwar# w2bn : client type Warcraft II Battle.Net Edition# d2dv : client type Diablo 2# d2xp : client type Diablo 2 LOD# war3 : client type Warcraft III (Reign Of Chaos)# w3xp : client type Warcraft III Frozen Throne## Example: allowed_clients = war3,w3xpallowed_clients = all# If this option is enabled, the verification step is skipped if possible.# This only works with clients < 109. It is useful because you no longer# need any of the IX86AUTH?.MPQ and PMACAUTH?.MPQ files. Note that it will# also skip over all the autoupdate checks effectively disabling it.## If you disable this you must have one or more of the MPQ files. Otherwise# clients will hang when they first connect because they are attempting to# download them. The versioncheck can only be skipped for clients older# than 109. Starting with version 109 the clients will always do version# checking since they do not function properly if the server does not# request it.skip_versioncheck = false# If you enable the version checks but want to allow clients that don't pass# the checksum test then enable this.allow_bad_version = false# If you enable the version checks but want to allow clients that aren't# listed in the versioncheck configuration file then enable this. Unless# you have a very complete file or are very paranoid about cheaters this# is a good idea.allow_unknown_version = true# This defines how the exeinfo field in the versioncheck file is being# checked. You can choose between no match at all [none] (default), # exact match [exact], exact case-sensitive match [exactcase], dumb wildcard # match [wildcard], and parsed value comparison [parse]. # NOTE: [parse] needs the mktime() function and might therefore not work on # every system. version_exeinfo_match = none# If you have choosen [parse] above, this is the tolerance with which# the time can differ. The value must be given in seconds. If it's 0 this # check is disabled.version_exeinfo_maxdiff = 0# ############################################################################################################################################################## Time values ##----------------------------------------------------------------------------## Time in seconds between account file updates, 0 means wait forever.usersync = 300# Number of seconds of inactivity before file is unloaded from memory.# (only checked during account file updates)userflush = 1200# Number of users checked for updates at once. Higher values make sense if you # either have very fast hardware or you don't have many number of accounts.# Lower values make sense if you have very high CPU usage on the system you run# the server (dont make it too low or your system will save accounts continously).# Modify this value ONLY if you know what you are doing!!userstep = 100# How often to send user latency tests in seconds.latency = 600# How often to send null or keepalive packets in seconds.nullmsg = 120# Amount of time to delay shutting down server in seconds.shutdown_delay = 300# Amount of time delay period is decremented by either a SIGTERM or SIGINT# (control-c) signal in seconds.shutdown_decr = 60# How often should bans be checked for expiration? (in seconds)#ipban_check_int = 30# ############################################################################################################################################################## Policy options ##----------------------------------------------------------------------------## If you don't want people to be able to create new accounts, set this to# false.new_accounts = true# Set this to the maximum number of accounts you want to allow to be# created on your server. A value of 0 means infinite and is the default.#max_accounts = 0# If someone attempts to log in more than once, should it kick off the old# login, or deny the new one?kick_old_login = true#kick_old_login = false# With no passwords, this is bad to have enabled --NonReal # load_new_account option has been eliminated and the functionality now is # always active in PvPGN# If a user is creating a new channel, should it be added automatically, or# prompt them first?ask_new_channel = true# Should a game report be written for every game played or just ladder# games?#report_all_games = falsereport_all_games = true# Should Diablo I/II reports be written? There are no winners/losers.report_diablo_games = false# Should games with passwords be hidden on the game list?hide_pass_games = true# Should games already started be hidden on the game list? (for heavily# loaded servers)hide_started_games = true# Should non-permanent channels hidden on the channel list?hide_temp_channels = true# Should the extended /-commands be avaliable? (of course!)extra_commands = true# Should any and all disconnects to be counted as losses?# (Turning this on will override the user's choice in ladder games!)disc_is_loss = false# List additional game types to be counted as ladder games# Curently allowed types: topvbot, melee, ffa, oneonone# Example: ladder_games = "topvbot,oneonone"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -