From 824fc6e7fd997ad43bc9b291c0689da4e8b2e8ed Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Tue, 9 Jun 2015 14:25:23 -0400 Subject: [PATCH] Add support for Advanced Rogue 7 and XRogue. --- dgl/dgamelaunch.conf | 34 +++++++++++++++++++++++++++++++++- dgl/dgl_menu_main_user.txt | 14 +++++++------- py/rlgall.py | 4 +++- web/about/arogue7.html | 20 ++++++++++++++++++++ web/about/index.html | 2 ++ web/about/xrogue.html | 19 +++++++++++++++++++ web/index.html | 4 +++- web/scoring/arogue7.html | 19 +++++++++++++++++++ web/scoring/index.html | 2 ++ web/scoring/xrogue.html | 19 +++++++++++++++++++ 10 files changed, 127 insertions(+), 10 deletions(-) create mode 100644 web/about/arogue7.html create mode 100644 web/about/xrogue.html create mode 100644 web/scoring/arogue7.html create mode 100644 web/scoring/xrogue.html diff --git a/dgl/dgamelaunch.conf b/dgl/dgamelaunch.conf index b14b1e5..ee540dd 100644 --- a/dgl/dgamelaunch.conf +++ b/dgl/dgamelaunch.conf @@ -181,8 +181,11 @@ commands[register] = mkdir "%ruserdata/%n", mkdir "%rttyrec/%n/rogue4", mkdir "%rttyrec/%n/rogue5", mkdir "%rttyrec/%n/srogue", - mkdir "%rttyrec/%n/arogue5" + mkdir "%rttyrec/%n/arogue5", + mkdir "%rttyrec/%n/arogue7", + mkdir "%rttyrec/%n/xrogue" +# TODO ensure they exist for existing users commands[login] = mkdir "%ruserdata/%n", mkdir "%rttyrec/%n", mkdir "%rttyrec/%n/rogue3", @@ -243,6 +246,8 @@ menu["mainmenu_user"] { commands["5"] = play_game "RogueV5" commands["Ss"] = play_game "SRogue" commands["Aa"] = play_game "ARogue5" + commands["7"] = play_game "ARogue7" + commands["Xx"] = play_game "XRogue" commands["q"] = quit } @@ -321,6 +326,33 @@ DEFINE { commands = cp "/var/games/roguelike/arogue5save/%u-%n.ar5sav" "%rbackup/%u-%n.ar5sav.bak" } +# Advanced Rogue 7 +DEFINE { + game_path = "/usr/bin/arogue7" + game_name = "Advanced Rogue 7" + short_name = "ARogue7" + + game_args = "arogue7", "-n", "%n" + inprogressdir = "%rinprogress/arogue7/" + ttyrecdir = "%rttyrec/%n/arogue7/" + + commands = cp "/var/games/roguelike/arogue7save/%u-%n.ar7sav" "%rbackup/%u-%n.ar7sav.bak" +} + +# XRogue +DEFINE { + game_path = "/usr/bin/xrogue" + game_name = "XRogue" + short_name = "XRogue" + + game_args = "xrogue", "-n", "%n" + inprogressdir = "%rinprogress/xrogue/" + ttyrecdir = "%rttyrec/%n/xrogue/" + + commands = cp "/var/games/roguelike/xroguesave/%u-%n.xrsav" "%rbackup/%u-%n.xrsav.bak" +} + + # Next, we'll define one game's data: diff --git a/dgl/dgl_menu_main_user.txt b/dgl/dgl_menu_main_user.txt index ef3a326..a134f5c 100644 --- a/dgl/dgl_menu_main_user.txt +++ b/dgl/dgl_menu_main_user.txt @@ -9,14 +9,14 @@ Logged in as: $USERNAME - c) Change password - e) Change email address + c) Change password e) Change email address w) Watch games in progress - 3) Play Rogue V3 (3.6) - 4) Play Rogue V4 (5.2) - 5) Play Rogue V5 (5.4) + + 3) Play Rogue V3 A) Play Advanced Rogue 5 + 4) Play Rogue V4 7) Play Advanced Rogue 7 + 5) Play Rogue V5 X) Play XRogue S) Play Super-Rogue - A) Play Advanced Rogue 5 + q) Quit - => + => diff --git a/py/rlgall.py b/py/rlgall.py index 7399603..c816b76 100644 --- a/py/rlgall.py +++ b/py/rlgall.py @@ -531,8 +531,10 @@ rogue4 = RogueGame("Rogue V4", "rogue4", "r4") rogue5 = RogueGame("Rogue V5", "rogue5", "r5") srogue = RogueGame("Super-Rogue", "srogue", "sr") arogue5 = ARogueGame("Advanced Rogue 5", "arogue5", "ar5") +arogue7 = ARogueGame("Advanced Rogue 7", "arogue7", "ar7") +xrogue = ARogueGame("XRogue", "xrogue", "xr") -gamelist = [rogue3, rogue4, rogue5, srogue, arogue5] +gamelist = [rogue3, rogue4, rogue5, srogue, arogue5, arogue7, xrogue] def playerpage(pname): "Generate a player's HTML page" diff --git a/web/about/arogue7.html b/web/about/arogue7.html new file mode 100644 index 0000000..6bcb176 --- /dev/null +++ b/web/about/arogue7.html @@ -0,0 +1,20 @@ + + + +Advanced Rogue 7 + + + + +

