I did reply, but it took longer than usual because I had to fix the forum code to allow for a change that the web site host made - without warning - to the way PHP behaved. :)
Try using this version, I'm not sure where I got it from:
ftp://ftp.gammon.com.au/smaug/swr-2.0a2.tar.gz
I see that I previously had to make some minor changes to get it to compile under Cygwin. Below is a diff of the changes, just copy between the lines, put into a file called "swr.diff", and then change to the "src" directory (in the above download), and type:
You should see this:
Then you can type "make" to compile it.
Have fun. If you can't get patch to work, just manually change the lines with a "!" in front of them, there are not that many.
Try using this version, I'm not sure where I got it from:
ftp://ftp.gammon.com.au/smaug/swr-2.0a2.tar.gz
I see that I previously had to make some minor changes to get it to compile under Cygwin. Below is a diff of the changes, just copy between the lines, put into a file called "swr.diff", and then change to the "src" directory (in the above download), and type:
patch < swr.diff
You should see this:
patching file `Makefile'
patching file `fight.c'
patching file `interp.c'
patching file `save.c'
Then you can type "make" to compile it.
Only in swr-2.0.old/bin: swr.exe
diff -c -r --exclude=*.o --exclude=*~ swr-2.0/src/Makefile swr-2.0.old/src/Makefile
*** swr-2.0/src/Makefile Sat May 22 23:41:30 1999
--- swr-2.0.old/src/Makefile Thu Mar 29 05:13:07 2001
***************
*** 1,6 ****
CC = gcc
PROF =
! NOCRYPT =
#Uncomment the next line if you want request support
#DBUGFLG = -DREQUESTS
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
--- 1,6 ----
CC = gcc
PROF =
! NOCRYPT = -DNOCRYPT
#Uncomment the next line if you want request support
#DBUGFLG = -DREQUESTS
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
diff -c -r --exclude=*.o --exclude=*~ swr-2.0/src/fight.c swr-2.0.old/src/fight.c
*** swr-2.0/src/fight.c Wed May 19 13:47:13 1999
--- swr-2.0.old/src/fight.c Thu Mar 29 05:15:58 2001
***************
*** 5,11 ****
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
! #include <sys/dir.h>
#include "mud.h"
extern char lastplayercmd[MAX_INPUT_LENGTH];
--- 5,11 ----
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
! //#include <sys/dir.h>
#include "mud.h"
extern char lastplayercmd[MAX_INPUT_LENGTH];
diff -c -r --exclude=*.o --exclude=*~ swr-2.0/src/interp.c swr-2.0.old/src/interp.c
*** swr-2.0/src/interp.c Wed May 19 02:31:23 1999
--- swr-2.0.old/src/interp.c Thu Mar 29 07:06:32 2001
***************
*** 3,9 ****
#include <ctype.h>
#include <stdio.h>
#include <string.h>
! #include <time.h>
#include "mud.h"
/*
--- 3,9 ----
#include <ctype.h>
#include <stdio.h>
#include <string.h>
! //#include <time.h>
#include "mud.h"
/*
diff -c -r --exclude=*.o --exclude=*~ swr-2.0/src/save.c swr-2.0.old/src/save.c
*** swr-2.0/src/save.c Sun May 23 17:40:19 1999
--- swr-2.0.old/src/save.c Thu Mar 29 07:48:38 2001
***************
*** 3,11 ****
#include <stdio.h>
#include <string.h>
#include <time.h>
! #include <unistd.h>
#include <sys/stat.h>
! #include <sys/dir.h>
#include "mud.h"
/*
--- 3,11 ----
#include <stdio.h>
#include <string.h>
#include <time.h>
! //#include <unistd.h>
#include <sys/stat.h>
! #include <dirent.h>
#include "mud.h"
/*
***************
*** 1774,1780 ****
void load_corpses( void )
{
DIR *dp;
! struct direct *de;
extern FILE *fpArea;
extern char strArea[MAX_INPUT_LENGTH];
extern int falling;
--- 1774,1780 ----
void load_corpses( void )
{
DIR *dp;
! struct dirent *de;
extern FILE *fpArea;
extern char strArea[MAX_INPUT_LENGTH];
extern int falling;
Have fun. If you can't get patch to work, just manually change the lines with a "!" in front of them, there are not that many.