home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / WWIV421.ZIP / CHAIN.DOC < prev    next >
Text File  |  1992-01-27  |  14KB  |  312 lines

  1.                  Documentation for Using Chains
  2.                                by
  3.                       Filo, 1 @5252 WWIVnet
  4.                       <aka> Wig De Moville
  5.  
  6.      The WWIV documentation written by Will Daystrom provides some
  7. information regarding the operation of Chains or Doors in WWIV. 
  8. This document is meant to supplement what is found there and to
  9. provide some help on running doors that may be written for other
  10. types of software.  I hope that you will find this information to
  11. be useful to you.
  12.  
  13. 1.0  WWIV Games
  14.  
  15.      Games can be characterized as WWIV games if one of two
  16. conditions occur.  First, if the game is written to specifically
  17. make use of the drop file known as CHAIN.TXT.  By drop file, is
  18. meant a file that is created by the BBS software either at the time
  19. of logon or when a door (chain) is entered.  This file typically
  20. contains information about the user and/or the system.  A commented
  21. CHAIN.TXT, written by MrBill is included as an appendix to this
  22. document.  Some games are written to make specific use of the
  23. information contained in the CHAIN.TXT file.  These games, although
  24. perhaps not specifically written for WWIV alone, are discussed in
  25. the category of WWIV games because they have been written to work
  26. with WWIV.
  27.  
  28.      The second condition that causes a game to be known as a WWIV
  29. game is that it makes use of the special dos color codes contained
  30. in the WWIV software.  These games are characterize by use of the
  31. DOS color commands (pseudo-ansi) found in WWIV.  These colors are
  32. discussed in the DEFAULT section of the software and are
  33. configurable by the user.  WWIV will interpret the  symbol as a
  34. color command when it is followed by a number.  Because WWIV is one
  35. of the few BBS programs that can use these color commands, games
  36. containing them are almost always written for the exclusive use of
  37. WWIV boards.  These games are also most often characterized as
  38. games where the CHAINEDIT option of USE DOS INTERRUPTS should be
  39. left at the default setting of Y.
  40.  
  41. 2.0  Games for Other Software
  42.  
  43.      Games that may be considered as being written for other
  44. software are those which do not use CHAIN.TXT and which instead use
  45. one of the drop files of another bbs software.  These usually
  46. include games which use DORINFO1.DEF (RBBS, QBBS, REMOTE ACCESS),
  47. games which use PcBOARD.SYS (PcBoard versions 12 and 14), games
  48. which use DOOR.SYS (Wildcat 3.0, GAP, and PcBoard 14.5+), and games
  49. which use CALLINFO.BBS (pre-version 3.0 of Wildcat).  These games
  50. can often be made to work with WWIV provided that a 'converter' is
  51. also used.  The use of converters and so forth will be discussed
  52. later.
  53.  
  54.  
  55. 3.0  Setting up WWIV games
  56.  
  57.      Most WWIV games have relatively good documentation and
  58. therefore setting them up and getting them to work is usually very
  59. straight forward.  However, if there is no documentation and/or the
  60. documentation seems insufficient, then there are a number of things
  61. that you can experiment with by trial and error to see if you can
  62. get the game to run.
  63.  
  64. 3.1  Placement of Game Files
  65.  
  66.      If the game does not tell you where to place the files, you
  67. can try each of the following setups to see if one of them causes
  68. the game to work:
  69.  
  70.      a.  In its own directory
  71.  
  72.          Example:  C:\WWIV\MWAR
  73.  
  74.      b.  In a directory called CHAINS (especially for older WWIV
  75.          games)
  76.  
  77.          Example:  C:\WWIV\CHAINS
  78.  
  79.      c.  In a directory off of CHAINS (also popular place for older
  80.          WWIV games)
  81.  
  82.          Example:  C:\WWIV\CHAINS\MWAR
  83.  
  84.      d.  In the main BBS directory
  85.  
  86.          Example:  C:\WWIV
  87.  
  88. 3.2  Relationship to CHAIN.TXT
  89.  
  90.      If you get a 'parameter file not found' or other type of error
  91. message from the game, then it may be that it is not finding
  92. CHAIN.TXT correctly.  You may try incorporating a batch file and
  93. copying the CHAIN.TXT to the directory where the game is located.
  94.  
  95.      Example:
  96.  
  97.      Use  DOS commands as follows:
  98.  
  99.      copy con MWAR.BAT
  100.      @echo off
  101.      copy chain.txt c:\wwiv\chains\mwar
  102.      cd chains\mwar
  103.      mwar
  104.      cd\wwiv
  105.      
  106. then press CTRL Z or F6 (ie function key 6) to save the batch  
  107. file.  
  108.  
  109. 3.3  DOS Interrupts
  110.  
  111.      Some games written especially for WWIV will let the BBS handle
  112. the DOS INTERRUPTS.  This is especially true of many games written
  113. in PASCAL for use with WWIV.  A sign that sometimes the DOS
  114. interrupt option is set incorrectly is when the game echos double
  115. characters.
  116.      If the game is viewable from local mode but not from the
  117. remote mode, then you may want to experiment with setting the DOS
  118. INTERRUPTS option differently.
  119.  
  120. 3.4  SHRINK Option
  121.  
  122.      Many games do not necessitate the BBS to shrink out in order
  123. to run them; however, if you experience a "lock up" or freezing of
  124. the computer when you try to run the game, this may be an
  125. indication that there is insufficient memory available and that you
  126. should shrink the BBS.  Also, in my experience, it may be helpful
  127. to set the BBS to shrink out if the game is large (ie the file size
  128. is big).
  129.  
  130. 4.0   Setting up Non-WWIV Games
  131.  
  132.      Because these games are not specifically made for WWIV, the
  133. first step is to determine what software they support.  You will
  134. know what CHAIN.TXT CONVERTER to run by noting the types of drop
  135. files supported.  The more popular converters currently in use by
  136. WWIV Sysops are:
  137.  
  138.      WWUTIL5 by Phil DeWitt. This utility will convert CHAIN.TXT
  139.      to DORINFO1.DEF, CALLINFO.BBS, and PcBOARD.SYS.  
  140.  
  141.      WWUTIL6 by Filo.  This utility is based upon Phil DeWitt's
  142.      code, but it offers two additional parameters which may be
  143.      useful.  A command line parameter of H will pass the user's
  144.      handle rather than his real name to the door and an F will
  145.      pass a locked comport speed rather than the user's baudrate.
  146.      The latter is sometimes helpful in getting a game to work
  147.      where you are running a hi-speed modem with a locked comport.
  148.  
  149.      QKDOOR by Christopher Hall.  This utility provides the 
  150.      ability to convert the drop file from anyone of the following 
  151.      types of BBS software to any of the others:
  152.      
  153.  
  154.                 GAP             -> Door.Sys
  155.                 Genesis Deluxe  -> CallInfo.BBS
  156.                 GT PowerComm    -> GTUser.BBS
  157.                 Osiris#         -> ExtInfo#.QBS
  158.                 OsirisSE###     -> Out###.QBS
  159.                 PCBoard v12xx   -> PCBoard.Sys
  160.                                    PCBoard.Dat
  161.                                    Users
  162.                 PCBoard v14xx   -> PCBoard.Sys
  163.                                    PCBoard.Dat
  164.                                    Users
  165.                 QuickBBS        -> DorInfo1.Def
  166.                 RBBS#           -> DorInfo#.Def
  167.                 WildCat         -> CallInfo.BBS
  168.                 Remote Access   -> Dorinfo1.Def
  169.                 SpitFire
  170.                 WWIV           -> Chain.Txt
  171.  
  172. Syntax used for QKDOOR is:
  173.  
  174. QkDoor [Path\]From_Door_Type [Path\]To_Door_Type [Locked_Baud_Rate]
  175.  
  176. 4.1  Batch files using converters
  177.  
  178.      You will want to call the non-WWIV game with a batch file
  179. that uses a converter.  For example, let us say that you are going
  180. to run a QBBS game (one that requires DORINFO1.DEF using Filo's
  181. converter (WWUTIL6) with user handle's being passed t the game
  182. and the game (MWAR) is located in C:\WWIV\MWAR, then the batch
  183. file to call the game would be:
  184.  
  185.        @echo off
  186.        WWUTIL6 H                   (the H is for Handle)
  187.        cd C:\WWIV\MWAR
  188.        MWAR                        (plus any command line         
  189.                                     parameters) 
  190.        cd\WWIV
  191.  
  192. If that does not work, then it may be necessary to add a line to
  193. the batch file immediately after WWUTIL6 H which copies the
  194. DORINFO1.DEF to the game directory:
  195.  
  196. (ie. copy dorinfo1.def C:\WWIV\MWAR
  197.  
  198. 4.2  Fossil Drivers
  199.  
  200.      WWIV does not require a fossil driver in order to run because
  201. Wayne Bell has written all of the I/O calls to the comport;
  202. however, some BBS software requires a Fossil Driver in order to
  203. operate because the authors have written their program to use the
  204. Fossil.  Thus, some games may expect a fossil to be present even
  205. though that is not mentioned in the documentation of the game. 
  206. This is particularly true for games written for QBBS, RBBS, and
  207. OPUS.
  208.  
  209.      WWIV should operate just fine even when a fossil driver is
  210. loaded.  Most of these fossil drivers take 5-10k of memory, so
  211. if your system is tight on memory, you may wish to load the fossil
  212. only when shrinking out and unload it when you finish the game. 
  213. This may be accomplished by using the EXE or COM version of the
  214. fossil and having it loaded and unloaded in the batch file that
  215. calls the game.  
  216.  
  217.      The better known fossil drivers are X00, BNU, and OPUSCOM.
  218. I personally use BNU170, but many WWIV system operators report
  219. excellent results from X00.  I do not have experience with OPUSCOM
  220. and so make no claims for it.  However, using BNU I have been able
  221. to get many games to run that would not otherwise do so.
  222.  
  223. 5.0  Other Comments regarding CHAINS
  224.  
  225.      Some of the games written for WWIV in Pascal are presented
  226. in uncompiled form by the authors.  This is often done so that
  227. the pascal code may be altered or customized for your board. 
  228. Usually these authors have made use of something called a
  229. COMMON.PAS file which interfaces the game with WWIV.  If a 
  230. particular game has not been compiled, you must first compile it
  231. with the appropriate version of the Turbo Pascal compiler using the
  232. appropriate version of COMMON.PAS.  Most of the versions of
  233. COMMON.PAS are available for downloading on the WWIV Support
  234. Boards.
  235.  
  236. 5.1  BRUNxx
  237.  
  238.      Some games written in QuickBASIC have been compiled to utilize
  239. an intermediate program called BRUN (Basic RUN time module).  Such
  240. games require the BRUN module specific to the compiler. Current
  241. versions of BRUN are BRUN20, BRUN30, BRUN40, and BRUN45.  Again,
  242. these programs are available on most WWIV Support Boards.  The
  243. BRUNxx file may be placed in your path and used by all programs
  244. that require it.  One advantage of the Basic RUN time compilers is
  245. that the resulting EXE's require significantly less space
  246. (approximately 35k less per program).
  247.  
  248. 6.0  Comments and Suggestions
  249.  
  250.      Please send comments and suggestions regarding this doc file
  251. to Filo (1 @5252 WWIVnet, 1 @15252 WWIVLink).
  252.  
  253.  
  254.                          Appendix A
  255.                          A Commented Chain.txt
  256.  
  257. *******************************************************************************
  258. *                                                                             *
  259. *                           CHAIN.TXT Definition File                         *
  260. *                                   by MrBill                                 *
  261. *                                                                             *
  262. *    I don't think that anyone has fully documented what everything in the *
  263. * CHAIN.TXT file is. I could be wrong; I could be right. I could be black; I  *
  264. * could be white. Uh oh! PIL lyrics are creeping into my brain! Anyways, if   *
  265. * you ever did want to know what all the information in CHAIN.TXT is, here's  *
  266. * the information. It could be useful to someone who plans on writing a DOOR, *
  267. * online program, or conversion program for WWIV.                             *
  268. *                                                                             *
  269. * MrBill                                                                      *
  270. * WWIVnet Address 1 @ 7300 [MrBill's Abode 703-369-6140]                      *
  271. * Compuserve Address 71001,1101                                               *
  272. * GEnie Address, oh hell, i forgot!                                           *
  273. *                                                                             *
  274. *******************************************************************************
  275. -----------------------------------CHAIN.TXT-----------------------------------
  276. 1                                     User number
  277. MRBILL                                User alias
  278. Bill                                  User real name
  279.                                       User callsign (HAM radio)
  280. 21                                    User age
  281. M                                     User sex
  282.   16097.00                            User gold
  283. 05/19/89                              User last logon date
  284. 80                                    User colums
  285. 25                                    User width
  286. 255                                   User security level (0-255)
  287. 1                                     1 if Co-SysOp, 0 if not
  288. 1                                     1 if SysOp, 0 if not
  289. 1                                     1 if ANSI, 0 if not
  290. 0                                     1 if at remote, 0 if local console
  291.    2225.78                            User number of seconds left till logoff
  292. F:\WWIV\GFILES\                       System GFILES directory (gen. txt files)
  293. F:\WWIV\DATA\                         System DATA directory 
  294. 890519.LOG                            System log of the day
  295. 2400                                  User baud rate
  296. 2                                     System com port
  297. MrBill's Abode (the original)         System name
  298. The incredible inedible MrBill        System SysOp
  299. 83680                                 Time user logged on/# of secs. from midn.
  300. 554                                   User number of seconds on system so far
  301. 5050                                  User number of uploaded k
  302. 22                                    User number of uploads
  303. 42                                    User amount of downloaded k
  304. 1                                     User number of downloads
  305. 8N1                                   User parity
  306. 2400                                  Com port baud rate
  307. 7400                                  WWIVnet node number
  308. --------------------------------------EOF--------------------------------------
  309.  
  310.  
  311.  
  312.