blob: d6889d434c2d050b9baa8e13ace8c4a596cfb3ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
App:
WorkingDirectory: var/
MaxUsers: 512
AllowRegistration: true
MaxNickLen: 15
MenuMaxIdleTime: 600
PostLoginCommands:
- mkdir %w/userdata/%u
- mkdir %w/userdata/%u/dumplog
- mkdir %w/userdata/%u/ttyrec
Menus:
anonymous:
Banner: 'Shell Game Launcher - Anonymous access%n======================================'
MenuEntries:
- Key: l
Label: login
Action: login
- Key: r
Label: register
Action: register
- Key: w
Label: watch
Action: watch_menu
- Key: q
Label: quit
Action: quit
logged_in:
Banner: 'Shell Game Launcher%n==================='
MenuEntries:
- Key: p
Label: play Nethack 3.7
Action: play nethack3.7
- Key: o
Label: edit game options
Action: menu options
- Key: w
Label: watch
Action: watch
- Key: r
Label: replay
Action: replay
- Key: c
Label: change password
Action: passwd
- Key: m
Label: change email
Action: chmail
- Key: q
Label: quit
Action: quit
options:
Banner: 'Options%n======='
MenuEntries:
- Key: z
Label: back
Action: menu logged_in
Games:
nethack3.7:
ChrootPath: test_data/fake_nethack_directory
FileMode: "0666"
Commands:
- cp /games/var/save/%u%n.gz /games/var/save/%u%n.gz.bak
- exec /games/nethack -u %n
Env:
NETHACKOPTIONS: "@%ruserdata/%n/%n.nhrc"
|