Advanced Rogue 7

+ +
+

Advanced Rogue is a derivative of Rogue 3.6, with borrowings from Super-Rogue. +It was developed at AT&T, mainly by Michael Morgan and Ken Dalka. Version 7.7 was released in the middle of 1986. +

This version of Advanced Rogue features nine character classes, some with special conduct requirements. It also includes a rewritten time system.

+

The Roguelike Restoration Project updated the game to run on modern computers.

+

The Roguelike Gallery has fixed some bugs related to command repetition and saved games.

+
+
rlgallery.org Recent Games High Scores
+ + diff --git a/web/about/index.html b/web/about/index.html index 19f1f73..3a82a45 100644 --- a/web/about/index.html +++ b/web/about/index.html @@ -16,6 +16,8 @@
  • About Rogue V5
  • About Super-Rogue
  • About Advanced Rogue 5
  • +
  • About Advanced Rogue 7
  • +
  • About XRogue
  • Other information

    Scoring

    diff --git a/web/scoring/arogue7.html b/web/scoring/arogue7.html new file mode 100644 index 0000000..adf5592 --- /dev/null +++ b/web/scoring/arogue7.html @@ -0,0 +1,19 @@ + + + +Advanced Rogue 7 Statistics + + + + +

    Yendor Guild

    + +
    +

    Statistics for Advanced Rogue 7

    +
    +
    Advanced Rogue 7 experience
    +
    Advanced Rogue 7 scores
    +
    Advanced Rogue 7 depth
    +
    rlgallery.org Recent Games High Scores
    + + diff --git a/web/scoring/index.html b/web/scoring/index.html index fa14b51..f91d0cd 100644 --- a/web/scoring/index.html +++ b/web/scoring/index.html @@ -21,6 +21,8 @@
  • Rogue V5
  • Super-Rogue
  • Advanced Rogue 5
  • +
  • Advanced Rogue 7
  • +
  • XRogue
  • rlgallery.org Recent Games High Scores
    diff --git a/web/scoring/xrogue.html b/web/scoring/xrogue.html new file mode 100644 index 0000000..aab2ebb --- /dev/null +++ b/web/scoring/xrogue.html @@ -0,0 +1,19 @@ + + + +XRogue Statistics + + + + +

    Yendor Guild

    + +
    +

    Statistics for XRogue

    +
    +
    XRogue experience
    +
    XRogue scores
    +
    XRogue depth
    +
    rlgallery.org Recent Games High Scores
    + +