Hello,i would like some assistance on a small problem i cannot solve. The owner of the shell where i'm running my mud changed the distribution,i didnt do any changes to the mud and it used to run perfectly…now after i compile it and try to start it up it just wont start,i get an error when the code tries loading the area files : Fri Jun 6 10:01:18 2008 :: Reading Area List. Fri Jun 6 10:01:18 2008 :: reading social.are Fri Jun 6 10:01:18 2008 :: reading asgardian.hlp Fri Jun 6 10:01:18 2008 :: GAME CRASHED (SIGNAL 11).
There's nothing wrong with the files…i tried commenting asgardian.hlp file but it will just give me the same error on the next file that's trying to load…something wrong with area.lst or something :-/ Could anyone help me please?
Verify that the last area it tried to load is formatted correctly. Scan through it and see or trying booting without it once. Try recompiling, like exeter said. You can try GDB as well, or some old fashioned logging echos to help you track down where/why its crashing.
I did all of the above,i recompiled it…clean install…looked trough the area files…also if i startup without the first area it crashes on it will just crash on the next one and so on… :( no one can help?
Ok …one more thing i think my startup is fucked up….not compatibile with this debian version or something…if i start it manually by using ./rot (port) & it works perfectly… Uhh…this is the startup file : #! /bin/csh
set areapath = /muds/nightmare/bogy/rot1/area set port = 4949 set wwwport = 4950
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 ) # If you want to have logs in a different directory, # change the 'set logfile' line to reflect the directory name. set index = 1000 while ( 1 ) set logfile = ../log/$index.log if ( ! -e $logfile ) break @ index++ end
# Copy rot binary from bin directory. # after a compile, place the new binary in the bin directory, # this way a reboot will install the new binary, instead of # of having to shut down. # rm -f ./rot # cp ../src/rot .
# Get a list of rot processes currently running # This will be necessary to keep the script from trying to run rot # every 20 seconds and creating excess logfiles. set procs = (`/bin/ps ax | grep "rot $port"`)
# In order to keep the grep we just ran from giving a false # positive, we check the 5th argument to see if it is the rot # process that we ran and not grep. # We use the 5th element because on the format of 'ps ax' if ( $#procs >= 5 ) then set command = "$procs" else set command = "BLARG!" endif
if ( "$command" != '../src/rot' ) then # Run rot. ../src/rot $port $wwwport >&! $logfile endif
# Restart, giving old connections a chance to die. if ( -e shutdown.txt ) then rm -f shutdown.txt exit 0 endif sleep 20 end