home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ISRIP.ZIP / DOOR_RIP.DOC next >
Encoding:
Text File  |  1993-08-05  |  3.6 KB  |  87 lines

  1.  
  2.  
  3.                      Implementing a RIP Graphics Door Menu
  4.                                Using Wildcat 3.9
  5.  
  6.     Implementing a graphical door menu with Wildcat 3.9 can be a challenge 
  7.     because the BBS does not establish text window before shelling out to run 
  8.     the door software. Undoubtedly, this is a good strategy for the door games 
  9.     expected to implement a full RIP interface with new versions, but it is 
  10.     not ideal for the older ANSI doors.  I have delveloped a method to 
  11.     implement both RIP and ANSI doors while handling the screen correctly for 
  12.     either case. 
  13.  
  14.     The first thing you need is a RIP door menu since that is the whole reason 
  15.     I am writing this. I recommend a totally graphical screen with no text 
  16.     window to avoid showing the user the door menu prompt. Note that if your 
  17.     system dynamically generates messages to the user (like a chat request 
  18.     from another node) you will need a text window. About the only thing a 
  19.     single node system will generate is 'Your time is up' type messages, in 
  20.     which case, the system will eventually hang up anyway. I chose to use a 
  21.     button for each game, giving it a title and a hot-key (totally hiding door 
  22.     number from the user). I also display the time left for the call with each 
  23.     re-draw of the menu. My DOORS.RIP is included with this archive.
  24.  
  25.     Another thing you need is a program that will send a file out the comm 
  26.     port from the DOS prompt with the proper handshaking and baud rate. I use 
  27.     WCREAD which is on the Wildcat HQ BBS.
  28.  
  29.     You may need a utility to actually alter the DOOR.SYS and/or USERINFO.DAT 
  30.     files to fake out the door and make it think the caller is using an ANSI 
  31.     terminal. I use Richard Skinner's DOORFIX which is available on the 
  32.     Wildcat HQ BBS.
  33.  
  34.     The last thing you need is a program that will read the DOOR.SYS dropfile 
  35.     and return a DOS errorlevel depending on whether the caller is RIP capable 
  36.     or not. ISRIP.EXE included in this archive fits the bill for this one.
  37.  
  38.     Install your DOORS.BBS and DOORS.RIP menus in your display directory as 
  39.     usual. Edit each of your DOORxx.BAT files that may require special 
  40.     handling to call FIXRIP.BAT before it does anything else. Doors that 
  41.     explicitly support RIP may not need this special processing.
  42.  
  43.     NOTE: The version of WCREAD that I have will only send file that have a 
  44.     .BBS or a .SCR extension. I simply copied my POSTRIP.RIP to POSTRIP.BBS to 
  45.     take care of it.
  46.  
  47.     Here is the FIXRIP.BAT that I use:
  48.  
  49. REM------------------FIXRIP.BAT-----------------------
  50. isrip \wc30\wcwork\node1
  51. if errorlevel 2 goto NORIP
  52. if errorlevel 1 goto RIP
  53. goto NORIP
  54.  
  55. REM------RIP detected. Send the POSTRIP.RIP file out the com port.
  56. REM------  NOTE: WCREAD is a utility available on the MSI HQ BBS that
  57. REM------        sends a file out the com port with proper handshaking.            
  58. :RIP
  59. cd\wc30
  60. wcread postrip
  61.  
  62. REM------No RIP detected. Just return to calling progrm.
  63. :NORIP
  64. REM------------------End of FIXRIP.BAT------------------
  65.  
  66.  
  67.  
  68.     And here is a sample DOORxx.BAT file:
  69.  
  70. REM----------------DOOR4.BAT----------------------------
  71. REM Detect RIP caller and set up a text window
  72. call FIXRIP.BAT
  73.  
  74. REM Since this is an older ANSI door, use a utility to fix the DOOR.SYS 
  75. REM  and USERINFO.DAT to make the caller look like ANSI for the time being
  76. doorfix IN C:\wc30\wcwork\node%WCNODEID%
  77.  
  78. cd\doors\5dws
  79. 5dws16 5dws.cfg
  80.  
  81. REM Restore DOOR.SYS and USERINFO.DAT
  82. doorfix OUT C:\wc30\wcwork\node%WCNODEID%
  83.  
  84. REM .....That's all folks!
  85. REM----------------End DOOR4.BAT-------------------------
  86.  
  87.