aboutsummaryrefslogtreecommitdiff
path: root/config/test_data/non_existant_game.yaml
blob: c386e1ac85e7106b7e8e9a5bf08d9d926581ed4c (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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======================================'
    XOffset: 5
    YOffset: 2
    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==================='
    XOffset: 5
    YOffset: 2
    MenuEntries:
      - Key: p
        Label: play Nethack 3.7
        Action: play invalid
      - 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======='
    XOffset: 5
    YOffset: 2
    MenuEntries:
      - Key: a
        Label: edit options for Nethack 3.7
        Action: chopts nethack3.7
      - Key: z
        Label: back
        Action: menu logged_in

Games:
  nethack3.7:
    ChrootPath: /opt/nethack
    FileMode: "0666"
    ScoreCommands:
      - exec /games/nethack -s all
      - wait
    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"