home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / ELRIC24.MOD < prev    next >
Text File  |  1990-04-28  |  5KB  |  178 lines

  1. Elric24.mod/Elric24.zip
  2.  
  3. Hello, and welcome to Elric's mod number 24.
  4. Here's the deal. I use WWIVNet. I really hate it when the net analyzes
  5. the connections, and doesn't send feedback. I took a look through the code,
  6. and found out why (I think).
  7. There are 4 important files in this process,
  8. BBSLIST.NET  Text file with list of BBS's in the net.
  9. CONNECT.NET  Text file with list of connections
  10. CALLOUT.NET  Text file with a list of who you call, when, passwords, etc...
  11. BBSDATA.NET  Not a text file. Compiled version of the above files.
  12.  
  13. Now, the net software actually uses BBSDATA.NET when doing it's thing,
  14. but since it's impossible for you to read, it lets you edit the text files.
  15. Whenever it sees that a text file is newer than the compiled one, it
  16. recompiles it. But here's where the problem comes in.
  17.  
  18. If BBSLIST or CONNECT changed, then you get feedback telling you average hops,
  19. XXX BBSs are YYY hops away,
  20.  
  21. problems in callout.net, harass your AC immediately...
  22.  
  23. BUT, if CALLOUT.Net changes, no feedback. Well, I took some time, and
  24. found the problem. So, here it is...
  25.  
  26. /** this step is indeed a form step, much like a form letter **/
  27. 1. From DOS, in your dir where you keep your source....
  28.  
  29. PKZIP SOURCE *.c *.h
  30.  
  31. If you already have a source zip file, then
  32.  
  33. PKZIP -f source *.c *.h
  34.  
  35. This way you have a copy of everything before you screw it up with a bad mod.
  36. If you decide to take the mod out, it's as easy as
  37. PKUNZIP -x source
  38.  
  39. and hit Y to overwrite any files you changed.
  40.  
  41. /** we now resume our regularly scheduled mod with step 2.... **/
  42.  
  43.  
  44. 2. Load up...sysopf1.c.
  45.  
  46. Search down for check_bbsdata. Strangely enough, there are 2 copies
  47. of this procedure. The first one is preceded by an #ifdef OLD, so
  48. only one of them gets compiled. I could have checked to see which one
  49. got compiled, but, I just didn't care. If you have an older or a newer version
  50. of WWIV (i am currently using 4.1) (always thinking about the future), then
  51. you may only have one of these, so I have included both of them so
  52. you can just figure out which one to change on your own.
  53.  
  54. 2.1 The first copy of check_bbsdata
  55.  
  56. /** starts out like this.....***/
  57. #ifdef OLD
  58.  
  59. int check_bbsdata()
  60. {
  61.   char s1[81],s2[81],s3[81],s4[81];
  62.   int i,e1,e2,e3,e4,tf,n,tf1;
  63.   struct ftime f1,f2,f3,f4;
  64.  
  65.   n=0;
  66.   strcpy(s1,syscfg.datadir);
  67.   strcat(s1,"BBSLIST.NET");
  68.   strcpy(s2,syscfg.datadir);
  69.   strcat(s2,"CONNECT.NET");
  70.   strcpy(s3,syscfg.datadir);
  71.   strcat(s3,"CALLOUT.NET");
  72.   strcpy(s4,syscfg.datadir);
  73.   strcat(s4,"BBSDATA.NET");
  74.   e1=exist(s1);
  75.  
  76. If you have one like this, skip down a few lines, and make these changes...
  77.  
  78.  
  79.  
  80.       checkup(&f3,&f4,&tf);
  81.     } else {
  82.       tf=1;
  83.       n=1;
  84.     }
  85.   }
  86.   if (tf) {
  87.     holdphone(1);
  88. #ifdef OLD_WAY
  89. /** comment out these lines.... **/
  90.  /*  if (n)  */
  91.       tf=run_external1("NETWORK3 Y");
  92. /*   else
  93.       tf=run_external1("NETWORK3"); */
  94. #else
  95. /*   if (n)  */
  96.       shrink_out("NETWORK3 Y",0,0,0,0);
  97. /*   else
  98.       shrink_out("NETWORK3",0,0,0,0); */
  99. #endif
  100.     if (csn!=NULL)
  101.       farfree(csn);
  102.     if (cnn!=NULL)
  103.       farfree(cnn);
  104.  
  105. When you're done, all that's left that matters there should be....
  106.  
  107.  
  108. #ifdef OLD_WAY
  109.   tf=run_external("NETWORK3 Y");
  110. #else
  111.   shrinkout("NETWORK3 Y",0,0,0,0);
  112. #endif
  113.  
  114.  
  115.  
  116. 2.2 If you have a check_bbsdata that starts like this....
  117.  
  118. int check_bbsdata()
  119. {
  120.   char s[81];
  121.   int ok,ok2;
  122.   struct ftime ft;
  123.  
  124.   sprintf(s,"%sCONNECT.UPD",syscfg.datadir);
  125.   if ((ok=exist(s))==0) {
  126.     sprintf(s,"%sBBSLIST.UPD",syscfg.datadir);
  127.     ok=exist(s);
  128.  
  129.  
  130.  
  131. Then make these changes.....
  132.  
  133.  
  134.  
  135.     ok=checkup2(&ft,"BBSLIST.NET")||checkup2(&ft,"CONNECT.NET");
  136.     ok2=checkup2(&ft,"CALLOUT.NET");
  137.   }
  138.   if (ok||ok2) {
  139. /** old line    sprintf(s,"NETWORK3%s",(ok?" Y":""));  **/
  140. /** change to **/
  141. sprintf(s,"NETWORK3 Y");
  142.     holdphone(1);
  143.  
  144.  
  145. 3. That's it. Compile it, and away you go.
  146. One note though, this means dead.net gets resorted every time as well. In a
  147. NORMAL situation, no real problem, you shouldn't have one.
  148. Of course, if you are like me, and you are the sole connect for half an
  149. area code in another state which is dropping out of the network like
  150. flies, then you collect 200-300K a week of dead.net files....
  151.  
  152. /** hey, it's the form info file **/
  153. As usual, I take no responsibility for hard drive crashes, death in the
  154. family, or end of the world as we know it resulting from this mod.
  155.  
  156. It's your fault if you didn't back up the files before you made the mod.
  157.  
  158. It's your fault if you don't back up your ENTIRE hard drive AT LEAST once
  159. a month.
  160.  
  161. It works on my system with Turbo C 2.0, WWIV 4.1, V20/8088, 640K/640EMS.
  162.  
  163. If you use this, the only payment I ask is that you send me a
  164. note through WWIVNet to 1@8251 saying you are using it...not too much to
  165. ask is it?
  166.  
  167. If you have any problems, you can reach me through WWIV-Net, 1@8251, or call
  168. my BBS.
  169. The Kingdom of Melnibone
  170. 812-877-3488  24 Hrs a day
  171. 3/12/2400/4800/9600/12,000/14,400 baud HST MNP5
  172. Auto-validation of WWIV sysops on first call
  173. Xmodem, Ymodem, DSZ Zmodem with retry, Ymodem-G
  174.  
  175. Lord Elric
  176. WWIV Net   1@8251
  177. WWIV Link  1@18251
  178.