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 >
Wrap
Text File
|
1990-04-28
|
5KB
|
178 lines
Elric24.mod/Elric24.zip
Hello, and welcome to Elric's mod number 24.
Here's the deal. I use WWIVNet. I really hate it when the net analyzes
the connections, and doesn't send feedback. I took a look through the code,
and found out why (I think).
There are 4 important files in this process,
BBSLIST.NET Text file with list of BBS's in the net.
CONNECT.NET Text file with list of connections
CALLOUT.NET Text file with a list of who you call, when, passwords, etc...
BBSDATA.NET Not a text file. Compiled version of the above files.
Now, the net software actually uses BBSDATA.NET when doing it's thing,
but since it's impossible for you to read, it lets you edit the text files.
Whenever it sees that a text file is newer than the compiled one, it
recompiles it. But here's where the problem comes in.
If BBSLIST or CONNECT changed, then you get feedback telling you average hops,
XXX BBSs are YYY hops away,
problems in callout.net, harass your AC immediately...
BUT, if CALLOUT.Net changes, no feedback. Well, I took some time, and
found the problem. So, here it is...
/** this step is indeed a form step, much like a form letter **/
1. From DOS, in your dir where you keep your source....
PKZIP SOURCE *.c *.h
If you already have a source zip file, then
PKZIP -f source *.c *.h
This way you have a copy of everything before you screw it up with a bad mod.
If you decide to take the mod out, it's as easy as
PKUNZIP -x source
and hit Y to overwrite any files you changed.
/** we now resume our regularly scheduled mod with step 2.... **/
2. Load up...sysopf1.c.
Search down for check_bbsdata. Strangely enough, there are 2 copies
of this procedure. The first one is preceded by an #ifdef OLD, so
only one of them gets compiled. I could have checked to see which one
got compiled, but, I just didn't care. If you have an older or a newer version
of WWIV (i am currently using 4.1) (always thinking about the future), then
you may only have one of these, so I have included both of them so
you can just figure out which one to change on your own.
2.1 The first copy of check_bbsdata
/** starts out like this.....***/
#ifdef OLD
int check_bbsdata()
{
char s1[81],s2[81],s3[81],s4[81];
int i,e1,e2,e3,e4,tf,n,tf1;
struct ftime f1,f2,f3,f4;
n=0;
strcpy(s1,syscfg.datadir);
strcat(s1,"BBSLIST.NET");
strcpy(s2,syscfg.datadir);
strcat(s2,"CONNECT.NET");
strcpy(s3,syscfg.datadir);
strcat(s3,"CALLOUT.NET");
strcpy(s4,syscfg.datadir);
strcat(s4,"BBSDATA.NET");
e1=exist(s1);
If you have one like this, skip down a few lines, and make these changes...
checkup(&f3,&f4,&tf);
} else {
tf=1;
n=1;
}
}
if (tf) {
holdphone(1);
#ifdef OLD_WAY
/** comment out these lines.... **/
/* if (n) */
tf=run_external1("NETWORK3 Y");
/* else
tf=run_external1("NETWORK3"); */
#else
/* if (n) */
shrink_out("NETWORK3 Y",0,0,0,0);
/* else
shrink_out("NETWORK3",0,0,0,0); */
#endif
if (csn!=NULL)
farfree(csn);
if (cnn!=NULL)
farfree(cnn);
When you're done, all that's left that matters there should be....
#ifdef OLD_WAY
tf=run_external("NETWORK3 Y");
#else
shrinkout("NETWORK3 Y",0,0,0,0);
#endif
2.2 If you have a check_bbsdata that starts like this....
int check_bbsdata()
{
char s[81];
int ok,ok2;
struct ftime ft;
sprintf(s,"%sCONNECT.UPD",syscfg.datadir);
if ((ok=exist(s))==0) {
sprintf(s,"%sBBSLIST.UPD",syscfg.datadir);
ok=exist(s);
Then make these changes.....
ok=checkup2(&ft,"BBSLIST.NET")||checkup2(&ft,"CONNECT.NET");
ok2=checkup2(&ft,"CALLOUT.NET");
}
if (ok||ok2) {
/** old line sprintf(s,"NETWORK3%s",(ok?" Y":"")); **/
/** change to **/
sprintf(s,"NETWORK3 Y");
holdphone(1);
3. That's it. Compile it, and away you go.
One note though, this means dead.net gets resorted every time as well. In a
NORMAL situation, no real problem, you shouldn't have one.
Of course, if you are like me, and you are the sole connect for half an
area code in another state which is dropping out of the network like
flies, then you collect 200-300K a week of dead.net files....
/** hey, it's the form info file **/
As usual, I take no responsibility for hard drive crashes, death in the
family, or end of the world as we know it resulting from this mod.
It's your fault if you didn't back up the files before you made the mod.
It's your fault if you don't back up your ENTIRE hard drive AT LEAST once
a month.
It works on my system with Turbo C 2.0, WWIV 4.1, V20/8088, 640K/640EMS.
If you use this, the only payment I ask is that you send me a
note through WWIVNet to 1@8251 saying you are using it...not too much to
ask is it?
If you have any problems, you can reach me through WWIV-Net, 1@8251, or call
my BBS.
The Kingdom of Melnibone
812-877-3488 24 Hrs a day
3/12/2400/4800/9600/12,000/14,400 baud HST MNP5
Auto-validation of WWIV sysops on first call
Xmodem, Ymodem, DSZ Zmodem with retry, Ymodem-G
Lord Elric
WWIV Net 1@8251
WWIV Link 1@18251