I got the server compiled (under Cygwin), but I don't see a way to start the server. Everything compiled cleanly, and works as far as I can tell, but it doesn't give me a place to start it up. Some help please?
Start-up issues
Posted by Dralnu on Sat 23 Apr 2005 07:58 PM — 19 posts, 68,757 views.
Try using the normal startup script like so:
It defaults to port 4000 if I remember correctly.
./startup &It defaults to port 4000 if I remember correctly.
Start it up in Cygwin? Ok. Knew it had to be something simple, lol
Actually, I need some help -.- it didn't work
Ok, lets start from the begining....
Are you using the old stock SMAUG or the newer and bug fixed SMAUG FUSS?
Are you using the old stock SMAUG or the newer and bug fixed SMAUG FUSS?
cd into the area directory then ../src/smaug 4000 and it should run.
Stock SMAUG right now. I might use FUSS if it seems this one won't work. Been trying to configure SuSe 9.1 lately, though, cause I want to migrate to Linux and get off Suckdows asap
It's been a good while since I've worked with Windoze....
If I remember correctly you need to move the smaug.exe from the src/ directory into the area/ directory. Then move/copy cygwin1.dll ( I think that is the right name ) into the area/ dir. After that you should be able to double-click the smaug.exe and it will start up.
OR!
You could just download the FUSS version, wich has many, many bug fixes. Uncomment the Cygwin option in the Makefile, compile, then just double click the smaug.exe right where it is. A lot easier, eh?
If I remember correctly you need to move the smaug.exe from the src/ directory into the area/ directory. Then move/copy cygwin1.dll ( I think that is the right name ) into the area/ dir. After that you should be able to double-click the smaug.exe and it will start up.
OR!
You could just download the FUSS version, wich has many, many bug fixes. Uncomment the Cygwin option in the Makefile, compile, then just double click the smaug.exe right where it is. A lot easier, eh?
Downloaded SMAUG FUSS 1.6. Complied really well, then when I clicked smaug.exe, I got a "cygwin1.dll not found" error. Some help please?
If I need to start it up via Cygwin, tell me how. I'm really, really, really lost.
If I need to start it up via Cygwin, tell me how. I'm really, really, really lost.
CC = gcc
#PROF = -p
#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#Intermud-3 - Comment out to disable I3 support in your code
I3 = 1
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef I3
C_FILES := i3.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DI3 -DI3SMAUG
endif
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
That is the whole Makefile, btw
#PROF = -p
#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#Intermud-3 - Comment out to disable I3 support in your code
I3 = 1
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef I3
C_FILES := i3.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DI3 -DI3SMAUG
endif
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
That is the whole Makefile, btw
on line 5 I uncommented it and it didn't help. Still ask for cygwin1.dll...
You need to put the cygwin1.dll in the same directory as the executable i beleive.
The sooner you get linux installed the better. I have just gone 100% linux, as the last windows program (areaeditor of all things) now works realy well wine, its either that or i actually now know how to make things work well in wine thanks to winetools.
The sooner you get linux installed the better. I have just gone 100% linux, as the last windows program (areaeditor of all things) now works realy well wine, its either that or i actually now know how to make things work well in wine thanks to winetools.
I have SuSe installed, just don't have the modem configured, hence no net at this time. As for the cygwin1.dll, I'll see about making a copy of it in the src folder and see how well that works.
This is kind of off topic, but I got an issue with notepad/notespad. Instead of things like sysdata.dat, instead of everything having its own line, it is set to blocks (similar to [], only one thing). Any clue how to fix that?
Ok, I moved (well, copied) the cygwin1.dll file into the src directory, now it complains that it cann't open the areas list.
About the previous question about notepad/notespad, the files open fine in Crimson Editor. Odd....
Can't open area.lst? What are you typing/running to start it? You have to run the smaug exec file from the area dir.
Quote:
About the previous question about notepad/notespad, the files open fine in Crimson Editor. Odd....
About the previous question about notepad/notespad, the files open fine in Crimson Editor. Odd....
Notepad can't read the files properly because they originate from a linux enviroment. I'd suggest keep using Crimson Editor ( I used it as my main editing program before moving to Fedora Core ) as it can proper read/save the files.
Thanks everyone. I got the server up and running