From f165046abace57fcc80d2426cd8066aed87a634f Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 20 Nov 2022 15:04:03 -0800 Subject: [PATCH] Install high scores timed event (new to rev 2.15). --- xtrn/minesweeper/install-xtrn.ini | 9 +++++++-- xtrn/minesweeper/readme.txt | 17 +++++++++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/xtrn/minesweeper/install-xtrn.ini b/xtrn/minesweeper/install-xtrn.ini index d1ead4e9f1..fb477425ba 100644 --- a/xtrn/minesweeper/install-xtrn.ini +++ b/xtrn/minesweeper/install-xtrn.ini @@ -1,4 +1,3 @@ -; $Id: install-xtrn.ini,v 1.3 2020/04/17 08:15:48 rswindell Exp $ ; Synchronet Minesweeper installer data for install-xtrn.js Name: Synchronet Minesweeper @@ -6,7 +5,7 @@ Desc: The classic Windows game written for Synchronet in JavaScript By: Digital Man (Rob Swindell) Cats: Games Subs: Puzzle, Classic, JavaScript -Inst: $Id: install-xtrn.ini,v 1.3 2020/04/17 08:15:48 rswindell Exp $ +Inst: 2022/11/20 [prog:MSWEEPER] cmd = ?minesweeper @@ -19,3 +18,9 @@ name = Synchronet Minesweeper Winners cmd = ?minesweeper winners event = EVENT_LOGON settings = XTRN_MULTIUSER | XTRN_EVENTONLY + +[event:MSHIGHSC] +prompt = false +cmd = ?minesweeper export +days = 1 + diff --git a/xtrn/minesweeper/readme.txt b/xtrn/minesweeper/readme.txt index 26e5c3baba..4fc5d33585 100644 --- a/xtrn/minesweeper/readme.txt +++ b/xtrn/minesweeper/readme.txt @@ -11,7 +11,7 @@ The objective was to try to mimic the old Microsoft versions of the game that I remember playing in the 1990's, but support more difficulty levels (5) and maximize the number of cells usable in terminals, while keeping the game playable and easy on the eyes (my daughter, Emma, helped with the color scheme, -as she is *not* colorblind). There's no mouse support; use the keyboard. +as she is *not* colorblind). You can use the mouse (with SyncTERM) or keyboard. Multiple users can play the game simultaneously, but there is no inter-user interaction of any kind. The normal Synchronet inter-node paging/listing @@ -56,7 +56,7 @@ Requirements Tested with Synchronet v3.17c (in development). Older versions of Synchronet (e.g. v3.17b) may work however. -An up-to-date set of exec/load/*.js files (from cvs.synchronet) are needed. +An up-to-date set of exec/load/*.js files (from git.synchro.net) are needed. Install ------- @@ -96,12 +96,23 @@ program entry: Command Line ?minesweeper winners ... Execute on Event Logon, Only + +If you want your top-x winners exported periodically to a message network +(i.e. to be displayed on other BBSes), create an additional Timed Event entry: + + Internal Code MSHIGHSCORES + Start-up Directory ../xtrn/minesweeper + Command Line ?minesweeper export + ... + Execution Day of Week Sun + Configure --------- Command-line arguments supported: "winners [num]" - display list of top-[num] winners and exit +"export [num]" - export list of top-[num] high scores to msgbase and exit "nocls" - don't clear the screen upon exit <level> - set the initial game difficulty level (1-5) @@ -135,5 +146,3 @@ If you already had game winners and want to retain them in the list, copy or rename the data/minesweeper.jsonl to xtrn/minesweeper/winners.jsonl. If you don't care, the game will run fine and new winners will be added to the new/correct filename. - -$Id: readme.txt,v 2.1 2019/10/07 20:53:14 rswindell Exp $ -- GitLab