home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
PCBOARD.MOD
< prev
next >
Wrap
Text File
|
1990-06-25
|
3KB
|
136 lines
Suicidal Maniac #1 @6865
Fri Jun 22 20:22:27 1990
By the author of
External Protocol's for WWIV v3.21d
Post/Call
4600 Color Message Base,
I bring you PCBoard Games in WWIV!
Ok, here's the situation. The following mods will allow a genaric
PCBOARD.SYS to be created to allow execution of most GAMES written
for PCBOARD to run with WWIV. The following will not however work
for Pro-Door, Z-door, or any other file transfer utility. It can
be done, and has been on my end, but I feel that this is what most
people want to begin with. There are many ways to run the game
through the board, and I have encountered a few problems with SOME
PCBoard games using Wayne's artificial DOS shell. They wont load
sometimes, just lock up your system. I went around this by adding
a few mods to VOID DO_CHAINS() to spawn them separately with a full
shell that totally by-passes modem routines. Hmmm, I've successfuly
tested and run Xoru, Bay Street Bulls, Doorway, Quizard's Mountain, and
a few others. If you like it, and need some more info on making some
mods to what I've done, feel free to give my BBS a call, I don't have
source available to me, I wrote this for a friend, but my money's on the
way, and things should work out soon!
The Gateway
(813)962-2937
300/1200/2400
24hrs-7days
in FCNS.H add the following right AFTER: char* creat_chain_file(char *fn)
char *pcboard_sys(char *fn)
in BBSUTL1.C add the following to: void run_chain(int cn)
as the second CASE.
case '2':
pcboard_sys("PCBOARD.SYS");
break;
in EXTRN.C add the following to the variable list:
extern char curspeed;
in EXTRN.C place this right BEFORE: void alf(int f, char *s)
void alfer(int f, char *s)
{
char s1[100];
strcpy(s1,s);
strcat(s1,"");
write(f,(void *)s1,strlen(s1));
}
In EXTRN.C place this right AFTER: char *create_chain_file(char *fn)
char *pcboard_sys(char *fn)
{
int i,i1,f;
char s[81],s1[81],gd[81],dd[81];
char name[27],rn[15],pw[12];
static char fpn[81];
cd_to(syscfg.gfilesdir);
get_dir(gd,1);
cd_to(cdir);
cd_to(syscfg.datadir);
get_dir(dd,1);
cd_to(cdir);
unlink(fn);
f=open(fn,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
alfer(f,"0 ");
alfer(f,"0 ");
alfer(f,"0 ");
alfer(f,"0 ");
alfer(f," ");
if (incom)
write(f,(void *)curspeed,4);
else
alfer(f,"LOCA");
strncpy(name,&thisuser.name[0],27);
write(f,(void *)name,27);
strncpy(rn,&thisuser.realname[0],15);
write(f,(void *)rn,27);
if (okansi())
alfer(f,"-1");
else
alfer(f,"0 ");
write(f,(void *)thisuser.pw,12);
itoa(usernum,s,10);
alfer(f,s);
alfer(f," ");
alfer(f," 1200");
alfer(f," ");
alfer(f," ");
alfer(f,"1 ");
alfer(f,"000000000000000000");
alfer(f," ");
alfer(f," ");
alfer(f," ");
alfer(f," ");
alfer(f," 0");
alfer(f,"0");
close(f);
get_dir(fpn,1);
strcat(fpn,fn);
return(fpn);
}
And to finish it off, to get it to create PCBOARD.SYS, when you enter
the chain file into your editor, put it in like this.
FILENAME: XORU.EXE %2
Also, you must NOT have the BBS intercept DOS Calls, set that to OFF.
Just like %1, but it creates PCBOARD.SYS instead of CHAIN.TXT.
æä¿!
Cyiad,