home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / DOORS / MAZE50.ZIP / MAZEDOCS.ZIP / OPENDOOR.DOC < prev    next >
Encoding:
Text File  |  1991-11-29  |  18.1 KB  |  457 lines

  1.  
  2.                          O P E N D O O R
  3.  
  4.   Release: 4.1                                              January 1991
  5.  
  6.  
  7.   ===== IMPORTANT NOTES ==================================================
  8.  
  9.   Maze 5.0 comes with the same opendoor.exe program release with Maze 3.6
  10.   and maze 4.0 so if you have any of my doors running now you do not need to
  11.   install this version of opendoor.exe or maze.bat to get Maze 5.0 working.
  12.  
  13.   To those upgrading from an earlier version of OpenDoor.EXE please note
  14.   that while this release will run all the older doors you will need to
  15.   modify your batch files for it to work properly.
  16.  
  17.   If you have problems please refer to the documentation file PROBLEM.DOC in
  18.   addition to this one for some ideas on how to fix the problem.
  19.  
  20.  
  21.   ===== MAZE.BAT =========================================================
  22.  
  23. Rem TAG Entry to the Maze 5.0 Door
  24.  
  25. ECHO OFF
  26. C:
  27. CD \BBS
  28. OPENDOOR.EXE MAZE 5.0
  29. IF EXIST OPENDOOR.ERR       GOTO QUIT
  30. IF NOT EXIST OPENDOOR.SYS   GOTO QUIT
  31. COPY C:\BBS\OPENDOOR.SYS C:\BBS\GAMES\MAZE\OPENDOOR.SYS
  32. C:
  33. CD \BBS\GAMES\MAZE
  34. MAZE.EXE
  35. :QUIT
  36. C:
  37. CD \BBS
  38.  
  39.   ===== SETUP ============================================================
  40.  
  41.   1. Put OPENDOOR.EXE, OPENDOOR.DOC and MAZE.BAT into the same directory as
  42.      your BBS.
  43.  
  44.           Note: This is frequently the only place a BBS system can output
  45.                 DORINFO?.DEF, etc.  It's also where a BBS usually expects
  46.                 to find the batch file(s), like MAZE.BAT, it calls.
  47.  
  48.   2. Execute OPENDOOR.EXE from the DOS prompt to have it create the files
  49.      it needs to run like opendoor.cfg
  50.  
  51.   3. If you are running a locked baud operation edit OPENDOOR.CFG and ...
  52.      
  53.        A. Set the switch that locks the baud
  54.      
  55.        B. Set the locked baud speed if it's not the default 19200
  56.  
  57.   4. Edit the MAZE.BAT as required for your directory and drive layout.
  58.  
  59.   5. Do whatever it takes to make your BBS ...
  60.      
  61.        A: Able to call MAZE.BAT when a user wants to access the door.
  62.     
  63.           Note: There is absolutely nothing I can do to help you here as
  64.                 each BBS is quite different.  However, another pass at
  65.                 reading your BBS doc files might shed light on this issue.
  66.      
  67.        B: Create either DORINFO?.DEF or PCBOARD.SYS just before MAZE.BAT
  68.           is called.
  69.         
  70.           Note #1: If you have a choice DORINFO1.DEF is the preferred BBS
  71.                    output format by OPENDOOR.EXE
  72.  
  73.                    Leave the OPENDOOR.CFG file default to use whatever
  74.                    legal type output it can find.
  75.  
  76.           Note #2: Some BBS systems can not output either DORINFO1.DEF or
  77.                    PCBOARD.SYS or they might output a format either older
  78.                    or newer than this release of OPENDOOR.EXE supports.
  79.  
  80.                    In this case what you need to do is check around with
  81.                    other sysops that run the same type of BBS you do and
  82.                    pick up a utility that can convert whatever they do
  83.                    output into one of the formats OPENDOOR.EXE supports.
  84.  
  85.                    This utility would usually be placed in the directory
  86.                    with your BBS and called from MAZE.BAT just before
  87.                    calling OPENDOOR.EXE
  88.       
  89.                     
  90.   ===== INTRODUCTION =====================================================
  91.  
  92.   I am frequently accused of supplying a two pound answer for a 3 ounce
  93.   question.  The odds are the above material has given you all you really
  94.   need to know.
  95.  
  96.   While the operation of this program is simple I have included enough
  97.   information here for you to really understand what's going on.  I do this
  98.   because many sysop's call my system somewhat confused by setting up
  99.   doors.  The whole process is frustrating when a great game, "door", can
  100.   not be brought up on a system after quite an effort/cost to get the
  101.   program in the first place was expended.
  102.  
  103.   This version of OpenDoor is capable of processing BBS output in the
  104.   DORINFO?.DEF format, either the old (1988) form or the newer (1990) type
  105.   format.
  106.  
  107.     Note: It also correctly handles systems using this format that run
  108.           multiple nodes.
  109.  
  110.  
  111.   This version is also capable of processing a BBS output PCBOARD.SYS in
  112.   either the old 10.2 (1988) or 12.2 format (1990) or 14.5 format (1991).
  113.  
  114.     Note: These files do not supply the BBS or SysOp name and a generic
  115.           substitute is made.
  116.  
  117.           OpenDoor also defaults for this output to using COM1: for
  118.           output.  If you want the code to use COM2: then create a file
  119.           in your bbs directory call "OPENDOOR.2" and it will switch to
  120.           this communications port when a PcBoard.sys file is being
  121.           processed.
  122.  
  123.   If you want to use a mixture of these outputs its no problem as OpenDoor
  124.   determines by looking at the date and time stamp which file was just
  125.   created before it was called and will pick that one up and use it.
  126.  
  127.  
  128.   ===== SELF GENERATED ===================================================
  129.  
  130.   The program will create the following files or if they already exist
  131.   it will update them with its latest information:
  132.  
  133.  
  134.   OPENDOOR.BAT ....... An example ansi door batch file using OpenDoor.
  135.   OPENDOOR.CFG ....... The OpenDoor configuration file.
  136.   OPENDOOR.DAT ....... Statistics on all ansi door usage last month.
  137.   OPENDOOR.LOG ....... Statistics on all ansi door usage this month.
  138.   OPENDOOR.ERR ....... Readable OpenDoor error file if anything goes wrong.
  139.   OPENDOOR.SAV ....... A copy of the last BBS output used by OpenDoor.
  140.   OPENDOOR.SYS ....... The output of a successful run of OpenDoor.
  141.  
  142.   An example of what these files might look like are included in the
  143.   appendix to this document.
  144.  
  145.  
  146.   ===== GENERAL PURPOSE ==================================================
  147.  
  148.   Many sysop's have trouble installing door programs written for bbs systems
  149.   different from what they are using.  On the other side of the issue are
  150.   the authors of door programs that really don't care about the variety of
  151.   bbs systems and simply want sysops to be able to use their programs easily.
  152.  
  153.   As I upgraded my various Ansi graphics/windowing doors I removed all
  154.   bbs dependant logic from them.  However, they still do need to know some
  155.   basic information unique to each caller/bbs system, such as:
  156.  
  157.     The Users first name ...................... Joe
  158.     The Users last name ....................... Blow
  159.     The Current Communication parameters ...... COM1:2400,N,8,1
  160.     The Time left for BBS session ............. 32
  161.  
  162.  
  163.   ===== HOW OPENDOOR.EXE WORKS ===========================================
  164.  
  165.   Run OpenDoor once and print out a copy of "OPENDOOR.BAT" and also the
  166.   file "OPENDOOR.CFG" to help follow along with this discussion.
  167.  
  168.     0. OpenDoor checks for files expected and creates default files for
  169.        those missing that it needs.
  170.  
  171.     1. OpenDoor examines the current directory, should be the BBS directory,
  172.        for all the BBS output file types it supports.
  173.  
  174.          OpenDoor checks their name ... PCBOARD.SYS or DORINFO1.DEF ..
  175.          DORINFO4.DEF .. etc.
  176.  
  177.     2. Then it checks the date and elimates any not created today.
  178.  
  179.     3. Next it checks the time stamp, creation time, for each file and
  180.        selects the most recently created file.
  181.  
  182.     4. Now it opens the single file it has by this time, if any, and by
  183.        looking at key locations within the file and by examining it's
  184.        size it determines the format type of this file.
  185.  
  186.        Note: You may tell OpenDoor what format you think it should get
  187.              if you want.  If you tell it what to expect and it finds
  188.              something else it will terminate putting the reasons for
  189.              the failure in the file OpenDoor.ERR
  190.  
  191.              The formats supports as of this release were:
  192.  
  193.                Type = 1 = DorInfo?.def from around 1988
  194.                       2 = PcBoard.sys  from around 1988
  195.                       3 = DorInfo?.def from around 1990
  196.                       4 = PcBoard.sys  from around 1990
  197.                       5 = PcBoard.sys  from around 1991
  198.  
  199.              It is recommended that you leave the OpenDoor.cfg file
  200.              default this value to "0" and let it do the best it can.
  201.  
  202.     5. OpenDoor now creates the appropriate OPENDOOR.SYS file for later
  203.        use by the ansi doors based upon the information it reads from
  204.        this file.
  205.  
  206.        Note: In some cases it can determine that a remote user can not
  207.              support ansi graphics and it simply terminates.
  208.  
  209.              ALL, repeat ALL the files created by OpenDoor are put into
  210.              the same directory as the bbs and have a name that starts
  211.              with "OPENDOOR".???
  212.  
  213.     6. The time allowed in the ansi door is adjusted to the lower of
  214.        either the time left on the BBS or the maximum time allowed in
  215.        any door as set in the OpenDoor.CFG file.
  216.  
  217.     7. OpenDoor checks the command line, optional input, value and
  218.        updates the log for the information suppled.  If no input then
  219.        it assigned the input value to a default setting of "UNKNOWN DOOR".
  220.  
  221.        Note: The command line can be blank or contain any character field
  222.              up to about 30 characters.  Any more than this will be
  223.              truncated.
  224.  
  225.              The OpenDoor.LOG file contains a list of all the doors that
  226.              were called, the number of times they were called, the date
  227.              and time of the last call, and a string of numeric values
  228.              that capture the idle days when they were not called at
  229.              all.
  230.  
  231.                For example: 0,2,0,0,5 ..... etc.
  232.                             would mean that the door was called today,
  233.                             two days ago, each of the two days before
  234.                             that, and then was not used the five days
  235.                             before that usage.
  236.  
  237.              On the first call of the month before any entrees are made
  238.              in the OpenDoor.LOG file it is copied to OpenDoor.DAT and
  239.              a fresh copy is created to log in this months statistics.
  240.  
  241.     8. Now just before returning to the batch file's control OpenDoor
  242.        makes a copy of the BBS output file it used to create OpenDoor.SYS
  243.        and calls this file OpenDoor.SAV  This makes it handy for you to
  244.        figure out why it seemed to do something crazy.
  245.  
  246.        Note: When it starts running, OpenDoor.EXE deletes the file(s)
  247.              OpenDoor.SYS and OpenDoor.ERR if they exist.
  248.  
  249.              If you examine the file OpenDoor.BAT you will see in this
  250.              example that these files are used by your batch file to
  251.              determine if you should call the ansi door.
  252.  
  253.              To call the ansi door:
  254.                A. The file OpenDoor.SYS should EXIST
  255.                B. The file OpenDoor.ERR should NOT EXIST
  256.  
  257.  
  258.   ===== HOW MAZE.BAT WORKS ===============================================
  259.     
  260.     1. First it must be called.  This is done by telling your BBS that
  261.        it exists, it's name (MAZE.BAT), and on some BBS systems what
  262.        form of output to send it.  If you have a choice use the format
  263.        for DORINFO?.DEF as it supples more complete information.
  264.  
  265.        You also will likely need to do something so you users will be
  266.        able to get at it, like modify a menu or something.  Sorry I
  267.        can't help you there.
  268.  
  269.        Note: While some BBS systems do not output either of the formats
  270.              OpenDoor.exe supports, there are usually some utilities
  271.              around that can create one of the files I support from
  272.              whatever it does produce.  These would be called as the
  273.              first step in the batch files operation.
  274.  
  275.              If you are really stuck I will upgrade OpenDoor.EXE to
  276.              support any generally available public domain BBS output
  277.              if you send me a copy of the BBS's output and some docs
  278.              on its format and meaning of the fields entries, like
  279.              all possible settings, etc.
  280.           
  281.     2. I always make sure the disk and directory is correct even though
  282.        these should usually be ok when the batch file is called.
  283.  
  284.        C:
  285.        CD C:\BBS
  286.  
  287.     3. Its not a bad idea to use some utility to monitor the user
  288.        modem connection.  WatchDog is a favorite of mine.
  289.  
  290.        Note: All of my ansi doors do monitor the modem and have various
  291.              timeout monitors in place to catch this but you can never
  292.              be too careful.
  293.  
  294.     4. Next I call OpenDoor.EXE and give it some command like input to
  295.        make the OpenDoor.LOG file entry meaningful.
  296.  
  297.        OPENDOOR.EXE MAZE 5.0
  298.  
  299.     5. Now I check to see if OpenDoor.SYS exists and that OpenDoor.ERR
  300.        doesn't.  If I see a problem here I simply return to the BBS
  301.        by ending the batch file.
  302.  
  303.       IF EXIST OPENDOOR.ERR       GOTO QUIT
  304.       IF NOT EXIST OPENDOOR.SYS   GOTO QUIT
  305.  
  306.     6. Now I copy the OpenDoor.SYS file into the directory where the
  307.        game I want to run exists.
  308.  
  309.        Note: This doesn't have to be on the same drive.  Also you can
  310.              set up your system so each door has its on directory or
  311.              simply let them all co-exist in one place.  I have used
  312.              naming conventions for ansi door files that will allow
  313.              them to be in the same directory without any problems if
  314.              you want to do that.
  315.      
  316.        COPY C:\BBS\OPENDOOR.SYS C:\BBS\GAMES\MAZE\OPENDOOR.SYS
  317.  
  318.     7. Now change the current directory, drive also .. if different, to
  319.        be the current directory.
  320.  
  321.        C:
  322.        CD C:\BBS\GAMES\MAZE
  323.  
  324.     8. Execute the ansi door program.
  325.  
  326.        MAZE.EXE
  327.  
  328.     9. If you want now is the time to copy any ansi game bulletin type
  329.        output into one of your bulletin files.
  330.      
  331.        Note: Player scores, a list of maze escapees and a picture of the
  332.              last game where a repaint was used all make good bulletins.
  333.  
  334.    10. Change the directory, and drive too, back to the defaults for the
  335.        BSS and exit the batch file.
  336.      
  337.        :QUIT
  338.        C:
  339.        CD \BBS
  340.  
  341.        Note: On some BBS's you need to call the BBS batch file as the
  342.              last line in your batch file.  See your BBS documentation
  343.              on how it recommends you call doors.
  344.  
  345.              If you have a choice don't let your BBS shell out to the
  346.              ansi door's batch file but call it clean.  This gives the
  347.              doors the maximum amount of memory.
  348.  
  349.              The BBS I run, TAG, has the best of both worlds as its
  350.              hides a version of itself in extended memory and only
  351.              leaves 7K of its reentry logic in memory.
  352.  
  353.  
  354.   ===== OPENDOOR.SYS =====================================================
  355.  
  356.   The file, "OPENDOOR.SYS" should look something like the following:
  357.  
  358. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  359. The Ansi Tool Box ][
  360. Fast
  361. Fingers
  362. COM1:2400,N,8,1
  363. JOHN
  364. SMITH
  365. 45
  366.  
  367. Foot Notes:           [on 12-20-1991 @ 16:54:43]
  368.  
  369.   1. Door Wanted was: MAZE 5.0
  370.   2.   File used was: PCBOARD.SYS and a copy was saved in OPENDOOR.SAV
  371.   3.  BBS output type: 2
  372.   4. File format was: PcBoard.sys ....... Format 1988
  373.   5.    Generated by: OpenDoor.EXE ...... Release 4.1 Jan. 1991
  374.  
  375. Legal Formats:
  376.  
  377.   1 = DorInfo?.def ... Format 1988
  378.   2 = PcBoard.sys ....... Format 1988
  379.   3 = DorInfo?.def ... Format 1990
  380.   4 = PcBoard.sys ....... Format 1990
  381.   5 = PcBoard.sys ....... Format 1991
  382.  
  383.   0 = Unknown/Variable => OpenDoor determine
  384.       OPENDOOR.CFG configuration default
  385.  
  386.  
  387.   ===== OPENDOOR.LOG =====================================================
  388.  
  389.   The files "OPENDOOR.LOG" and "OPENDOOR.DAT" should look like:
  390.  
  391. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  392. OPENDOOR.LOG File Initialized       0 ................. 1   12-01-1991
  393. Unknown Door ...................... 0 ................. 3   12-01-1991
  394. MAZE 4.0 .......................... 0,0,0,0,1,0,0,2,0,0 17  12-25-1991
  395. BLACK JACK 3.6 .................... 0,2,1,3 ........... 7   12-22-1991
  396. MAZE 5.0 .......................... 0,0,0,0,0,0,0,0,0,0 32  12-25-1991
  397. CHECKERS .......................... 4,3,5,1 ........... 4   12-12-1991
  398. ANSI COMBAT 1.0 ................... 0 ................. 1   12-17-1991
  399. BATTLE SHIP 1.0 ................... 0,0,0,0,0 ......... 14  12-25-1991
  400. CRAZY 8'S VERSION 3.6 ............. 2,6 ............... 2   12-10-1991
  401. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  402.  
  403.  
  404.   ===== OPENDOOR.CFG =====================================================
  405.  
  406.   The file "OPENDOOR.CFG" should look like:
  407.  
  408. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  409. "OpenDoor.Cfg"," .... Created by OpenDoor.EXE on ............ 12-18-1990"
  410. 1," ................. Music Switch .......................... 1=On 0=Off"
  411. 0," ................. BBS at Locked Baud Rate ............... 0=No 1=Yes"
  412. "19200"," ........... If baud Locked this is locked speed"
  413. "45"," .............. Maximum Minutes allowed in Door"
  414. 0," ................. BBS OutPut Type, 0=Unknown/Mixture, [# > 0] SEE DOCs!"
  415. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  416.  
  417.  
  418.   ===== OPENDOOR.SAV =====================================================
  419.  
  420.   The file "OPENDOOR.SAV" could look like: [ 1990 Dorinfo?.def Format]
  421.  
  422. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  423. The Tool Box
  424. Fast
  425. Fingers
  426. COM1
  427. 2400 BAUD,N,8,1
  428. 0
  429. FAST
  430. FINGERS
  431. Sterling Heights, Mich.
  432. 1
  433. 255
  434. 208
  435. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  436.  
  437.  
  438.   ===== OPENDOOR.ERR =====================================================
  439.  
  440.   The file "OPENDOOR.ERR" could look like:
  441.  
  442. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  443. OpenDoor Error File Created on 12-20-1991 @ 22:33:28
  444.  
  445. Didn't find what you wanted .. Terminating!
  446.  
  447.   You were looking for a Type = 4
  448.   What I found was a Type = 2
  449.  
  450.   Either change your OPENDOOR.CFG file or modify your
  451.   BBS to output what you insist I must process!
  452.  
  453.   ======================== END OF OPENDOOR.DOC ======== Finally <grin> ===
  454.  
  455.  
  456.  
  457.