home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / 1013TW!2.ZIP / TW2NET.DOC < prev    next >
Text File  |  1992-05-29  |  18KB  |  481 lines

  1.  
  2. Tradewars 2 Network mode docs.               Written 10/90, 01/91 & 05/92
  3.  
  4. By John Morris
  5.  
  6. Formerly a registered only option, it is now available to all SysOps who
  7. use TW2.
  8.  
  9. What this DOC is all about:
  10. ---------------------------
  11. This DOC file does not refer to TW2 running on local area networks. Instead
  12. is contains information on how to run a TW2 game which 'spans' several BBS's.
  13.  
  14.  
  15. TW2 Network Mode
  16. ----------------
  17. First of all, If you wish to set up TW2 in network mode, I suggest you
  18. have network experience.. FidoNet, RBBSNet, PC-Relay.. etc. If you don't
  19. have network experience, you should get some before setting TW up in network
  20. mode!
  21.  
  22. Here is how the networking should work. (In theory that is..)
  23.  
  24. Each individual game will be part of a TW network. This TW network covers
  25. only the BBS's which are sharing the game. This 'network' should be
  26. determined ahead of time. A BBS can be added in the midst of a current game,
  27. but we'll discuss that later.  The network will consist of a Host, and
  28. several nodes under the host. The host, and each node will have a unique
  29. TW2 node number. For instance, the host would be 'node 1' and each node would
  30. have its own number. (2, 3, 4..etc.) This should be determined by the SysOp
  31. of the host BBS. The hosts game of TW2 will be the game by which everything
  32. will be determined.
  33.  
  34. The 'data' file which will contain the actual play information should be
  35. put in its own directory. Use TWEDIT to set this network data file directory.
  36.  
  37. The TW message base is now Fido message compatible. This will enable the
  38. message base for the TW game to be passed among BBS's in ECHO mail fashion.
  39. You will also set the Message base subdirectory in TWEDIT. To aid in the
  40. processing of the echo mail, you must also give TW your actual network
  41. net, and node numbers. This is to differentiate between your TW2 messages,
  42. and someone other nodes TW2 messages. If you do not have a way to pack up
  43. Fido-style messages, TWMaint can do it for you, but you must TWMaint to do
  44. so. The TWMaint method may be preferable in all cases. More on that later.
  45.  
  46. How to get your network game started.
  47. -------------------------------------
  48.  
  49. First,  decide who the host is. When that's done, the host should initialize
  50. the game. Next, determine the TW2 node numbers. The host should be TW2 node
  51. 1. the other nodes would be 2, 3, 4.. etc. The host should determine the
  52. TW2 node numbers.  The host should also determine how many players will
  53. be allowed in the game.. lets say 10 to 20.. use TWEDIT to change this number.
  54. If you wish to simplify the start of the game, use TWEDIT to add in all users
  55. which will be playing in this game. This includes all users from all of the
  56. networked BBS's. Note, you don't have to add the users in if you don't want
  57. to. You must also set the maximum number of nodes for this network game.
  58. This is the total number of nodes (BBS's) sharing the game.
  59.  
  60. Then the host should send the following files to the nodes.
  61.  
  62. TWPLAYER.DAT
  63. TWSCTR01.DAT
  64. TWSCTR02.DAT
  65. TWPORT.DAT
  66.  
  67. When the nodes have received the files, they should: First, initialize the
  68. game, then copy these files OVER the ones created during intialization.
  69. At this point, they will have the same data files as you. This is a must!
  70.  
  71. When the game is first played, the users may notice several things. First,
  72. if a new users joins the game on the host, he/she may play the game at
  73. that point in time. If a new player joins on a BBS other than the host, they 
  74. will have to wait to play. The same things goes for teams. On the host, teams
  75. can be created and used now, and on the nodes, they will need to wait.
  76.  
  77. The reason for this is simple. The host TW2 controls the doling out of the
  78. user and team records. This makes sure that all players have the same
  79. record number on each node. Same goes for teams.
  80.  
  81. When a new player joins on a node, they will be told that their player
  82. request has been sent out. This data is the sent to the host. If the host
  83. has room, that person receives a record, and the host then sends info to
  84. all nodes telling them to create a new user record with 'so-n-sos' name.
  85. Once again, same goes for the teams.
  86.  
  87. THE WAY IT IS SUPPOSED TO WORK
  88. ==============================
  89.  
  90. NODE PROCESSING  of data files  (DAT and MSG files)
  91. ---------------
  92.  
  93. When play occurs on each node certain files are created. All play data is
  94. saved to a file called 'TW2NETxx.DAT' (Where 'xx' is the node number in
  95. hexidecimal format) Example:
  96.  
  97. TW2 Network node 2's file would be:
  98.  
  99. TW2NET02.DAT
  100.  
  101. Node 10's would be:
  102.  
  103. TW2NET0A.DAT
  104.  
  105. This file can be found in the Network directory.
  106.  
  107. At a certain time (or times) per day, you need to pack up your new messages
  108. and send the Play data, and packed messages to your host for processing.
  109.  
  110. To pack up your messages you need to use TWMaint with the following
  111. command:
  112.  
  113. TWMAINT /L /B /ME
  114.  
  115. /L   (Local mode)
  116. /B   (batch mode.. don't wait for input)
  117. /ME  (Message Export.)
  118.  
  119. TWMAINT will create a file called 'TW2NETxx.MSG' in your network directory.
  120. ('xx' is again the node number in hex format)
  121.  
  122. Node 2's file would be 'TW2NET02.MSG'  Node 10's would be 'TW2NET0A.MSG'
  123.  
  124. You then need to send both TW2NETxx.DAT and TW2NETxx.MSG to the host.
  125.  
  126. For instance, you ZIP up both files in a ZIP file called:
  127.  
  128. TW2DATxx.ZIP
  129.  
  130. After you have ZIPped the two files, Delete them!
  131.  
  132. Next Send these files to your Host for processing  (How/When these files are
  133. sent and processed is determined both by you, and your host)
  134.  
  135. Next, I will discuss the host processing, if you aren't the host you don't
  136. need to read this section. Skip to NODE PROCESSING of include files (below).
  137.  
  138. HOST PROCESSING  of data files  (DAT and MSG files)
  139. ---------------
  140.  
  141. Mr. Host, There are several ways in which you can process the files you
  142. receive from your nodes. Here are the two most probable 'Options':
  143.  
  144. 1: You can process the data immediately and have the return data ready
  145. for download by that node in a couple of minutes.
  146.  
  147. 2: You can receive all the data files, and process them at one time, and
  148. the ZIP up all return data for download after a certain time.
  149.  
  150. Option 1 will probably be the most desirable method. But it is your choice.
  151.  
  152. In both options you will follow the same steps.
  153. 1:  you must pack your message base for the other nodes.
  154. 2:  you must tell TWMaint to process the data for ALL nodes.
  155.     This will make INClude files for both you, and all other nodes.
  156. 3:  you must include the play data into you game. That way you may process
  157.     player and team requests.
  158. 4:  you must tell TWMaint to process the play data files again!
  159.     This will include data in reply to player or team requests (if any)
  160. 5:  Then you need to include the messages sent to your node.
  161. 6:  ZIP the files up for a certain (or all) node(s).
  162.  
  163. You can do this in one 'simple' step.  Run TWMaint with the following
  164. command:
  165.  
  166. TWMAINT /L /B /ME /IR /MI
  167.  
  168. The sequence of the command line parms is not important. The data will be
  169. processed as per the 6 steps above.
  170.  
  171. /L   (local mode..)
  172. /B   (batch mode.. don't wait for input)
  173. /ME  (Message Export, Step 1)
  174. /IR  (Include data & ReInclude Data  ie: Steps 2, 3, 4)
  175. /MI  (Message Import, Step 5)
  176.  
  177. When you run TWMaint and NOT all nodes have sent in their data files, you
  178. will receive error messages! This is normal!  Don't worry about it!
  179.  
  180. Now an example of what is actually happening during each of those 6 steps.
  181. Lets say you are node 1, and you have received data from node 8, and you
  182. are using Option 1 (process the play data as it comes in, not all at once)
  183. You also have told TW2 that you have a total of 8 nodes in the network.
  184.  
  185. Example is as follows:
  186.  
  187. Before you received the data you will most likely have 1 file in your TW2
  188. network directory, TW2NET01.DAT. It contains your latest play data.
  189.  
  190. Next, You receive TW2DAT08.ZIP from node 8. You will unZIP the two files
  191. therein (TW2NET08.DAT, and TW2NET08.MSG) into your TW2 network directory.
  192.  
  193. Delete TW2DAT08.ZIP!
  194.  
  195. In your network directory, you will now have 3 files:
  196. TW2NET01.DAT    your play data
  197. TW2NET08.DAT    node 8's play data
  198. TW2NET08.MSG    node 8's latest messages
  199.  
  200. Now you need to switch to your TW2 directory, and run TWMAINT with the command
  201. shown above.
  202.  
  203. TWMAINT STEP 1:
  204. (packing your message base into the file TW2NET01.MSG)
  205.  
  206. You will now have 4 files in your net directory:
  207. TW2NET01.DAT, TW2NET01.MSG, TW2NET08.DAT, TW2NET08.MSG
  208.  
  209. TWMAINT STEP 2:
  210. (processing data for all nodes)
  211.  
  212. Suprise! You now have 16 (sixteen) files in your network directory. They will
  213. have file extensions which you will not have seen yet. These extensions are:
  214.  
  215. INC  for 'INClude this data'.
  216. MIN  for 'Message INclude'.
  217.  
  218. So, if you see TW2NET01.INC it is INClude data for node 1. If you see,
  219. TW2NET03.MIN, it is messages for inclusion on node 3.
  220.  
  221. These 16 files are as follows:
  222.  
  223. TW2NET01.INC    contains Node 8's data for inclusion in your (node 1's) game.
  224. TW2NET01.MIN    contains Node 8's messages for inclusion in your message base.
  225.  
  226. TW2NET02.INC    contains play data for inclusion on node 2
  227. TW2NET02.MIN    contains messages for inclusion in node 2's message base.
  228.  
  229. TW2NET03.INC    contains play data for inclusion on node 3
  230. TW2NET03.MIN    contains messages for inclusion in node 3's message base.
  231.  
  232. .
  233. .
  234. .
  235.  
  236. TW2NET07.INC    contains play data for inclusion on node 7
  237. TW2NET07.MIN    contains messages for inclusion in node 7's message base.
  238.  
  239. TW2NET08.INC    contains play data for inclusion on node 8
  240. TW2NET08.MIN    contains messages for inclusion in node 8's message base.
  241.  
  242. Eventually each node must receive their two files to include in their game.
  243. But since we are working with node 8, we'll only worry about its two files
  244. for now.
  245.  
  246. TWMAINT STEP 3:
  247. (include its own INClude file now in the Net directory)
  248.  
  249. TWMaint will have read TW2NET01.INC into the host game. It will then have
  250. deleted that file. Now you have 15 files in your net directory. If the
  251. data received from node 8 had player or team requests, then you will
  252. have 16 files. This new file is TW2NET01.DAT  (it's baaaack!)
  253. TW2NET01.DAT contains replies to those requests (if any)
  254.  
  255. Since we may have something in that DAT file again, we must Reprocess the
  256. data files again.
  257.  
  258. TWMAINT STEP 4:
  259. (reprocess the data files)
  260.  
  261. Any new data contained in TW2NET01.DAT is appended to all INClude files
  262. in the network directory. TW2NET01.DAT is deleted again.
  263.  
  264. TWMAINT STEP 5:
  265. (put new messages into your message base)
  266.  
  267. At this point, your TW2NET01.MIN is included into your message base. This
  268. file is then deleted.
  269.  
  270. You should have 14 files in the network directory. These files are the
  271. data and message include files for all nodes but yours.
  272.  
  273. TWMAINT STEP 6:
  274. Since we have chosen option 1 (process each node as it comes in) We need to
  275. ZIP up two files for node 8. So, your batch file should create a ZIP file
  276. called TW2INC08.ZIP  This ZIP file will contain the two files:
  277.  
  278. TW2NET08.INC      play data include file for node 8
  279. TW2NET08.MIN      message include file for node 8
  280.  
  281. !! VERY IMPORTANT -- READ ME !!
  282.  
  283. Don't ZIP the files up until immediately before the ZIP file is going to
  284. be downloaded or sent.
  285.  
  286. After you have ZIPped those two files up, delete them!
  287.  
  288. After the ZIP file has been downloaded, or sent, delete it!
  289.  
  290. Failure to follow these rules here may result in some screwed up data. So
  291. be careful!
  292.  
  293. HOST OPTION 2
  294. -------------
  295. If you have chosen Option 2 (process all nodes at one time) you will process
  296. the nodes in the same fashion, BUT you will wait until you have all DAT and
  297. MSG files from ALL nodes before using the TWMAINT command shown above.
  298.  
  299. Once you have all the data files, you will run the TWMaint command:
  300.  
  301. TWMAINT /L /B /ME /IR /MI
  302.  
  303. After TWMaint is done, you will have 14 include files (as per above).
  304. You can then ZIP these files up for each node, and make them available
  305. for download.
  306.  
  307. Remember!  All operations (except for ZIPping, and unZIPping) is done by
  308. TWMaint automatically. So don't worry about the complexity.
  309.  
  310. End of host processing!
  311.  
  312. NODE PROCESSING  of include files  (INC and MIN files)
  313. ---------------
  314.  
  315. We will assume your TW2 game is node 6, and you have received a file called
  316. TW2INC06.ZIP from your net host. This ZIP file contains two files:
  317.  
  318. TW2NET06.INC    data to include in your TW2 game
  319. TW2NET06.MIN    messages to include in your TW2 message base.
  320.  
  321. These two files were created by your net host. That is the only place you
  322. can receive these files from.
  323.  
  324. UnZIP the file TW2INC06.ZIP into your TW2 network directory.
  325.  
  326. Switch to your TW2 directory.
  327.  
  328. Run TWMAINT with the following command:
  329.  
  330. TWMAINT /L /B /MI /I
  331.  
  332. This will tell TWMaint to:
  333.  
  334. /L  (Run in local mode.)
  335. /B  (Don't ask any questions)
  336. /MI (Include messages from the file TW2NET06.MIN)
  337. /I  (Include play data from the file TW2NET06.INC)
  338.  
  339. After TWMaint is done, those two files will be deleted.
  340.  
  341. Thats about it...
  342.  
  343.  
  344. File Name Formats:
  345. ------------------
  346.  
  347. The file prefixes will be the same for all files. They are in the format
  348.  
  349. TW2NETxx         (where 'xx' is the node number in hex format)
  350.  
  351. The file extensions come in four flavors:
  352.  
  353. DAT      Play data     -- Created by each node when play occurs
  354. MSG      Message data  -- Created by each node when exporting messages
  355.  
  356. INC      Include data  -- Created for each node BY THE HOST
  357. MIN      Msg Include   -- Created for each node BY THE HOST
  358.  
  359. When sending your data files to the host. I suggest you ZIP your two data
  360. files into a file called:
  361.  
  362. TW2DATxx.ZIP   (where 'xx' is your node number in hex format)
  363.  
  364. Mr. Host:
  365. When sending the include files to each node, I suggest you ZIP the two data
  366. files into a file called:
  367.  
  368. TW2INCxx.ZIP   (where 'xx' of the node in hex format)
  369.  
  370. Hex numbers in filenames
  371. ------------------------
  372.  
  373. The hex numbers always occupy 2 spaces in the filename ('xx') Here's how
  374. they'd look if you were counting:
  375.  
  376. Hex  01  02  03 . . . 09  0A  0B . . 0E  0F  10  11 . . 19  1A . . 1F  20
  377.  
  378. Dec  1   2   3  . . . 9   10  11 . . 14  15  16  17 . . 25  26 . . 31  32
  379.  
  380. Using this method, you can have 255 nodes playing the same TW2 game!
  381.  
  382. MISC. RAMBLINGS & Things to keep in mind
  383. ---------------
  384.  
  385. In general, this whole scheme of link TW2 games together is very crude. That's
  386. mainly because we cannot do real time data transfers between the BBS's which
  387. would be the most ideal situation. Because there is a time lag, you will
  388. notice some odd events occuring at times. For instance, it is perfectly normal
  389. for you to be trading away on one system, and to be quite dead on another
  390. system. When the next data xfer comes along, your record will be updated as
  391. dead..
  392.  
  393. Not all data will be perfect all the time. Rankings may be a little off
  394. but I have tried to include as much data as possible to keep the rankings
  395. close to what they'd be in a normal game.
  396.  
  397. The actual set-up of your 'network' may take some thought on your part. In
  398. some cases it isn't as easy as it looks.  I suggest using the Host option 1
  399. where each 'node SysOp' can call in at any time to have his/her data files
  400. processed. This will make it more convenient for everyone. And keep an open
  401. mind throughout the set-up process!
  402.  
  403. Redundancy-City:  (but I feel I have to stress some of this stuff)
  404.  
  405. Another area you may get confused is what files go where. Let me see if I can
  406. explain this real simple-like.
  407.  
  408. First of all, all filenames begin with TW2NETxx.  'xx' is the node number
  409. in hex format. If your system is node 6 all files you will deal with will
  410. start with TW2NET06.
  411.  
  412. You system CREATES two types of files: DAT and MSG files. The DAT file is
  413. created when players play your game. The MSG file is created when you run
  414. TWMaint with the command: TWMAINT /L /B /ME
  415.  
  416. You send these two files types to your host for processing. In return:
  417.  
  418. The host system CREATES two types of files which will be sent back to your
  419. system: INC and MIN files.  These two file types will be 'INcluded' into
  420. your TW2 data files.
  421.  
  422. If you are node 10 here is an example of the files you will deal with:
  423.  
  424. Your system CREATES:
  425. TW2NET0A.DAT      -- this is created automatically by TW2.EXE
  426. TW2NET0A.MSG      -- this is created when you run TWMAINT /L /B /ME
  427.  
  428. These two files are first ZIPped up into a file called TW2DAT0A.ZIP
  429. Then you would delete these two files.
  430. You would then send TW2DAT0A.ZIP to your host so it can be processed.
  431.  
  432. After the host receives your ZIP file, it unzips them into its NET directory.
  433. It then processes those two files.
  434.  
  435. The Host system CREATES (for you):
  436. TW2NET0A.INC      -- data to be put into your TW2 data files
  437. TW2NET0A.MIN      -- Messages to be included into your TW2 message base.
  438.  
  439. The host will ZIP these two files up for you in the file TW2INC0A.ZIP
  440. You would then get TW2INC0A.ZIP and unZIP the two files into your
  441. NET directory and then run TWMAINT /L /B /MI /I to include them into
  442. your game.
  443.  
  444. The ZIPping and UnZIPping is NOT done automatically! You must write a
  445. batch file to do it. For more info, go back and read NODE Processing
  446. Pt.1, HOST Processing, and NODE Processing Pt.2!
  447.  
  448. A couple of batch file examples for the nodes (ie: not the host)
  449.  
  450. Say you are node 2 and ready to send your files to the host so they can get
  451. processed. here is the batch file:
  452.  
  453. -------cut here-------
  454. CD \TW2
  455. TWMAINT /L /B /ME
  456. CD \TW2\NET
  457. PKZIP -m TW2DAT02 TW2NET02.DAT TW2NET02.MSG
  458. -------cut here-------
  459.  
  460. TWMAINT /L /B /ME will export messages into TW2NET02.MSG
  461.  
  462. The '-m' parameter for PKZIP means PKZIP should add those files to 
  463. TW2DAT02.ZIP then delete those two files (TW2NET02.DAT, TW2NET02.MSG).
  464.  
  465.  
  466. Next, if your system receives a TW2INC02.ZIP from the host, you need to
  467. process that data into your game like so:
  468.  
  469. -------cut here-------
  470. CD \TW2\NET
  471. PKUNZIP \FILES\TW2INC02.ZIP
  472. DEL \FILES\TW2INC02.ZIP
  473. CD \TW2
  474. TWMAINT /L /B /MI /I
  475. -------cut here-------
  476.  
  477.  
  478. If you or your fellow SysOps need help in configuring the network, don't
  479. be afraid to contact me. For info on how to contact me, see TW2.DOC
  480.  
  481.