Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Mystic BBS  <--  <--- Return to Home Page
   Networked Database  Mystic BBS   [818 / 900] RSS
 From   To   Subject   Date/Time 
Message   nathanael culver    Shane O'Neill   Re: Save game per user for Infocom type games as doors   April 24, 2019
 10:05 PM *  

 SO> Is there a SIMPLE way to make mystic/netfoss save a users game as a
 SO> unique file or in a unique folder for each user so they don't over write

My system runs on a Raspberry Pi, so a bit different, but maybe it'll give
you some ideas.

I keep all the infocom .DAT files in doors/infocom, and have a general save
folder at doors/infocom/save.

I have a script which creates a unique folder from the user's ID number, then
inside that user's folder a directory with the game name. 

So if the user has user ID 27:

doors/infocom/save/27/zork1
doors/infocom/save/27/enchanter

and so on.

Here's my menu command for Zork 1:

(DD) Exec external program
\mystic\doors\infocom\infocom "%#" "zork1"

and my bash script:

#!/bin/bash
trap '' 2

homedir=/mystic/doors/infocom
savedir=$homedir/save/$1/$2  ; $1 = user's ID, $2 = game code ("zork1";)
game=$homedir/$2.dat

mkdir -p $savedir
cd $savedir
frotz -w 80 -l 1 -r 2 -x $game
exit

--- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
 * Origin: *HUMONGOUS* BBS (jenandcal.familyds.org:2323) (3:712/886)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Mystic BBS  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0791 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_muunugdpmh1go7i25qbo24ud14, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_muunugdpmh1go7i25qbo24ud14, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_muunugdpmh1go7i25qbo24ud14, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0