From: sbkelley Date: Mon, 1 Jun 2026 21:00:32 +0000 (-0400) Subject: Add 'variables' to dgamelaunch.conf X-Git-Tag: v1.6.1-roc-dev~5^2~2 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=0c7a8021c5ff31ad41980dba84471f3b67340b54;p=dgamelaunch Add 'variables' to dgamelaunch.conf --- diff --git a/examples/dgamelaunch.conf b/examples/dgamelaunch.conf index 187d526..89f2924 100644 --- a/examples/dgamelaunch.conf +++ b/examples/dgamelaunch.conf @@ -41,10 +41,10 @@ maxnicklen = 10 # ] # Path to a prepared chroot jail. -chroot_path = "/opt/nethack/nethack.alt.org/" +chroot_path = "(:chroot:)" # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc -dglroot = "/dgldir/" +dglroot = "(:var:)/" # Strings to be replaced in every banner # you can have either direct string replacements, like @@ -63,7 +63,7 @@ bannervars = [ "$MOTDTIME" = "2011.10.08", # - $VERSION replaced with "dgamelaunch v" + dgl version number. # - $USERNAME replaced with logged-in user's name, or with "[Anonymous]" # - $INCLUDE(filename) the named file will be inserted here. -banner = "/dgl-banner" +banner = "(:menudir:)/dgl-banner" # The following two options are fairly insecure. They will force us to # load the password/group database into memory while still having root @@ -203,7 +203,7 @@ filemode = "0666" # First, the menu shown to anonymous user: menu["mainmenu_anon"] { - bannerfile = "dgl_menu_main_anon.txt" + bannerfile = "(:menudir:)/dgl_menu_main_anon.txt" cursor = (5,18) commands["l"] = ask_login commands["r"] = ask_register @@ -227,7 +227,7 @@ menu["mainmenu_user"] { # "r" (reverse) or "d" (dim), # or both color number and attribute characters, separated by colon. # Empty param resets color and attributes to default. - bannerfile = "dgl_menu_main_user.txt" + bannerfile = "(:menudir:)dgl_menu_main_user.txt" # after which cursor is moved to this location # if cursor-definition is missing, the cursor is put # to the end of the last line of the banner. @@ -238,7 +238,7 @@ menu["mainmenu_user"] { commands["c"] = chpasswd commands["e"] = chmail commands["w"] = watch_menu - commands["o"] = ifnxcp "/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc", + commands["o"] = ifnxcp "(:etc:)/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc", exec "/bin/virus" "%ruserdata/%n/%n.nh343rc" commands["p"] = play_game "NH343" commands["q"] = quit @@ -246,7 +246,7 @@ menu["mainmenu_user"] { # this menu is shown when user presses '?' in the watching menu menu["watchmenu_help"] { - bannerfile = "dgl_menu_watchmenu_help.txt" + bannerfile = "(:menudir:)dgl_menu_watchmenu_help.txt" commands["qQ "] = return } @@ -381,7 +381,7 @@ DEFINE { game_args = "/nh343/nethack", "-u", "%n" spooldir = "/mail/" - rc_template = "/dgl-default-rcfile.nh343" + rc_template = "(:etc:)/dgl-default-rcfile.nh343" rc_fmt = "%ruserdata/%n/%n.nh343rc" @@ -394,7 +394,7 @@ DEFINE { # back up savefile - commands = cp "/nh343/var/save/%u%n.gz" "/nh343/var/save/%u%n.gz.bak", + commands = cp "(:playground:)/save/%u%n.gz" "(:playground:)/save/%u%n.gz.bak", # set NETHACKOPTIONS to point to the rcfile setenv "NETHACKOPTIONS" "@%ruserdata/%n/%n.nh343rc", # set up nethack mail stuff, assuming it's compiled with it...