home *** CD-ROM | disk | FTP | other *** search
-
- -=( UserOn )=-
-
-
- What is it:
- ===========
-
- Useron does almost exacly the same as the useron function of RA 1.0. There's
- only one single extra: Whenever a user has the 'external util/door' status
- UserOn looks in the RA Directory for a file USERDOES.<NodeNr>. This file
- may contain a more accurate description of which door that user entered.
- RA only reserves a byte and 6 predefined messages for this purpose, and I
- as a doorwrite would like to put the name of the program there.. Alas, this
- is not possible with RA, so I wrote this little replacement.
-
- Source code (pascal) for putting, reading and writing such a UserDoes file
- is included.
-
-
- How To:
- =======
-
- Simply replace the ShowUsers call with a type 7 call with on the optional
- dataline:
-
- <Path>UserOn.exe -T:*T -N:*N [-P:*P] [-SYSOP] [-LINES:<NoLines>] [-AKA]
- [-NOS]
-
- (The -P is only nessecary when you use a commport different from the one in the
- Config.ra, the -N:*N should be there, as this program only makes sence in a
- multiline RA setup)
-
- -SYSOP shows the sysop regardless of the config.ra settings
- -NOS turns local sound off
- -AKA Show handles instead of names.
- -Lines: Turns the message to other line option on, and defines the
- maximal number of lines of a message.
-
- That's all.
-
-
- Programmers:
- ============
-
- The USERDOES.<NodeNr> file is a simple textfile with only one line of text,
- Maximal 70 characters long. (should be enough..;)
- It's expected to be found in the directory where the RA environment variable
- is pointing to. Note that the <NodeNr> part has NO leading zeros!
-
- UserDoes.1 is a legal name
- UserDoes.001 will never be found.
-
- If you use the DoIt.Pas unit, things are simpler:
-
- Put somewhere in the initialization part of your program the lines:
-
- DoingWhat='Your text which has to appear';
- SetDoingInfo(NodeNr);
-
- And at the end of the program a line:
-
- ClearDoingInfo(NodeNr);
-
- Even more fun is to update the userdoes during the game, reflecting the
- user's score...;) (RA-Pong, and Richard's Faassen's TETRA do this..)
-
- CopyWrong: you are encouraged to include this program with your own programs
- as long as you include the WHOLE package......
-
-
-
- Using this program with existing utils and doors:
- =================================================
-
- Well, from a type 7 menuitem with out a batch you're out
- of luck until (and IF) the author of the program supports this
- way of showing his info. (Unless of course you use the Type 7 to
- call a batchfile..;-)
-
- From a type 15 things are easier, just put a line :
-
- Echo <The text to appear> > c:\RA\userdoes.%1
-
- into the batchfile and things should work! The %1 reflects the nodenr here.
-
- At the end of the batch you can delete the file with a simple
-
- del c:\ra\userdoes.%1
-
- !!!! RA 1.10 !!!!
-
- RA 1.10 stores the message files in the semafore directory! If you use
- this directory, Useron will use it too for the USERDOES and the message
- files.
-
-
- Utilities:
- ==========
-
- Wipe110.exe
- -----------
-
- This is an utility which builds a complete new UserOn.bbs with empty records.
- I use it in my autoexec.bat to clean up after rebooting. (In case of a crash)
- The usage is simple: Wipe110 <Number of nodes>
-
- MakeDoes.exe
- ------------
-
- A little utility to make UserDoes and SysDoes files from a batchfile.
-
- Syntax: MakeDoes <Sys|User> <Node> "Message"
-
- Where Sys or Node defines the type of file. (SysDoes or UserDoes file)
- The Node defines the current node
- and the message is the message which is put into the file made.
-
- UOFix.exe
- ---------
-
- An other utility to keep the useron.bbs clean. It looks into the semafore
- directory to see for RABUSY semafore files. If a node isn't busy, an empty
- record is written into the useron.bbs. I wrote thisone for someone who had
- problems with mangled useron.bbs files.
-
- Syntax: UOFix <MaxNodes> <Path to semafore dir>
-
- The semafore dir should be the same path as in the config.ra
-
- WHOSON.EXE
- ----------
-
- This is the same kind of program as UserOn.exe but for dos. When started from
- the commandline it shows the same kind of info as useron.
-
- Syntax: WhosOn <Time between screenupdates>
-
- default value for screen updates is 10 seconds. The time has to be given in
- seconds.
-
-
- Last words:
- ===========
-
- Just in case: you're using this program at your own risk! Never will I accept
- any responsibility for anything happening due to the behavior of this program!
-
- This program is freeware. Do with it whatever you like. and if you are a
- door-programmer yourself, consider supporting the idea.. After all,
- when the useron info says something like:
-
- > User having a good time playing multiline-tradewars
-
- The odds are that other users jump in..;-)
-
- Enjoy!
- Gerhard
-
-