1) I download cygwin (full install) and get that all working.
2) I download the latest version of SW: FotE and unzipped.
3) Edited make file and uncommented for cygwin
4) ran make (no errors, compiled fine)
5) changed the port in startup to 2999
5) ran nohup startup &
-> $ nohup: ignoring input and appending output to 'nohup.out'
ps ux
956 2660 956 3184 con 500 21:17:54 /usr/bin/tcsh
However, there is no port 2999 open when I do netstat -na
This is the case for when I do "startup &" and "csh startup &" except I get:
$ limit: Command not found.
unlimit: Command not found.
instead of the nohup error message
I can see it in the processes but when I try to telnet...
telnet localhost 2999
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Any tips?
Amended on Wed 19 Sep 2007 04:30 AM by Silentius
That's all that appeared in ps ux? Then the process isn't running. Try just a normal startup.
./startup &
That should at least run the script.
name@computer /cygdrive/e/swfote2.1/src
$ ./startup &
[1] 624
name@computer /cygdrive/e/swfote2.1/src
$ limit: Command not found.
unlimit: Command not found.
ps ux
PID PPID PGID WINPID TTY UID STIME COMMAND
2660 1 2660 2660 con 500 20:20:43 /usr/bin/bash
624 2660 624 2764 con 500 21:32:04 /usr/bin/tcsh
2244 624 624 868 con 500 21:32:05 /usr/bin/sleep
3372 2660 3372 604 con 500 21:32:09 /usr/bin/ps
name@computer /cygdrive/e/swfote2.1/src
Still not able to connect and port is not shown as open
Amended on Wed 19 Sep 2007 04:38 AM by Silentius
Do a forum search for those errors, you get some results.
Try running just the exec. In the area dir:
../src/exec <port>
Where exec is the name of the exec.
Hrm, I have no executable file in the src directory... I did try this though:
from the area directory, I ran the command "../src/startup &"
got the same problem as before.
We've already tried running the startup script.
If there is no exec, did you remember to compile? If so, the exec would be there.
name@computer /cygdrive/e/swfote2.1/src
$ make clean
rm -f o/*.o ../bin/other/swr.def ../bin/cygwin/swr.exp
chmod g+w ../bin/cygwin/copyfile
chmod a+x ../bin/cygwin/copyfile
./../bin/cygwin/copyfile
name@computer /cygdrive/e/swfote2.1/src
$ make
make -s swr
o/11.o
o/act_comm.o
o/act_info.o
o/act_move.o
o/act_obj.o
o/act_wiz.o
o/boards.o
o/bounty.o
o/build.o
o/changes.o
o/clans.o
o/color.o
o/comm.o
o/comments.o
o/const.o
o/copyover.o
o/db.o
o/editor.o
o/fight.o
o/finfo.o
o/force.o
o/fskills.o
o/functions.o
o/handler.o
o/hashstr.o
o/hunter.o
o/interp.o
o/keb.o
o/magic.o
o/makeobjs.o
o/marriage.o
o/md5.o
o/mccp.o
o/misc.o
o/mud_comm.o
o/mud_prog.o
o/newarena.o
o/pfiles.o
o/planets.o
o/player.o
o/renumber.o
o/reset.o
o/save.o
o/ships.o
o/shops.o
o/skills.o
o/slay.o
o/slicers.o
o/slotm.o
o/space.o
o/special.o
o/swskills.o
o/tables.o
o/tech.o
o/track.o
o/update.o
Generating dependency file ...
Done compiling mud.
chmod: cannot access `swr': No such file or directory
make[1]: *** [swr] Error 1
make: *** [all] Error 2
name@computer /cygdrive/e/swfote2.1/src
$ dir
11.c clans.c editor.c makeobjs.c o slay.h
Makefile color.c fight.c marriage.c pfiles.c slicers.c
act_comm.c color.h finfo.c mccp.c pfiles.h slotm.c
act_info.c comm.c force.c mccp.h planets.c space.c
act_move.c comments.c fskills.c md5.c player.c special.c
act_obj.c const.c functions.c md5.h renumber.c startup
act_wiz.c copyover.c handler.c misc.c reset.c swskills.c
bet.h copyover.h hashstr.c mud.h save.c tables.c
boards.c db.c hunter.c mud_comm.c ships.c tech.c
bounty.c dependencies.d interp.c mud_prog.c shops.c track.c
build.c dependencies.d.bak keb.c newarena.c skills.c update.c
changes.c do_fun.h magic.c nohup.out slay.c
name@computer /cygdrive/e/swfote2.1/src
$
Strange, after make clean and remake, I am getting errors...
Amended on Wed 19 Sep 2007 04:49 AM by Silentius
Where are the *.o files? That list of files doesn't seem to have an o dir...
I don't see them with cygwin, but if I open up the actual folder in windows, there's an "o" folder with *.o files in them.
wait, ya I can see it in cygwin, my eyes were just skipping over it... it's the "o" lol
on the top lines between slay and makeobj
Amended on Wed 19 Sep 2007 05:03 AM by Silentius
Figured it out...
I needed a new makefile... I uploaded it to here:
http://www.mediafire.com/?7enjmin0gmz
or you can get it from here but you will need to go through
it and change all the areas where it has more than one space and put in a tab. (which is why I uploaded it for it to be easy)
http://swfote.sourceforge.net/phpBB2/viewtopic.php?t=143&postdays=0&postorder=asc&highlight=chmod+cannot+access&start=15
Anyway, thanks for helping me along Zenos... I figured it out from going through the questions you asked.