Startup Problem

Posted by MagisterXero on Thu 11 Feb 2010 09:03 PM — 17 posts, 72,105 views.

#0
Alright so, I'm fairly new to this coding part and "running the server". So I'll get straight to the point.

I have a codebase in SWR format, that is not default SWR code, it's been rewritten and modified already. When I use cygwin to browse down into the src directory and type in ./startup &

It gives me a random number, random I think last one was 6068, and then it also tells me

$ limit: Command not found.
$ unlimit: Command not found.

Any ideas from anyone on this one?
Australia Forum Administrator #1
Search this forum for "limit Command not found".

I found quite a few posts about it.
#2
Thanks

Now I have a different question.

I removed the limit/unlimit commands, then ./startup & again, it gave no errors, but whenever I tried to connect to 127.0.0.1 port 4000 it doesn't connect.

Sorry if creating a new thread on this is bothersome.
Australia Forum Administrator #3
Have a look inside your startup file. I found mine to default to port 4020, not 4000.
#4
It's set to port 4000
USA #5
Check what processes are running.
#6
If I gave you a list of processes, we'd be here all night. XD

Am I looking for tcsh.exe?

The ones that stand out from the normal ones that are runnning are as followed:

Sleep.exe
tcsh.exe
bash.exe (cygwin I assume)
xterm.exe
xwin.exe

Which processes should be running, and do you think it may be a firewall issue? I have my port forwarding set up for the port 4000, but there could be something else blocking it.
#7
Bear in mind, I'm attempting this on a Windows Vista 64-bit machine, and it probably isn't set up at the moment for hosting, so ports may need to be opened or configured. If so, let me know what I need to do on my end
USA #8
Not the processes in Windows, the processes in Cygwin.
#9
Hm... I'm not exactly sure how to check the processes in cygwin...
#10
Wait nevermind.

jobs -l

3528 Running ./startup &
USA #11
Look into the ps command.

If you only see startup, that means the MUD exec isn't running. Check the logs.
Australia Forum Administrator #12
Initially I would run "direct" without using the startup script. There is probably a log somewhere if you can find it. To run without the script, work out the executable name (quite possibly smaug.exe) - this will be in the src directory. Then type:


cd ../area
../src/smaug


Then quite probably you will see error messages or something flying by to confirm or otherwise that things are working.
#13
PID PPID PGID WINPID TTY UID STIME COMMAND
4248 1 4248 5560 con 1000 20:50:07 /usr/bin/XWin
I 5568 1 5568 5568 con 1000 21:09:39 /usr/bin/bash
3528 5568 3528 5536 con 1000 21:11:53 /usr/bin/tcsh
1852 4248 1852 2620 ? 1000 23:07:13 /usr/bin/xterm
4540 1852 4540 4132 0 1000 23:07:14 /usr/bin/bash
4100 3528 3528 5232 con 1000 23:07:15 /usr/bin/sleep
6072 4540 6072 5688 0 1000 23:07:16 /usr/bin/ps

These are the processes that I see running
USA #14
Strange, I don't see startup there. If sleep and startup are there, that probably means the exec is failing to boot. What Nick says is a good idea.
#15
Okay, rather than use this code as it is, I've decided to start from scratch with a new codebase and I'll just make changes to it myself.

Seems like this one has a lot of problems and errors with it that I didn't previously know about. That being said, does anyone know of a good smaug/swr like codebase that has a space system in it?

I've tried using the swr1.1 from the downloads section, but every time I try to "make" the swreality.exe it seems to fail. I was thinking that it would just up and compile correctly but it's not...
USA #16
Any of the FUSS versions at smaugmuds.org