Mercurial > hg > rlgallery-misc
annotate dgl/dgamelaunch.conf @ 14:9945b472aac2
Add dgamelaunch configuration to the project.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Sat, 15 Sep 2012 08:46:06 -0700 |
parents | |
children | f501c8dd6884 |
rev | line source |
---|---|
14
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
1 # rlgallery.org configuration file for dgamelaunch |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
2 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
3 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
4 # Global config variables: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
5 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
6 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
7 # Max amount of registered users to allow. Has no effect if dgl was |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
8 # compiled with SQLite |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
9 maxusers = 4096 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
10 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
11 # Allow registration of new nicks? (yes or no) |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
12 allow_new_nicks = yes |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
13 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
14 # Max length for newly registered nicks. Must be less than 20. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
15 # By default, NetHack only stores the first 10 chars of a name into |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
16 # the record/logfile. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
17 maxnicklen = 10 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
18 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
19 # Set the default watching-screen sorting mode. Can be one of |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
20 # "unsorted", "username" or "idletime". Unsorted is the default. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
21 sortmode = "username" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
22 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
23 # Path to a prepared chroot jail. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
24 chroot_path = "/var/dgl/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
25 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
26 # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
27 dglroot = "/dgldir/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
28 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
29 # Server ID string |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
30 server_id = "Roguelike Gallery - rlgallery.org" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
31 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
32 # From inside the jail, location of a banner file, the topmost line will be |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
33 # shown in submenus that cannot be defined separately. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
34 # Some string substitution is done for the file: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
35 # $VERSION replaced with "dgamelaunch v" + dgl version number. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
36 # $SERVERID replaced with the server_id string, as defined above. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
37 banner = "/dgldir/dgl-banner" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
38 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
39 # The following two options are fairly insecure. They will force us to |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
40 # load the password/group database into memory while still having root |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
41 # privileges. Replace them with shed_uid/shed_gid entries as soon as |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
42 # possible if you decide to use them. dgamelaunch will inform you of |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
43 # the uids/gids corresponding to your choices when it loads. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
44 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
45 # Note that shed_uid and shed_gid will always take precedence over |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
46 # shed_user and shed_group if they are specified. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
47 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
48 # shed_user: username to shed privileges to |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
49 #shed_user = "games" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
50 # shed_group: group name to shed privileges to |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
51 #shed_group = "games" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
52 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
53 # Preferably, you may use the respective gids/uids. This is for Debian: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
54 # Use the rodney account instead of games:games |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
55 shed_uid = 501 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
56 shed_gid = 501 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
57 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
58 # The defaults are usually just fine for this. passwd refers to the file |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
59 # that stores the user database, and lockfile is only used internally by |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
60 # dgamelaunch. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
61 # passwd doesn't matter if dgl was compiled with SQLite, as the name of |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
62 # the sqlite database will be defined at compile time. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
63 passwd = "/dgldir/dgl-login" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
64 lockfile = "/dgldir/dgl-lock" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
65 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
66 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
67 # define some commands that are run when something happens. format is |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
68 # commands [ <time> ] = <command> ... |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
69 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
70 # <time> can be one of: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
71 # dglstart = when someone telnets in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
72 # login = when user has logged in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
73 # register = right after a new user is registered |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
74 # gamestart = just before a game is started |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
75 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
76 # <command> is: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
77 # mkdir "foo" = create a directory "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
78 # chdir "foo" = change current work dir to "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
79 # cp "foo" "bar" = copy file "foo" to "bar", overwriting previous "bar" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
80 # ifnxcp "foo" "bar" = copy file "foo" to "bar", if "bar" doesn't exist |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
81 # unlink "foo" = delete file "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
82 # setenv "foo" "bar" = set environment variable "foo" to "bar" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
83 # exec "foo" "bar" = execute "foo" with "bar" as it's param |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
84 # chpasswd = do the change password prompting, if logged in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
85 # chmail = do the change email prompting, if logged in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
86 # watch_menu = go to the watching menu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
87 # quit = quit dgl |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
88 # ask_login = do the login prompting, if not logged in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
89 # ask_register = do register new user prompting, if not logged in and |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
90 # registration of new nicks is allowed. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
91 # edit_options "foo" = edit options for game which has the short name "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
92 # (user must be logged in) |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
93 # play_game "foo" = start game which has the short name "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
94 # (user must be logged in) |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
95 # submenu "foo" = go to submenu "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
96 # return = return from submenu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
97 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
98 # The commands will be done inside the chroot and with the uid and gid |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
99 # defined above. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
100 # Parameters to the commands are subject to variable substitution: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
101 # %r = dglroot, as defined above |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
102 # %n = user nick, if user is logged in |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
103 # %u = shed_uid, as defined above, but numeric |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
104 # %g = game name, if user has selected a game. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
105 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
106 # eg. commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
107 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
108 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
109 # create the user's dirs when they register |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
110 commands[register] = mkdir "%ruserdata/%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
111 mkdir "%rttyrec/%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
112 mkdir "%rttyrec/%n/rogue3", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
113 mkdir "%rttyrec/%n/rogue4", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
114 mkdir "%rttyrec/%n/rogue5", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
115 mkdir "%rttyrec/%n/srogue", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
116 mkdir "%rttyrec/%n/arogue5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
117 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
118 commands[login] = mkdir "%ruserdata/%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
119 mkdir "%rttyrec/%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
120 mkdir "%rttyrec/%n/rogue3", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
121 mkdir "%rttyrec/%n/rogue4", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
122 mkdir "%rttyrec/%n/rogue5", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
123 mkdir "%rttyrec/%n/srogue", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
124 mkdir "%rttyrec/%n/arogue5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
125 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
126 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
127 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
128 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
129 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
130 # Define the main menus. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
131 # You _must_ define "mainmenu_anon" and "mainmenu_user". |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
132 # $VERSION and $SERVERID will be replaced, as per the bannerfile above. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
133 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
134 # First, the menu shown to anonymous user: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
135 menu["mainmenu_anon"] { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
136 bannerfile = "/dgldir/dgl_menu_main_anon.txt" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
137 cursor = (5,18) |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
138 commands["l"] = ask_login |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
139 commands["r"] = ask_register |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
140 commands["w"] = watch_menu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
141 commands["q"] = quit |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
142 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
143 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
144 # Then the menu shown when the user has logged in: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
145 # $USERNAME in here will be replaced with the user name. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
146 menu["mainmenu_user"] { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
147 # contents of this file are written to screen. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
148 # the file must be inside the chroot. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
149 bannerfile = "/dgldir/dgl_menu_main_user.txt" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
150 # after which cursor is moved to this location |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
151 # if cursor-definition is missing, the cursor is put |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
152 # to the end of the last line of the banner. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
153 # cursor = (5,18) |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
154 # keys we accept. format is |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
155 # commands["string_of_keys"] = <commandlist> |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
156 # for example, you could use commands["qQ"] = quit |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
157 commands["c"] = chpasswd |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
158 commands["e"] = chmail |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
159 commands["w"] = watch_menu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
160 commands["3"] = play_game "RogV3" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
161 commands["4"] = play_game "RogV4" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
162 commands["5"] = play_game "RogV5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
163 commands["Ss"] = play_game "SRog" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
164 commands["Aa"] = play_game "ARog5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
165 commands["q"] = quit |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
166 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
167 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
168 # this menu is shown when user presses '?' in the watching menu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
169 menu["watchmenu_help"] { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
170 bannerfile = "/dgldir/dgl_menu_watchmenu_help.txt" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
171 commands["qQ "] = return |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
172 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
173 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
174 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
175 # Next, we'll define one game's data: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
176 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
177 #DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
178 # # From inside the jail, the location of the binary to be launched. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
179 # game_path = "/bin/nethackstub" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
180 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
181 # # Full name of the game |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
182 # game_name = "NetHack stub" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
183 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
184 # # Short name, used in the watching menu |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
185 # short_name = "NHstb" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
186 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
187 # # arguments for when we exec the binary |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
188 # game_args = "/bin/nethackstub", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
189 # "foo", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
190 # "user:%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
191 # "shed_uid:%u", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
192 # "bar" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
193 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
194 # # From inside the jail, where dgamelaunch should put mail. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
195 # spooldir = "/var/mail/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
196 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
197 # # From inside the jail, the default .nethackrc that is copied for new users. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
198 # # rc_template = "/dgl-default-rcfile" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
199 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
200 # # Make sure the inprogress dir actually exists. default is "inprogress/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
201 # # Each game you define here must have it's own. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
202 # inprogressdir = "%rinprogress-nethackstub/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
203 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
204 # # We can also define per-game commands, that are executed |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
205 # # when the game starts: |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
206 # # commands = chdir "/dgldir", mkdir "foo_%u_%g" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
207 #} |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
208 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
209 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
210 #DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
211 # game_path = "/nh343/nethack" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
212 # game_name = "NetHack 3.4.3" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
213 # short_name = "NH343" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
214 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
215 # game_args = "/nh343/nethack", "-u", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
216 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
217 # spooldir = "/mail/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
218 # rc_template = "/dgl-default-rcfile.nh343" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
219 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
220 # rc_fmt = "%ruserdata/%n/%n.nh343rc" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
221 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
222 # inprogressdir = "%rinprogress-nh343/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
223 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
224 ## The place where ttyrecs are stored for this game. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
225 ## If this is not defined, ttyrecs are not saved for this game. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
226 ## Leaving this undefined also means the games cannot be spectated. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
227 # ttyrecdir = "%ruserdata/%n/ttyrec/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
228 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
229 # |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
230 # # back up savefile |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
231 # commands = cp "/nh343/var/save/%u%n.gz" "/nh343/var/save/%u%n.gz.bak", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
232 # # set NETHACKOPTIONS to point to the rcfile |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
233 # setenv "NETHACKOPTIONS" "@%ruserdata/%n/%n.nh343rc", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
234 # # set up nethack mail stuff, assuming it's compiled with it... |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
235 # setenv "MAIL" "/mail/%n", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
236 # setenv "SIMPLEMAIL" "1", |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
237 # # don't let the mail file grow |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
238 # unlink "/mail/%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
239 #} |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
240 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
241 # Rogue V3: short and simple, like the game |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
242 DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
243 game_path = "/bin/rogue3" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
244 game_name = "Rogue V3 (3.6)" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
245 short_name = "RogV3" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
246 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
247 game_args = "/bin/rogue3", "-n", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
248 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
249 inprogressdir = "%rinprogress-rogue3/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
250 ttyrecdir = "%rttyrec/%n/rogue3/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
251 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
252 # Don't do anything with rcfiles. Rogue has none. |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
253 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
254 # Back up the savefile, just in case |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
255 commands = cp "/var/games/roguelike/rogue3save/%u-%n.r3sav" "%rbackup/%u-%n.r3sav.bak" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
256 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
257 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
258 # Rogue V4: just like it, but a little different |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
259 DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
260 game_path = "/bin/rogue4" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
261 game_name = "Rogue V4 (5.2)" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
262 short_name = "RogV4" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
263 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
264 game_args = "/bin/rogue4", "-n", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
265 inprogressdir = "%rinprogress-rogue4/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
266 ttyrecdir = "%rttyrec/%n/rogue4/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
267 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
268 commands = cp "/var/games/roguelike/rogue4save/%u-%n.r4sav" "%rbackup/%u-%n.r4sav.bak" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
269 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
270 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
271 # Rogue V5: a little more different from both |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
272 DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
273 game_path = "/bin/rogue5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
274 game_name = "Rogue V5 (5.4)" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
275 short_name = "RogV5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
276 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
277 game_args = "/bin/rogue5", "-n", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
278 inprogressdir = "%rinprogress-rogue5/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
279 ttyrecdir = "%rttyrec/%n/rogue5/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
280 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
281 commands = cp "/var/games/roguelike/rogue5save/%u-%n.r5sav" "%rbackup/%u-%n.r5sav.bak" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
282 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
283 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
284 # Super-Rogue: different? |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
285 DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
286 game_path = "/bin/srogue" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
287 game_name = "Super-Rogue" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
288 short_name = "SRog" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
289 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
290 game_args = "/bin/srogue", "-n", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
291 inprogressdir = "%rinprogress-srogue/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
292 ttyrecdir = "%rttyrec/%n/srogue/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
293 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
294 commands = cp "/var/games/roguelike/sroguesave/%u-%n.srsav" "%rbackup/%u-%n.srsav.bak" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
295 } |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
296 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
297 # Advanced Rogue 5: not different? |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
298 DEFINE { |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
299 game_path = "/bin/arogue5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
300 game_name = "Advanced Rogue 5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
301 short_name = "ARog5" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
302 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
303 game_args = "/bin/arogue5", "-n", "%n" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
304 inprogressdir = "%rinprogress-arogue5/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
305 ttyrecdir = "%rttyrec/%n/arogue5/" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
306 |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
307 commands = cp "/var/games/roguelike/arogue5save/%u-%n.ar5sav" "%rbackup/%u-%n.ar5sav.bak" |
9945b472aac2
Add dgamelaunch configuration to the project.
John "Elwin" Edwards <elwin@sdf.org>
parents:
diff
changeset
|
308 } |