Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.09 KB | None | 0 0
  1. bnetd.conf:
  2.  
  3. ##############################################################################
  4. # bnetd.conf - Configuration file for the Unix Battle.net daemon #
  5. #----------------------------------------------------------------------------#
  6. # #
  7. # This file is an example configuration and may require modification to #
  8. # suit your needs or your site. Blank lines and lines starting with a "#" #
  9. # are ignored. Use quotes around values that contain spaces. #
  10. # #
  11. ##############################################################################
  12.  
  13.  
  14. ##############################################################################
  15. # Storage section #
  16. # storage_path will tell pvpgn how and where from/to to read/write accounts #
  17. # right now it supports 2 "drivers" : file and sql #
  18. # #
  19. # Syntax: #
  20. # * for plain file driver: #
  21. # 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 #
  22. # * for cdb file driver: #
  23. # 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 #
  24. # * for sql/sql2 driver: #
  25. # storage_path = sql:variable=value;...;default=0 (0 is the default uid) #
  26. # or storage_path = sql2:variable=value;...;default=0 (0 is the default uid) #
  27. # #
  28. # Variables for sql/sql2 can be: #
  29. # - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) #
  30. # - "host" : the database host #
  31. # - "port" : the TCP/IP port if needed #
  32. # - "socket" : the UNIX local socket if needed #
  33. # - "name" : database name #
  34. # - "user" : db username #
  35. # - "pass" : db password #
  36. # - "default" : specify the UID to use for the default account data #
  37. # - "prefix" : prefix to use for all pvpgn tables (default "") #
  38. # #
  39. # Examples: #
  40. # storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain
  41. # storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb
  42. # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  43. # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  44. # storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
  45. # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
  46. # storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  47. # storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
  48. # storage_path = sql2:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
  49. # storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn_
  50. #----------------------------------------------------------------------------#
  51.  
  52. #storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain
  53. storage_path = sql:mode=mysql;host=localhost;name=bnetpvpgn;user=root;pass=;default=0
  54.  
  55. # #
  56. ##############################################################################
  57.  
  58. ##############################################################################
  59. # File section #
  60. # The pidfile can be set to "" to turn it off. #
  61. # Use absolute paths in these lines to avoid problems! #
  62. #----------------------------------------------------------------------------#
  63.  
  64. filedir = files
  65. reportdir = var\reports
  66. chanlogdir = var\chanlogs
  67. motdfile = conf\bnmotd.txt
  68. issuefile = conf\bnissue.txt
  69. channelfile = conf\channel.conf
  70. newsfile = conf\news.txt
  71. adfile = conf\ad.conf
  72. topicfile = conf\topics.conf
  73. ipbanfile = conf\bnban.conf
  74. helpfile = conf\bnhelp.conf
  75. transfile = conf\address_translation.conf
  76. mpqfile = conf\autoupdate.conf
  77. logfile = var\bnetd.log
  78. realmfile = conf\realm.conf
  79. versioncheck_file = conf\versioncheck.conf
  80. mapsfile = conf\bnmaps.conf
  81. xplevelfile = conf\bnxplevel.conf
  82. xpcalcfile = conf\bnxpcalc.conf
  83. #pidfile = var\bnetd.pid
  84. ladderdir = var\ladders
  85. command_groups_file = conf\command_groups.conf
  86. statusdir = var\status
  87. aliasfile = conf\bnalias.conf
  88. anongame_infos_file = conf\anongame_infos.conf
  89. DBlayoutfile = conf\sql_DB_layout.conf
  90. supportfile = conf\supportfile.conf
  91.  
  92. fortunecmd = bin\fortune.exe
  93.  
  94. # #
  95. ##############################################################################
  96.  
  97.  
  98. ##############################################################################
  99. # Message logs #
  100. #----------------------------------------------------------------------------#
  101.  
  102. # Multiple log levels can be defined by connecting them with a comma (,)
  103. # Available loglevels are:
  104. # none
  105. # trace
  106. # debug
  107. # info
  108. # warn
  109. # error
  110. # fatal
  111. #loglevels = fatal,error,warn,info,debug,trace
  112. loglevels = fatal,error
  113.  
  114. # #
  115. ##############################################################################
  116.  
  117.  
  118. ##############################################################################
  119. # D2CS realm server settings #
  120. #----------------------------------------------------------------------------#
  121.  
  122. # Version of D2CS server to connect with (set to zero to disable version check)
  123. d2cs_version = 0
  124.  
  125. # Allow the D2CS server to change realm names?
  126. allow_d2cs_setname = true
  127.  
  128. # #
  129. ##############################################################################
  130.  
  131.  
  132. ##############################################################################
  133. # Downloadable files #
  134. #----------------------------------------------------------------------------#
  135.  
  136. # These filenames are reported directly to the client and are relative to
  137. # the "filedir" directory specified above.
  138. iconfile = "icons.bni"
  139. war3_iconfile = "icons-WAR3.bni"
  140. star_iconfile = "icons_STAR.bni"
  141.  
  142. tosfile = "tos.txt"
  143.  
  144. # #
  145. ##############################################################################
  146.  
  147.  
  148. ##############################################################################
  149. # Client verification and upgrades #
  150. #----------------------------------------------------------------------------#
  151.  
  152. # This option lists the client types allowed to connect (only valid for
  153. # the bnet protocol). The list is a comma separated list of any of the
  154. # following elements:
  155. # all : all client types allowed (default)
  156. # chat : client type "CHAT" allowed (used by some bot software)
  157. # dshr : client type Diablo 1 Shareware
  158. # drtl : client type Diablo 1 (Retail)
  159. # sshr : client type Starcraft Shareware
  160. # star : client type Starcraft
  161. # sexp : client type Starcraft Broodwar
  162. # w2bn : client type Warcraft II Battle.Net Edition
  163. # d2dv : client type Diablo 2
  164. # d2xp : client type Diablo 2 LOD
  165. # war3 : client type Warcraft III (Reign Of Chaos)
  166. # w3xp : client type Warcraft III Frozen Throne
  167. #
  168. # Example: allowed_clients = war3,w3xp
  169. allowed_clients = all
  170.  
  171. # If this option is enabled, the verification step is skipped if possible.
  172. # This only works with clients < 109. It is useful because you no longer
  173. # need any of the IX86AUTH?.MPQ and PMACAUTH?.MPQ files. Note that it will
  174. # also skip over all the autoupdate checks effectively disabling it.
  175. #
  176. # If you disable this you must have one or more of the MPQ files. Otherwise
  177. # clients will hang when they first connect because they are attempting to
  178. # download them. The versioncheck can only be skipped for clients older
  179. # than 109. Starting with version 109 the clients will always do version
  180. # checking since they do not function properly if the server does not
  181. # request it.
  182. skip_versioncheck = false
  183.  
  184. # If you enable the version checks but want to allow clients that don't pass
  185. # the checksum test then enable this.
  186. allow_bad_version = false
  187.  
  188. # If you enable the version checks but want to allow clients that aren't
  189. # listed in the versioncheck configuration file then enable this. Unless
  190. # you have a very complete file or are very paranoid about cheaters this
  191. # is a good idea.
  192. allow_unknown_version = true
  193.  
  194. # This defines how the exeinfo field in the versioncheck file is being
  195. # checked. You can choose between no match at all [none] (default),
  196. # exact match [exact], exact case-sensitive match [exactcase], dumb wildcard
  197. # match [wildcard], and parsed value comparison [parse].
  198. # NOTE: [parse] needs the mktime() function and might therefore not work on
  199. # every system.
  200. version_exeinfo_match = none
  201.  
  202. # If you have choosen [parse] above, this is the tolerance with which
  203. # the time can differ. The value must be given in seconds. If it's 0 this
  204. # check is disabled.
  205. version_exeinfo_maxdiff = 0
  206.  
  207. # #
  208. ##############################################################################
  209.  
  210.  
  211. ##############################################################################
  212. # Time values #
  213. #----------------------------------------------------------------------------#
  214.  
  215. # Time in seconds between account file updates, 0 means wait forever.
  216. usersync = 300
  217. # Number of seconds of inactivity before file is unloaded from memory.
  218. # (only checked during account file updates)
  219. userflush = 1200
  220. # Number of users checked for updates at once. Higher values make sense if you
  221. # either have very fast hardware or you don't have many number of accounts.
  222. # Lower values make sense if you have very high CPU usage on the system you run
  223. # the server (dont make it too low or your system will save accounts continously).
  224. # Modify this value ONLY if you know what you are doing!!
  225. userstep = 100
  226.  
  227. # How often to send user latency tests in seconds.
  228. latency = 600
  229.  
  230. # How often to send null or keepalive packets in seconds.
  231. nullmsg = 120
  232.  
  233. # Amount of time to delay shutting down server in seconds.
  234. shutdown_delay = 300
  235. # Amount of time delay period is decremented by either a SIGTERM or SIGINT
  236. # (control-c) signal in seconds.
  237. shutdown_decr = 60
  238.  
  239. # How often should bans be checked for expiration? (in seconds)
  240. #ipban_check_int = 30
  241.  
  242. # #
  243. ##############################################################################
  244.  
  245.  
  246. ##############################################################################
  247. # Policy options #
  248. #----------------------------------------------------------------------------#
  249.  
  250. # If you don't want people to be able to create new accounts, set this to
  251. # false.
  252. new_accounts = true
  253.  
  254. # Set this to the maximum number of accounts you want to allow to be
  255. # created on your server. A value of 0 means infinite and is the default.
  256. #max_accounts = 0
  257.  
  258. # If someone attempts to log in more than once, should it kick off the old
  259. # login, or deny the new one?
  260. kick_old_login = true
  261. #kick_old_login = false
  262. # With no passwords, this is bad to have enabled --NonReal
  263.  
  264. # load_new_account option has been eliminated and the functionality now is
  265. # always active in PvPGN
  266.  
  267. # If a user is creating a new channel, should it be added automatically, or
  268. # prompt them first?
  269. ask_new_channel = true
  270.  
  271. # Should a game report be written for every game played or just ladder
  272. # games?
  273. #report_all_games = false
  274. report_all_games = true
  275.  
  276. # Should Diablo I/II reports be written? There are no winners/losers.
  277. report_diablo_games = false
  278.  
  279. # Should games with passwords be hidden on the game list?
  280. hide_pass_games = true
  281.  
  282. # Should games already started be hidden on the game list? (for heavily
  283. # loaded servers)
  284. hide_started_games = true
  285.  
  286. # Should non-permanent channels hidden on the channel list?
  287. hide_temp_channels = true
  288.  
  289. # Should the extended /-commands be avaliable? (of course!)
  290. extra_commands = true
  291.  
  292. # Should any and all disconnects to be counted as losses?
  293. # (Turning this on will override the user's choice in ladder games!)
  294. disc_is_loss = false
  295.  
  296. # List additional game types to be counted as ladder games
  297. # Curently allowed types: topvbot, melee, ffa, oneonone
  298. # Example: ladder_games = "topvbot,oneonone"
  299. ladder_games = "none"
  300.  
  301. # If additional game types are configured (see above) to be counted as ladder
  302. # games then this setting configures a game name prefix to make only games
  303. # which match this game name prefix be counted as ladder. This allows to
  304. # still have normal games of the game types configured with "ladder_games"
  305. # directive. However if this setting is commented or "" then ALL games
  306. # which match the game types configured with "ladder_games" are to be
  307. # considered as ladder games. The prefix checking is CASE SENSITIVE!
  308. # Example: ladder_prefix = "ldr_"
  309. ladder_prefix = ""
  310.  
  311. # Should all users be able to use the /con and /connections commands?
  312. enable_conn_all = true
  313.  
  314. # Should client IP addresses (from /con, /games, /gameinfo, /netinfo)
  315. # be hidden from non-admins?
  316. hide_addr = false
  317.  
  318. # Should private channel messages be logged to files in the chanlogdir
  319. # directory? (see channels.list for public channels)
  320. chanlog = false
  321.  
  322. # Do you want to use the channel quota feature?
  323. quota = yes
  324.  
  325. # The following options deal with flood prevention.
  326. #
  327. # How many lines do you accept in quota_time seconds?
  328. # (The default should allow 5 lines in 5 seconds,
  329. # longer time periods allow "bursts" of traffic before the quota is full.)
  330. quota_lines = 5 # must be between 1 and 100 lines
  331. quota_time = 5 # must be between 1 and 60 seconds
  332. # "virtual wrapping", so long lines count as multiple lines
  333. quota_wrapline = 40 # must be between 1 to 256 chars
  334. # absolute maximum characters allowed in a line
  335. quota_maxline = 200 # must be between 1 to 256 chars
  336. #
  337. # How many lines do you accept in quota_time seconds before user is
  338. # disconnected?
  339. # (According to Jung-woo, Dobae is a Korean term for flooding the game server...
  340. # it originally meant "to paint the wallpaper on a new or refurbished house").
  341. # If it less than or equal to quota_lines, there is no warning before
  342. # disconnection so don't set this too low.
  343. quota_dobae = 10 # must be between 1 and 100 lines
  344.  
  345. # Mail support
  346. mail_support = true
  347. mail_quota = 5
  348.  
  349. # Channel logging message
  350. log_notice = "*** Please note this channel is logged! ***"
  351.  
  352. # Ban on repeated password fails against bruteforce password thieves
  353. # Fails required to get ip banned (0 to disable ban on password fail)
  354. passfail_count = 0
  355.  
  356. # Password fail IP ban duration (in seconds)
  357. passfail_bantime = 300
  358.  
  359. # Max users limit in private channels (0 = unlimited)
  360. maxusers_per_channel = 0
  361.  
  362. # #
  363. ##############################################################################
  364.  
  365.  
  366. ##############################################################################
  367. # Account configuration #
  368. #----------------------------------------------------------------------------#
  369.  
  370. # Should account files be named by the account number or the player name?
  371. savebyname = true
  372.  
  373. # Save the account data on logoff
  374. sync_on_logoff = false
  375.  
  376. # How man rows should the account lookup hash table have? Servers with
  377. # more accounts should use a larger table for better performance.
  378. hashtable_size = 61
  379.  
  380. # Per default, only alphanumerical symbols are allowed in account names
  381. # with this variable you can add some extra symbols to be allowed
  382. # but be warned - that some of them might cause trouble - at least with
  383. # savebyname=true (some symbols are forbidden in filenames or might cause
  384. # you real trouble - plz neither allow wildcard symbols like '*' or '?'.
  385. # Path delimiters like '/' or '\' are hardcoded filtered and can't be allowed.
  386. # Also note that allowing the '.' might cause u some headache on win32 systems.
  387. # You have been warned - the rest is up to you.
  388. # default setting is "-_[]" as it was previous versions
  389. account_allowed_symbols = "-_[]"
  390.  
  391. # This setting affects users that login with their uid rather than their
  392. # username. If set to true their displayed username will be forcefully
  393. # converted to their registered account name.
  394. account_force_username = false
  395.  
  396. # maximum number of friends a user can add to there friends list
  397. # default setting is 20
  398. max_friends = 20
  399.  
  400. # #
  401. ##############################################################################
  402.  
  403.  
  404. ##############################################################################
  405. # Tracking server info #
  406. #----------------------------------------------------------------------------#
  407.  
  408. # Set track=0 to disable tracking. Any other number will set number
  409. # of seconds between sending tracking packets. This is OFF by default.
  410. #track = 0
  411. track = 60
  412. # 10 minutes
  413.  
  414. # Tracking server(s)
  415. # Use a comma delimited list of hostnames with optional UDP port numbers
  416. # after colons. (port 6114 is the default for the newer tracking protocol)
  417. #trackaddrs = "track.bnetd.org,localhost:9999"
  418. #trackaddrs = "track.pvpgn.org"
  419.  
  420. # Change these to match your system, for example:
  421. location = "unknown"
  422. description = "unknown"
  423. url = "unknown"
  424. contact_name = "a PvPGN user"
  425. contact_email = "unknown"
  426.  
  427. # #
  428. ##############################################################################
  429.  
  430.  
  431. ##############################################################################
  432. # Server network info #
  433. #----------------------------------------------------------------------------#
  434.  
  435. # Servername by which the server identifies itself (default: "PvPGN Realm")
  436. servername = "PvPGN Realm2"
  437.  
  438. # Set this to the maximum number of concurrent connections allowed on
  439. # this server (minimum 32). This limit sets a general server connection
  440. # limit, NOT the concurrent user limit (for that see next option)
  441. max_connections = 1000
  442.  
  443. # Maximum number of concurrent users (0 means unlimited).
  444. max_concurrent_logins = 0
  445.  
  446. # Set this option to true to allow TCP to detect and close stale
  447. # connections.
  448. use_keepalive = false
  449.  
  450. # Limit maximum number of connections per IP (0 = unlimited)
  451. # this feature is new, so no recommended value so far
  452. max_conns_per_IP = 0
  453.  
  454. # This is a comma delimited list of hostnames that the server should
  455. # listen on. It might be useful to make an internal-only server on a
  456. # gateway machine for example. If the list is not set or if it has a
  457. # entry with no host component, the server will bind to that port on all
  458. # interfaces.
  459. #servaddrs = ":9999"
  460. #servaddrs = "myinternalname.some.com,localhost"
  461. servaddrs = ":" # default interface (all) and default port (6112)
  462.  
  463. # Don't change these unless you really need to! You will need to run a proxy
  464. # or modify the clients. Also note that these will not change when simply
  465. # sending a HUP signal to the server; they are only read on startup.
  466.  
  467. # This is the port the server send the UDP test packets to by default.
  468. # Setting it to zero makes the server use the same port as the TCP connection
  469. # comes from. Newer clients can override this setting on a per connection
  470. # basis.
  471. #udptest_port = 6112
  472.  
  473.  
  474. # W3 Play Game router address. Just put your server address in here
  475. # or use 0.0.0.0:6200 for server to bind to all interfaces,
  476. # but make sure you set up w3trans if you do.
  477. w3routeaddr = "10.0.0.3:6200"
  478.  
  479. # w3routeshow has been removed.
  480. # see the address_translation.conf for translating the w3route ip for local networks
  481.  
  482. # initkill_timer sets up a periodic timer on init/defer class connections
  483. # this should detect and clean up stale connections to your server
  484. initkill_timer = 120
  485.  
  486. # #
  487. ##############################################################################
  488.  
  489. ##############################################################################
  490. # Westwood Online (WOL) configuration #
  491. #----------------------------------------------------------------------------#
  492.  
  493. # NOTE: WOL support is still experimental!
  494.  
  495. # This specifies the addresses where IRC connections should be accepted. See
  496. # the description of servaddrs for formatting information. Leave this field
  497. # blank if you do not want to accept IRC connections. If the port is not
  498. # specifed then 4005 will be used. Note: DO NOT SET THE PORT TO ANYTHING OTHER
  499. # THEN 4005, WOL WILL FAIL IF YOU DO!
  500. #woladdrs = ":4005"
  501.  
  502. # Just leave these as default (unless you know the timezone, longitiude and latitude
  503. # of your server
  504. woltimezone = "-8"
  505. wollongitude = "36.1083"
  506. wollatitude = "-115.0582"
  507.  
  508. # #
  509. ##############################################################################
  510.  
  511. ##############################################################################
  512. # Internet Relay Chat (IRC) configuration #
  513. #----------------------------------------------------------------------------#
  514.  
  515. # NOTE: IRC support is still experimental!
  516.  
  517. # This specifies the addresses where IRC connections should be accepted. See
  518. # the description of servaddrs for formatting information. Leave this field
  519. # blank if you do not want to accept IRC connections. If the port is not
  520. # specifed then 6667 will be used.
  521. #ircaddrs = ":6667"
  522.  
  523. # This is the IRC network name. If this is not specified then the default of
  524. # "PvPGN" will be used.
  525. #irc_network_name = "PvPGN"
  526.  
  527. # This is the hostname used for IRC connections. Set this to your
  528. # hostname, if the automatic detection doesn't correctly.
  529. #hostname = "none"
  530.  
  531. # Set this to the desired IRC connection timeout in seconds.
  532. #irc_latency = 180
  533.  
  534. # #
  535. ##############################################################################
  536.  
  537.  
  538. ##############################################################################
  539. # Telnet configuration #
  540. #----------------------------------------------------------------------------#
  541.  
  542. # This specifies the addresses where telnet connections should be accepted.
  543. # See the description of servaddrs for formatting information. Leave this
  544. # field # blank if you do not want to accept telnet connections. If the port
  545. # is not specifed then 23 will be used.
  546. #telnetaddrs = ":23"
  547.  
  548. # #
  549. ##############################################################################
  550.  
  551. ###############################################################################
  552. # war3 ladder textual output #
  553. #-----------------------------------------------------------------------------#
  554. # this is for all the guys, that want Warcraft 3 ladder, but don't want their
  555. # server to run with MySQL support.
  556. # For each ladder (solo, team, ffa, at) a corresponing file is created,
  557. # so it's easy to build your ladder pages with them
  558.  
  559. # the following value determines, at which rate, these files are created
  560. # set to 0 if you don't want or need these files
  561. war3_ladder_update_secs = 300
  562.  
  563. # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
  564. # on demand. Maybe we should set update interval bigger cause XML output version
  565. # is much more verbose than the standard output
  566. XML_output_ladder = false
  567.  
  568. ###############################################################################
  569. # server status textual output #
  570. #-----------------------------------------------------------------------------#
  571. # This is for writing status of the server in an attempt to see number of user
  572. # on line actually, and games/chans.
  573. # This is store in file var\status\warcraft3.dat as a *.ini format.
  574. # Shouldn't be so hard in php to create dynamic website using this content.
  575.  
  576. # the following value determines, at which rate, these files are created
  577. # set to 0 if you don't want or need these files
  578. output_update_secs = 60
  579.  
  580. # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
  581. # on demand. Maybe we should set update interval bigger cause XML output version
  582. # is much more verbose than the standard output
  583. XML_status_output = false
  584.  
  585. ###############################################################################
  586. # clan settings #
  587. #-----------------------------------------------------------------------------#
  588.  
  589. # Time in hours for a new member of clan to be a newer(Peon icon, cannot premote to Grunt)
  590. # default value 168(7 days). If set to 0, all new members could be promote in no time
  591. clan_newer_time = 0
  592.  
  593. # max members count allowed in a clan, set between 10 and 100, default 50.
  594. clan_max_members = 50
  595.  
  596. # Default clan channel status when create a clan, 1 for private, 0 for public
  597. clan_channel_default_private = 0
  598.  
  599. d2cs.conf
  600.  
  601. #################################################################################
  602. # d2cs.conf - Configuration file for the diablo2 game control server #
  603. #-------------------------------------------------------------------------------#
  604. # #
  605. # This file is an example configuration and may require modification to #
  606. # suit your needs or your site. Blank lines and lines starting with a "#" #
  607. # are ignored. Use quotes around values that contain spaces. #
  608. # #
  609. #################################################################################
  610.  
  611.  
  612. #################################################################################
  613. # Server Major Settings #
  614. #-------------------------------------------------------------------------------#
  615. # #
  616. # Your realm server name #
  617. # Here you put the value of the first column from the realm line in realm.conf
  618. # Example, if you have the line
  619. # "MyRealm" "My Super Realm" <someIP>:6113
  620. # in realm.conf then here you put realmname = "MyRealm"
  621. realmname = D2CS
  622.  
  623. # This is a comma delimited list of hostnames that the server should
  624. # listen on. Generally, YOU DONT NEED TO TOUCH THIS but it might be useful
  625. # to make an internal-only server on a gateway machine for example. If the
  626. # list is not set or if it has a entry with no host component, the server will
  627. # bind to that port on all interfaces.
  628. # d2cs default listening port is 6113
  629. # WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
  630. servaddrs = 0.0.0.0:6113
  631.  
  632. # This is a comma delimited list of game servers. Put here the IPs
  633. # (without ports) of the machines running d2gs. If you run d2gs on the same
  634. # machine as d2cs you put the IP of that machine here.
  635. # Example: gameservlist = 192.168.1.10
  636. # (if you have a d2gs running on a machine with the IP 192.168.1.10)
  637. #
  638. # YOU MUST CHANGE THIS OR D2CS WON'T WORK PROPERLY
  639. #
  640. # WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
  641. gameservlist = 10.0.0.3
  642.  
  643. # Put here the address and port of the machine running bnetd (or pvpgn.exe).
  644. # If you run d2cs on the same machine as bnetd (or pvpgn.exe) then here you
  645. # put the IP of that machine.
  646. #
  647. # YOU MUST CHANGE THIS OR D2CS WON'T WORK PROPERLY
  648. #
  649. # bnetd default listening port is 6112
  650. # WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
  651. bnetdaddr = 10.0.0.3:6112
  652.  
  653. # Set this to the maximum number of concurrent connections allowed on
  654. # this server. DO NOT TOUCH UNLESS STRICTLY NECESSARY!
  655. max_connections = 1000
  656.  
  657. # This sets the realm to Classic or LOD or Both
  658. # Classic = 0
  659. # LOD = 1
  660. # Both = 2 (default)
  661. lod_realm = 2
  662.  
  663. # This sets whether you can convert a clasic char to
  664. # an expansion char.
  665. # Allow Convert = 1
  666. # Don't allow Convert = 0
  667. allow_convert = 0
  668.  
  669. # here u can enter the symbols allowed in accountnames (additional to
  670. # alphanumerical symbals which are always accepted). please note that
  671. # it is absolutly mandatory that u set up the same symbols here as in
  672. # bnetd.conf or else u wont be able to play D2 with some characters
  673. # (those whose symbols are allowed in bnetd.conf but not here)
  674. # same warnings as in bnetd.conf apply here - be warned - and just
  675. # change something if you know what you are doing
  676. #default setting is "-_[]"
  677. account_allowed_symbols = "-_[]"
  678.  
  679. # #
  680. #################################################################################
  681.  
  682. #################################################################################
  683. # Message logs #
  684. #-------------------------------------------------------------------------------#
  685. # Multiple log levels can be defined by connecting them with a comma (,)
  686. # Available loglevels are:
  687. # none
  688. # trace
  689. # debug
  690. # info
  691. # warn
  692. # error
  693. # fatal
  694. #loglevels = fatal,error,warn,info
  695. loglevels = fatal,error,warn,info,debug,trace
  696.  
  697. # #
  698. #################################################################################
  699.  
  700. #################################################################################
  701. # File and Path section #
  702. # Use absolute paths in these lines to avoid problems! #
  703. #-------------------------------------------------------------------------------#
  704. # #
  705. logfile = var\d2cs.log
  706. charsavedir = var\charsave
  707. charinfodir = var\charinfo
  708. bak_charsavedir = var\bak\charsave
  709. bak_charinfodir = var\bak\charinfo
  710. ladderdir = var\ladders
  711. newbiefile = files\newbie.save
  712. transfile = conf\address_translation.conf
  713. d2gsconffile = conf\d2server.ini
  714. # #
  715. #################################################################################
  716.  
  717. #################################################################################
  718. # Misc #
  719. #-------------------------------------------------------------------------------#
  720. # #
  721. # Message Of The Day
  722. motd = "No Message Of The Day Set"
  723.  
  724. # Set to non-zero to allow creation of new realm character
  725. allow_newchar = 1
  726.  
  727. # Do you want d2cs to check client for multilogin for security reason?
  728. check_multilogin = 0
  729.  
  730. # Maxinum number of character per account
  731. # Max allowed value is 18 (enforced by server)
  732. maxchar = 8
  733.  
  734. # Character sorting. Options are: level, mtime, name, none. (none assumed if
  735. # not specified).
  736. #charlist_sort = "none"
  737.  
  738. # Do we need ascending or descending order for charlist?
  739. #charlist_sort_order = "ASC"
  740.  
  741. # Maxinum number of games will be shown in join game list
  742. # Zero = infinite
  743. maxgamelist = 20
  744.  
  745. # Set to non-zero to allow show all games with difficulty < character difficulty
  746. # Otherwise, only game with difficulty = character difficulty will be shown
  747. gamelist_showall = 0
  748.  
  749. # Maxinum time in seconds that a user can idle
  750. # Zero = infinite
  751. idletime = 3600
  752.  
  753. # Amount of time to delay shutting down server in seconds.
  754. shutdown_delay = 300
  755.  
  756. # Amount of time delay period is decremented by either a SIGTERM or SIGINT
  757. # (control-c) signal in seconds.
  758. shutdown_decr = 60
  759. #
  760. #################################################################################
  761.  
  762.  
  763. #################################################################################
  764. # Internal System Settings #
  765. # You may just ignore them and use the default value #
  766. #-------------------------------------------------------------------------------#
  767. #
  768. # How often will the server purge all list to clean unused data (in seconds)
  769. listpurgeinterval = 300
  770.  
  771. # How often will the server check game queues (in seconds)
  772. gqcheckinterval = 60
  773.  
  774. # How often will the server retry to connect to bnetd
  775. # when connection lost (in seconds)
  776. s2s_retryinterval = 10
  777.  
  778. # How long time the s2s connection will timeout
  779. s2s_timeout = 10
  780.  
  781. # How often the server will check server queues for expired data
  782. sq_checkinterval = 300
  783.  
  784. # How long time will a server queue data expire
  785. sq_timeout = 300
  786.  
  787. # Game serer binary files checksum, use zero to skip this checking
  788. d2gs_checksum = 0
  789.  
  790. # Game server version, use zero to skip this checking
  791. d2gs_version = 0
  792.  
  793. # Game server password
  794. d2gs_password = ""
  795.  
  796. # Maxinum number of second that a game will be shown on list( zero = infinite )
  797. game_maxlifetime = 0
  798.  
  799. # A game will be automatically destroied after how long time idle
  800. max_game_idletime = 0
  801.  
  802. # Allow Limitation created game with password, player number or level limit?
  803. allow_gamelimit = 1
  804.  
  805. # Ladder refresh time
  806. ladder_refresh_interval = 3600
  807.  
  808. # server to server connection max idle time in seconds
  809. s2s_idletime = 300
  810.  
  811. # server to server connection keepalive interval
  812. s2s_keepalive_interval = 60
  813.  
  814. # all connection timeout check interval
  815. timeout_checkinterval = 60
  816.  
  817. # game server restart interval
  818. # when sending SIGUSR2 signal to your d2cs this issues a restart
  819. # of all connected d2gs after d2gs_restart_delay seconds
  820. d2gs_restart_delay = 300
  821.  
  822. # ladder start time
  823. # format: yyyy-mm-dd hh:mm:ss
  824. # be carefull:
  825. # all chars created before this date will revert to non-ladder chars
  826. ladder_start_time = ""
  827.  
  828. # number of days before a char expires (default 0=unlimited)
  829. char_expire_day = 0
  830.  
  831. #
  832. #################################################################################
  833.  
  834. d2dbs.conf:
  835.  
  836. #################################################################################
  837. # d2dbs.conf - Configuration file for the Diablo2 Game database server #
  838. #-------------------------------------------------------------------------------#
  839. # #
  840. # This file is an example configuration and may require modification to #
  841. # suit your needs or your site. Blank lines and lines starting with a "#" #
  842. # are ignored. Use quotes around values that contain spaces. #
  843. # #
  844. #################################################################################
  845.  
  846. #################################################################################
  847. # Server Major Settings #
  848. #-------------------------------------------------------------------------------#
  849. # This is a comma delimited list of hostnames that the server should
  850. # listen on. Generally, YOU DONT NEED TO TOUCH THIS but it might be useful
  851. # to make an internal-only server on a gateway machine for example. If the
  852. # list is not set or if it has a entry with no host component, the server will
  853. # bind to that port on all interfaces.
  854. # d2dbs default listening port is 6114
  855. # WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
  856. servaddrs = 0.0.0.0:6114
  857.  
  858. # Put here EXACTLY the same thing you put in d2cs.conf gameservlist setting.
  859. # For more information about this setting consult the d2cs.conf comments
  860. # above it.
  861. #
  862. # YOU MUST CHANGE THIS OR D2DBS WON'T WORK PROPERLY
  863. #
  864. # WARNING!! DO NOT USE "127.0.0.1" or "localhost" !!!
  865. gameservlist = 10.0.0.3
  866.  
  867. # #
  868. #################################################################################
  869.  
  870. #################################################################################
  871. # Message logs #
  872. #-------------------------------------------------------------------------------#
  873. # Multiple log levels can be defined by connecting them with a comma (,)
  874. # Available loglevels are:
  875. # none
  876. # trace
  877. # debug
  878. # info
  879. # warn
  880. # error
  881. # fatal
  882. #loglevels = fatal,error,warn,info
  883. loglevels = fatal,error,warn,info,debug,trace
  884.  
  885. # #
  886. #################################################################################
  887.  
  888. #################################################################################
  889. # File and Path section #
  890. # Use absolute paths in these lines to avoid problems! #
  891. #-------------------------------------------------------------------------------#
  892. logfile = var\d2dbs.log
  893. logfile-gs = var\d2dbs-gs.log
  894. charsavedir = var\charsave
  895. charinfodir = var\charinfo
  896. ladderdir = var\ladders
  897. bak_charsavedir = var\bak\charsave
  898. bak_charinfodir = var\bak\charinfo
  899. # #
  900. #################################################################################
  901.  
  902. #################################################################################
  903. # Misc #
  904. #-------------------------------------------------------------------------------#
  905. # #
  906. # Ladder save interval
  907. laddersave_interval = 3600
  908.  
  909. # Time that allow characters create after it insert into ladder
  910. # These code should be rewritted to support string formmated time
  911. ladderinit_time = 0
  912.  
  913. # create extra ladder file in XML format that can be parsed more easy
  914. # 0 = turn extra output off (default)
  915. # 1 = turn on the XML output
  916. XML_ladder_output = 0
  917.  
  918. # Amount of time to delay shutting down server in seconds.
  919. shutdown_delay = 360
  920.  
  921. # Amount of time delay period is decremented by either a SIGTERM or SIGINT
  922. # (control-c) signal in seconds.
  923. shutdown_decr = 60
  924.  
  925. # connection max idle time in seconds
  926. idletime = 300
  927.  
  928. # connection keep alive interval
  929. keepalive_interval = 60
  930.  
  931. # connection time out check interval
  932. timeout_checkinterval = 60
  933.  
  934. # experience threshold, minimum experience needed to register on the ladder
  935. ladderupdate_threshold = 0
  936.  
  937. # What chars will be added to ladder?
  938. # 0 = ladder and non-ladder chars
  939. # 1 = only ladder chars
  940. ladder_chars_only = 1
  941.  
  942. # This setting activates a workaround for the well known "Lvl 100" bug.
  943. # It should be activated for mods where the max level is greater than 99.
  944. # Activating this should work for mods with any max level
  945. # If level is greater than 255, it will be set to 255
  946. # 0 = deactivated
  947. # 1 = activated
  948. difficulty_hack = 0
  949.  
  950. # #
  951. #################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement