Advertisement
Guest User

dgl cong hf 24APR2017

a guest
Apr 24th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 21.66 KB | None | 0 0
  1. # This is a sample dgamelaunch configuration file. Only bash-style comments
  2. # are allowed, such as this. Each configuration option will be explained
  3. # along with its default value.
  4.  
  5.  
  6. # Global config variables:
  7.  
  8.  
  9. # Max amount of registered users to allow. Has no effect if dgl was
  10. # compiled with SQLite
  11. maxusers = 64000
  12.  
  13. # Allow registration of new nicks? (yes or no)
  14. allow_new_nicks = yes
  15.  
  16. # Max length for newly registered nicks. Must be less than 20.
  17. # By default, NetHack only stores the first 10 chars of a name into
  18. # the record/logfile.
  19. maxnicklen = 16
  20.  
  21. # Set the default watching-screen sorting mode. Can be one of
  22. # "username", "game", "windowsize", "starttime" or "idletime".
  23. # "username" is the default.
  24. #sortmode = "username"
  25.  
  26. # Set the columns displayed in the watching-screen. Each column definition
  27. # must have four elements as:
  28. #   [ "<display title>", "<sortname>", <Screen column>, "<printf format>" ]
  29. #
  30. # <sortname> may be "unsorted", "username", "game", "windowsize", "starttime",
  31. # "duration", "idletime", or (if shmem is enabled) "watchers".
  32. #
  33. # watch_columns = [ ["", "", 1, "%s)"],
  34. #                   ["User", "username", 4, "%-15s"],
  35. #                   ["Game", "game", 21, "%-11s"],
  36. #                   ["Term", "windowsize", 34, "%s"],
  37. #                   ["Idle", "idletime", 43, "%-10s"],
  38. #                   ["Watchers", "watchers", 55, "%5s"],
  39. #                   ["Started", "starttime", 65, "%s"]
  40. #                 ]
  41.  
  42. watch_columns = [ ["", "", 1, "%s)"],
  43.                   ["Username", "username", 4, "%-15s"],
  44.                   ["Game", "game", 21, "%-5s"],
  45.                   [" Size", "windowsize", 31, "%s"],
  46.                   ["Start date & time", "starttime", 40, "%s"],
  47.                   ["Idle", "idletime", 61, "%-8s"],
  48.                   [" W", "watchers", 68, "%2s"],
  49.                   ["Extra", "extrainfo", 71, "%s"]
  50.                 ]
  51.  
  52. # Path to a prepared chroot jail.
  53. chroot_path = "/opt/nethack/hardfought.org/"
  54.  
  55. # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc
  56. dglroot = "/dgldir/"
  57.  
  58. # Strings to be replaced in every banner
  59. # you can have either direct string replacements, like
  60. # "$FOO" = "BAR", or you can get the server time with
  61. # "$FOO" = timeformat("%F %T")
  62. # for the timeformat parameter string format, see man strftime
  63. bannervars = [ "$MOTDTIME" = "2011.10.08",
  64.            "$SERVERID" = "$ATTR(14)Hardfought - a public NetHack server$ATTR()",
  65.                "$SERVADDR" = "$ATTR(14)https://www.hardfought.org/$ATTR()",
  66.            "$DATETIME" = timeformat("%F %T"),
  67.                "$RSA"      = "$ATTR(12)2048 RSA 22:88:b9:45:ff:30:a3:8e:12:70:af:90:41:3d:5b:a8$ATTR()",
  68.                "$EDIT"     = "Editor options: use number column for rnano, symbol for virus$ATTR()",
  69.                "$IRCID"    = "$ATTR(10)join us at #hardfought on chat.freenode.net$ATTR()",
  70.            "$USER"     = "$ATTR(12)$USERNAME$ATTR()"   
  71.          ]
  72.  
  73. # From inside the jail, location of a banner file, which is
  74. # shown in submenus that cannot be defined separately.
  75. # Some string substitution is done for every banner file contents:
  76. # - bannervars from above
  77. # - $VERSION replaced with "dgamelaunch v" + dgl version number.
  78. # - $USERNAME replaced with logged-in user's name, or with "[Anonymous]"
  79. # - $INCLUDE(filename) the named file will be inserted here.
  80. banner = "/dgl-banner"
  81.  
  82. # The following two options are fairly insecure. They will force us to
  83. # load the password/group database into memory while still having root
  84. # privileges. Replace them with shed_uid/shed_gid entries as soon as
  85. # possible if you decide to use them. dgamelaunch will inform you of
  86. # the uids/gids corresponding to your choices when it loads.
  87. #
  88. # Note that shed_uid and shed_gid will always take precedence over
  89. # shed_user and shed_group if they are specified.
  90.  
  91. # shed_user: username to shed privileges to
  92. #shed_user = "games"
  93. # shed_group: group name to shed privileges to
  94. #shed_group = "games"
  95.  
  96. # Preferably, you may use the respective gids/uids. This is for Debian:
  97. shed_uid = 5
  98. shed_gid = 60
  99.  
  100. # Locale. Leaving this out, dgamelaunch will not explicitly set locale.
  101. locale = "en_US.UTF-8"
  102.  
  103. # Default TERM, used if the user's $TERM is unknown.
  104. # If undefined, dgamelaunch will just terminate in that case.
  105. default_term = "xterm"
  106.  
  107. # Should dgl send select-UTF8-charset escape code? (that is: ESC % G)
  108. # default is no.
  109. #utf8esc = yes
  110.  
  111. # Should dgl allow XON/XOFF? Default is "yes", meaning "don't touch it".
  112. # "no" disables XON/XOFF
  113. #flowcontrol = no
  114.  
  115. # Maximum time in seconds user can idle in the dgamelaunch menus
  116. # before dgl exits. Default value is 0, which disables the idling timer.
  117. # Does not apply to external programs or config editors.
  118. # For setting game idle time, use max_idle_time in the game DEFINE.
  119. # menu_max_idle_time = 1024
  120.  
  121. # Passwd refers to the file that stores the user database.
  122. # The default passwd file is "/dgl-login" for flat-text database, and for
  123. # sqlite, whatever value was defined for the sqlite database at compile time.
  124. # This is also used for the shared memory key, if shmem is enabled at compile
  125. # time.
  126. #passwd = "/dgl-login"
  127.  
  128. # Lockfile is used only when dgl was compiled without sqlite.
  129. #lockfile = "/dgl-lock"
  130.  
  131. #
  132. # define some commands that are run when something happens. format is
  133. # commands [ <time> ] = <command> ...
  134. #
  135. # <time> can be one of:
  136. #   dglstart  = when someone telnets in
  137. #   login     = when user has logged in
  138. #   register  = right after a new user is registered
  139. #   gamestart = just before a game is started
  140. #   gameend   = after a game ends (see also per-game "postcommand" define)
  141. #
  142. # <command> is:
  143. #   mkdir "foo"        = create a directory "foo"
  144. #   chdir "foo"        = change current work dir to "foo"
  145. #   cp "foo" "bar"     = copy file "foo" to "bar", overwriting previous "bar"
  146. #   ifnxcp "foo" "bar" = copy file "foo" to "bar", if "bar" doesn't exist
  147. #   unlink "foo"       = delete file "foo"
  148. #   setenv "foo" "bar" = set environment variable "foo" to "bar"
  149. #   exec "foo" "bar"   = execute "foo" with "bar" as it's param
  150. #   rawprint "foo"     = output string "foo"
  151. #   chpasswd           = do the change password prompting, if logged in
  152. #   chmail             = do the change email prompting, if logged in
  153. #   watch_menu         = go to the watching menu
  154. #   quit               = quit dgl
  155. #   ask_login          = do the login prompting, if not logged in
  156. #   ask_register       = do register new user prompting, if not logged in and
  157. #                        registration of new nicks is allowed.
  158. #   play_game "foo"    = start game which has the short name "foo"
  159. #                        (user must be logged in)
  160. #   play_if_exist "foo" "file" = start game "foo", if file "file" exists.
  161. #   submenu "foo"      = go to submenu "foo"
  162. #   return             = return from submenu
  163. #
  164. #  NOTE: edit_options-command was removed. use ifnxcp and exec to simulate it.
  165. #
  166. # The commands will be done inside the chroot and with the uid and gid
  167. # defined above.
  168. # Parameters to the commands are subject to variable substitution:
  169. #   %r = dglroot, as defined above
  170. #   %n = user nick, if user is logged in
  171. #   %N = first character of user name, if user is logged in
  172. #   %u = shed_uid, as defined above, but numeric
  173. #   %g = game name, if user has selected a game.
  174. #   %s = short game name, if user has selected a game.
  175. #   %t = ttyrec path & filename of the last game played.
  176. #
  177. # Also some escape codes:
  178. #   \\ = backslash
  179. #   \a = bell
  180. #   \b = backspace
  181. #   \e = escape character
  182. #   \f = form feed
  183. #   \n = newline
  184. #   \r = carriage return
  185. #   \t = tab
  186. #   \v = vertical tab
  187. #
  188. # eg. commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo"
  189. #
  190.  
  191. # Change the terminal title: (assuming terminals support the escape code)
  192. #commands[dglstart] = rawprint "\e]2;nethack.alt.org\a"
  193.  
  194. # create the user's dirs when they register
  195. commands[register] = mkdir "%ruserdata/%N",
  196.              mkdir "%ruserdata/%N/%n"
  197.  
  198. commands[login] = mkdir "%ruserdata/%N",
  199.           mkdir "%ruserdata/%N/%n"
  200.  
  201. # see each game variant section for gamestart commands
  202. # commands[gamestart] = mkdir "%ruserdata/%N/%n/%s",
  203.               #mkdir "%ruserdata/%N/%n/%s/dumplog",
  204.                       #mkdir "%ruserdata/%N/%n/%s/ttyrec"
  205.                       #ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src"
  206.  
  207. # file mode for when commands copy files.
  208. # readable and writable by all. you could use eg. "0644" to be more secure.
  209. filemode = "0666"
  210.  
  211.  
  212. # Define the main menus.
  213. # You _must_ define "mainmenu_anon" and "mainmenu_user".
  214. # $VERSION and $SERVERID will be replaced, as per the bannerfile above.
  215.  
  216. # First, the menu shown to anonymous user:
  217. menu["mainmenu_anon"] {
  218.         bannerfile = "dgl_menu_main_anon.txt"
  219.         cursor = (5,12)
  220.         commands["l"] = ask_login
  221.         commands["r"] = ask_register
  222.     commands["s"] = submenu "server_info"
  223.         commands["w"] = watch_menu
  224.         commands["q"] = quit
  225. }
  226.  
  227. # Then the menu shown when the user has logged in:
  228. # $USERNAME in here will be replaced with the user name.
  229. menu["mainmenu_user"] {
  230. # contents of this file are written to screen.
  231. # the file must be inside the chroot.
  232. # Some string subsitutions can be done in the file:
  233. # $INCLUDE(filename) =  includes the file to this file.
  234. # String substitutions defined in bannervars-section above.
  235. # $VERSION           =  dgamelaunch version
  236. # $USERNAME          =  user name (or [Anonymous] if not logged in)
  237. # $ATTR(params)      =  change text color and attributes.
  238. #        params can be either number (to set the text color),
  239. #    one, or any of "b" (bold), "s" (standout), "u" (underline),
  240. #    "r" (reverse) or "d" (dim),
  241. #    or both color number and attribute characters, separated by colon.
  242. #    Empty param resets color and attributes to default.
  243.         bannerfile = "dgl_menu_main_user.txt"
  244. # after which cursor is moved to this location
  245. # if cursor-definition is missing, the cursor is put
  246. # to the end of the last line of the banner.
  247.         cursor = (5,22)
  248. # keys we accept. format is
  249. #  commands["string_of_keys"] = <commandlist>
  250. # for example, you could use commands["qQ"] = quit
  251.         commands["c"] = chpasswd
  252.         commands["e"] = chmail
  253.         commands["w"] = watch_menu
  254.         commands["1"] = mkdir "%ruserdata/%N/%n/nh343",
  255.                         ifnxcp "/dgl-default-rcfile.nh343" "%ruserdata/%N/%n/nh343/%n.nh343rc",
  256.                         exec "/bin/rnano" "%ruserdata/%N/%n/nh343/%n.nh343rc"
  257.     commands["!"] = mkdir "%ruserdata/%N/%n/nh343",
  258.                         ifnxcp "/dgl-default-rcfile.nh343" "%ruserdata/%N/%n/nh343/%n.nh343rc",
  259.                         exec "/bin/virus" "%ruserdata/%N/%n/nh343/%n.nh343rc"
  260.         commands["2"] = mkdir "%ruserdata/%N/%n/nhdev",
  261.                         ifnxcp "/dgl-default-rcfile.nhdev" "%ruserdata/%N/%n/nhdev/%n.nhdevrc",
  262.                         exec "/bin/rnano" "%ruserdata/%N/%n/nhdev/%n.nhdevrc"
  263.         commands["@"] = mkdir "%ruserdata/%N/%n/nhdev",
  264.                         ifnxcp "/dgl-default-rcfile.nhdev" "%ruserdata/%N/%n/nhdev/%n.nhdevrc",
  265.                         exec "/bin/virus" "%ruserdata/%N/%n/nhdev/%n.nhdevrc"
  266.         commands["3"] = mkdir "%ruserdata/%N/%n/gh",
  267.                         ifnxcp "/dgl-default-rcfile.gh" "%ruserdata/%N/%n/gh/%n.ghrc",
  268.                         exec "/bin/rnano" "%ruserdata/%N/%n/gh/%n.ghrc"
  269.         commands["#"] = mkdir "%ruserdata/%N/%n/gh",
  270.                         ifnxcp "/dgl-default-rcfile.gh" "%ruserdata/%N/%n/gh/%n.ghrc",
  271.                         exec "/bin/virus" "%ruserdata/%N/%n/gh/%n.ghrc"
  272.         commands["4"] = mkdir "%ruserdata/%N/%n/un531",
  273.                         ifnxcp "/dgl-default-rcfile.un531" "%ruserdata/%N/%n/un531/%n.un531",
  274.                         exec "/bin/rnano" "%ruserdata/%N/%n/un531/%n.un531rc"
  275.         commands["$"] = mkdir "%ruserdata/%N/%n/un531",
  276.                         ifnxcp "/dgl-default-rcfile.un531" "%ruserdata/%N/%n/un531/%n.un531",
  277.                         exec "/bin/virus" "%ruserdata/%N/%n/un531/%n.un531rc"
  278.         commands["5"] = mkdir "%ruserdata/%N/%n/dnethack",
  279.                         ifnxcp "/dgl-default-rcfile.dnethack" "%ruserdata/%N/%n/dnethack/%n.dnethack",
  280.                         exec "/bin/rnano" "%ruserdata/%N/%n/dnethack/%n.dnethackrc"
  281.         commands["%"] = mkdir "%ruserdata/%N/%n/dnethack",
  282.                         ifnxcp "/dgl-default-rcfile.dnethack" "%ruserdata/%N/%n/dnethack/%n.dnethack",
  283.                         exec "/bin/virus" "%ruserdata/%N/%n/dnethack/%n.dnethackrc"
  284.         commands["p"] = play_game "nh343"
  285.         commands["v"] = play_game "nhdev"
  286.         commands["g"] = play_game "gh"
  287.         commands["u"] = play_game "un531"
  288.     commands["i"] = play_game "fh"
  289.     commands["f"] = play_game "4k"
  290.     commands["d"] = play_game "dnethack"
  291.     commands["s"] = submenu "server_info"
  292.         commands["q"] = quit
  293. }
  294.  
  295. # this menu is shown when user presses '?' in the watching menu
  296. menu["watchmenu_help"] {
  297.     bannerfile = "dgl_menu_watchmenu_help.txt"
  298.         cursor = (5,20)
  299.     commands["qQ"] = return
  300. }
  301.  
  302. menu["server_info"] {
  303.     bannerfile = "dgl_menu_server_info.txt"
  304.         cursor = (5,21)
  305.     commands["qQ"] = return
  306. }
  307.  
  308.  
  309. # Next, we'll define one game's data:
  310.  
  311. #
  312. # NetHack 3.4.3
  313. #
  314.  
  315.  
  316. DEFINE {
  317.   game_path = "/nh343/nethack"
  318.   game_name = "nethack"
  319.   short_name = "nh343"
  320.  
  321.   game_args = "/nh343/nethack", "-u", "%n"
  322.  
  323.   spooldir = "/mail/"
  324.  
  325.   rc_template = "/dgl-default-rcfile.nh343"
  326.  
  327.   rc_fmt = "%ruserdata/%N/%n/%s/%n.nh343rc"
  328.  
  329.   inprogressdir = "%rinprogress-nh343/"
  330.   extra_info_file = "%rextrainfo-nh343/%n.extrainfo"
  331.  
  332.   max_idle_time = 3600
  333.  
  334. # The place where ttyrecs are stored for this game.
  335. # If this is not defined, ttyrecs are not saved for this game.
  336. # Leaving this undefined also means the games cannot be spectated.
  337.   ttyrecdir = "%ruserdata/%N/%n/%s/ttyrec/"
  338.  
  339.  
  340.   # back up savefile
  341.   commands = cp "/nh343/var/save/%u%n.gz" "/nh343/var/save/%u%n.gz.bak",
  342.              mkdir "%ruserdata/%N/%n/%s",
  343.              mkdir "%ruserdata/%N/%n/%s/dumplog",
  344.              mkdir "%ruserdata/%N/%n/%s/ttyrec",
  345.              ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src",
  346.  
  347.   # set NETHACKOPTIONS to point to the rcfile
  348.              setenv "NETHACKOPTIONS" "@%ruserdata/%N/%n/%s/%n.nh343rc",
  349.   # set up nethack mail stuff, assuming it's compiled with it...
  350.              setenv "MAIL" "/mail/%n",
  351.              setenv "SIMPLEMAIL" "1",
  352.   # don't let the mail file grow
  353.              unlink "/mail/%n"
  354. }
  355.  
  356.  
  357. #
  358. # NetHack 3.6.1-dev
  359. #
  360.  
  361.  
  362. DEFINE {
  363.   game_path = "/nhdev/nethack"
  364.   game_name = "nethack"
  365.   short_name = "nhdev"
  366.  
  367.   game_args = "/nhdev/nethack", "-u", "%n"
  368.  
  369.   spooldir = "/mail/"
  370.  
  371.   rc_template = "/dgl-default-rcfile.nhdev"
  372.  
  373.   rc_fmt = "%ruserdata/%N/%n/%s/%n.nhdevrc"
  374.  
  375.   inprogressdir = "%rinprogress-nhdev/"
  376.   extra_info_file = "%rextrainfo-nhdev/%n.extrainfo"
  377.  
  378.   max_idle_time = 3600
  379.  
  380. # The place where ttyrecs are stored for this game.
  381. # If this is not defined, ttyrecs are not saved for this game.
  382. # Leaving this undefined also means the games cannot be spectated.
  383.   ttyrecdir = "%ruserdata/%N/%n/%s/ttyrec/"
  384.  
  385.  
  386.   # back up savefile
  387.   commands = cp "/nhdev/var/save/%u%n.gz" "/nhdev/var/save/%u%n.gz.bak",
  388.              mkdir "%ruserdata/%N/%n/%s",
  389.              mkdir "%ruserdata/%N/%n/%s/dumplog",
  390.              mkdir "%ruserdata/%N/%n/%s/ttyrec",
  391.              ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src",
  392.  
  393.   # set NETHACKOPTIONS to point to the rcfile
  394.              setenv "NETHACKOPTIONS" "@%ruserdata/%N/%n/%s/%n.nhdevrc",
  395.   # set up nethack mail stuff, assuming it's compiled with it...
  396.              setenv "MAIL" "/mail/%n",
  397.              setenv "SIMPLEMAIL" "1",
  398.   # don't let the mail file grow
  399.              unlink "/mail/%n"
  400. }
  401.  
  402.  
  403. #
  404. # GruntHack
  405. #
  406.  
  407.  
  408. DEFINE {
  409.   game_path = "/gh/grunthack"
  410.   game_name = "grunthack"
  411.   short_name = "gh"
  412.  
  413.   game_args = "/gh/grunthack", "-u", "%n"
  414.  
  415.   spooldir = "/mail/"
  416.   rc_template = "/dgl-default-rcfile.gh"
  417.  
  418.   rc_fmt = "%ruserdata/%N/%n/%s/%n.ghrc"
  419.  
  420.   inprogressdir = "%rinprogress-gh/"
  421.   extra_info_file = "%rextrainfo-gh/%n.extrainfo"
  422.  
  423.   max_idle_time = 3600
  424.  
  425. # The place where ttyrecs are stored for this game.
  426. # If this is not defined, ttyrecs are not saved for this game.
  427. # Leaving this undefined also means the games cannot be spectated.
  428.   ttyrecdir = "%ruserdata/%N/%n/%s/ttyrec/"
  429.  
  430.   # back up savefile
  431.   commands = cp "/gh/var/save/%u%n.gz" "/gh/var/save/%u%n.gz.bak",
  432.              mkdir "%ruserdata/%N/%n/%s",
  433.              mkdir "%ruserdata/%N/%n/%s/dumplog",
  434.              mkdir "%ruserdata/%N/%n/%s/ttyrec",
  435.              ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src",
  436.  
  437.   # set NETHACKOPTIONS to point to the rcfile
  438.              setenv "NETHACKOPTIONS" "@%ruserdata/%N/%n/%s/%n.ghrc",
  439.   # set up nethack mail stuff, assuming it's compiled with it...
  440.              setenv "MAIL" "/mail/%n",
  441.              setenv "SIMPLEMAIL" "1",
  442.   # don't let the mail file grow
  443.              unlink "/mail/%n"
  444. }
  445.  
  446.  
  447. #
  448. # UnNetHack 5.3.1
  449. #
  450.  
  451.  
  452. DEFINE {
  453.   game_path = "/un531/unnethack"
  454.   game_name = "unnethack"
  455.   short_name = "un531"
  456.  
  457.   game_args = "/un531/unnethack", "-u", "%n"
  458.  
  459.   spooldir = "/mail/"
  460.   rc_template = "/dgl-default-rcfile.un531"
  461.  
  462.   rc_fmt = "%ruserdata/%N/%n/%s/%n.un531rc"
  463.  
  464.   inprogressdir = "%rinprogress-un531/"
  465.  
  466.   max_idle_time = 3600
  467.  
  468. # The place where ttyrecs are stored for this game. If this is not
  469. # defined, ttyrecs are not saved for this game. Leaving this undefined
  470. # also means the games cannot be spectated.
  471.   ttyrecdir = "%ruserdata/%N/%n/%s/ttyrec/"
  472.  
  473.   # back up savefile
  474.   commands = cp "/un531/var/save/%u%n.gz" "/un531/var/save/%u%n.gz.bak",
  475.              mkdir "%ruserdata/%N/%n/%s",
  476.              mkdir "%ruserdata/%N/%n/%s/dumplog",
  477.              mkdir "%ruserdata/%N/%n/%s/ttyrec",
  478.              ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src",
  479.  
  480.   # set NETHACKOPTIONS to point to the rcfile
  481.              setenv "NETHACKOPTIONS" "@%ruserdata/%N/%n/%s/%n.un531rc",
  482.   # set up nethack mail stuff, assuming it's compiled with it...
  483.              setenv "MAIL" "/mail/%n",
  484.              setenv "SIMPLEMAIL" "1",
  485.   # don't let the mail file grow
  486.              unlink "/mail/%n"
  487. }
  488.  
  489.  
  490. #
  491. # dNetHack
  492. #
  493.  
  494.  
  495. DEFINE {
  496.   game_path = "/dnethackdir/dnethack"
  497.   game_name = "dnethack"
  498.   short_name = "dnethack"
  499.  
  500.   game_args = "/dnethackdir/dnethack", "-u", "%n"
  501.  
  502.   spooldir = "/mail/"
  503.   rc_template = "/dgl-default-rcfile.dnethack"
  504.  
  505.   rc_fmt = "%ruserdata/%N/%n/%s/%n.dnethackrc"
  506.  
  507.   inprogressdir = "%rinprogress-dnh/"
  508.   extra_info_file = "%rextrainfo-dnh/%n.extrainfo"
  509.  
  510.   max_idle_time = 3600
  511.  
  512. # The place where ttyrecs are stored for this game.
  513. # If this is not defined, ttyrecs are not saved for this game.
  514. # Leaving this undefined also means the games cannot be spectated.
  515.   ttyrecdir = "%ruserdata/%N/%n/%s/ttyrec/"
  516.  
  517.   # back up savefile
  518.   commands = cp "/dnethackdir/save/%u%n.gz" "/dnethackdir/save/%u%n.gz.bak",
  519.              mkdir "%ruserdata/%N/%n/%s",
  520.              mkdir "%ruserdata/%N/%n/%s/dumplog",
  521.              mkdir "%ruserdata/%N/%n/%s/ttyrec",
  522.              ifnxcp "/dgl-default-rcfile.%s" "%ruserdata/%N/%n/%s/%n.%src",
  523.  
  524.   # set NETHACKOPTIONS to point to the rcfile
  525.              setenv "NETHACKOPTIONS" "@%ruserdata/%N/%n/%s/%n.dnethackrc",
  526.   # set up nethack mail stuff, assuming it's compiled with it...
  527.              setenv "MAIL" "/mail/%n",
  528.              setenv "SIMPLEMAIL" "1",
  529.   # don't let the mail file grow
  530.              unlink "/mail/%n"
  531. }
  532.  
  533.  
  534.  
  535. # FIQhack
  536. #
  537.  
  538.  
  539. DEFINE {
  540.   game_path = "/fiqhackdir/fiqhack"
  541.   game_name = "fiqhack"
  542.   short_name = "fh"
  543.  
  544.   game_args = "/fiqhackdir/fiqhack", "-H", "/fiqhackdir/data", "-U", "%ruserdata/%N/%n/fiqhack"
  545.  
  546.   spooldir = "/mail/"
  547.   rc_template = "/dgl-default-rcfile.fh"
  548.  
  549.   rc_fmt = "%ruserdata/%N/%n/%g/%n.fhrc"
  550.  
  551.   inprogressdir = "%rinprogress-fh/"
  552.   extra_info_file = "%rextrainfo-fh/%n.extrainfo"
  553.  
  554.   max_idle_time = 3600
  555.  
  556. # The place where ttyrecs are stored for this game.
  557. # If this is not defined, ttyrecs are not saved for this game.
  558. # Leaving this undefined also means the games cannot be spectated.
  559.   ttyrecdir = "%ruserdata/%N/%n/%g/ttyrec/"
  560.  
  561.   # back up savefile
  562.   # commands = cp "/fiqhackdir/save/%u%n.gz" "/fiqhackdir/save/%u%n.gz.bak",
  563.   # set NETHACKOPTIONS to point to the rcfile
  564.   commands = setenv "NH4SERVERUSER" "%n",
  565.              mkdir "%ruserdata/%N/%n/%g",
  566.              mkdir "%ruserdata/%N/%n/%g/ttyrec",
  567.  
  568.   # set up nethack mail stuff, assuming it's compiled with it...
  569.               setenv "MAIL" "/mail/%n",
  570.               setenv "SIMPLEMAIL" "1",
  571.   # don't let the mail file grow
  572.               unlink "/mail/%n"
  573. }
  574.  
  575.  
  576. # Fourk
  577. #
  578.  
  579.  
  580. DEFINE {
  581.   game_path = "/fourkdir/nhfourk"
  582.   game_name = "nhfourk"
  583.   short_name = "4k"
  584.  
  585.   game_args = "/fourkdir/nhfourk", "-U", "%ruserdata/%N/%n/nhfourk"
  586.  
  587.   spooldir = "/mail/"
  588.   rc_template = "/dgl-default-rcfile.4k"
  589.  
  590.   rc_fmt = "%ruserdata/%N/%n/%g/%n.4krc"
  591.  
  592.   inprogressdir = "%rinprogress-4k/"
  593.   extra_info_file = "%rextrainfo-4k/%n.extrainfo"
  594.  
  595.   max_idle_time = 3600
  596.  
  597. # The place where ttyrecs are stored for this game.
  598. # If this is not defined, ttyrecs are not saved for this game.
  599. # Leaving this undefined also means the games cannot be spectated.
  600.   ttyrecdir = "%ruserdata/%N/%n/%g/ttyrec/"
  601.  
  602.   # back up savefile
  603.   # commands = cp "/fiqhackdir/save/%u%n.gz" "/fiqhackdir/save/%u%n.gz.bak",
  604.   # set NETHACKOPTIONS to point to the rcfile
  605.   commands = setenv "NH4SERVERUSER" "%n",
  606.              mkdir "%ruserdata/%N/%n/%g",
  607.              mkdir "%ruserdata/%N/%n/%g/ttyrec",
  608.  
  609.   # set up nethack mail stuff, assuming it's compiled with it...
  610.               setenv "MAIL" "/mail/%n",
  611.               setenv "SIMPLEMAIL" "1",
  612.   # don't let the mail file grow
  613.               unlink "/mail/%n"
  614. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement