10 Oct, 2010, Tyche wrote in the 21st comment:
Votes: 0
The original problem was you edited the startup with an editor that converted \n (linefeed) to \r\n (carriage return - linefeed), or you uploaded the script to a server with a ftp client that does. Bash doesn't like \r on the shebang line. Bash's :bad interpreter: message is a reference to the program or shell referenced on the shebang line not being found.
11 Oct, 2010, Ludwig wrote in the 22nd comment:
Votes: 0
Where does SWrip fit in the SMAUG or SWR family tree? Is it related in any way to SWfote?
11 Oct, 2010, rinlek wrote in the 23rd comment:
Votes: 0
i'm still having problems, when i type ./startup when i'm in the bin directory it says
Quote
/bin/bash: ./startup: /bin/bash
: bad interpreter: No such file or directory


when i type ./swrip i get this
Quote
Sun Oct 10 21:57:50 2010 :: PID: 2908
Sun Oct 10 21:57:50 2010 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sun Oct 10 21:57:50 2010 :: [*****] BOOT: ———————[ Boot Log ]——————–
Sun Oct 10 21:57:50 2010 :: Loading commands
Sun Oct 10 21:57:50 2010 :: Loading sysdata configuration…
Sun Oct 10 21:57:50 2010 :: Loading socials
Sun Oct 10 21:57:50 2010 :: Loading skill table
Sun Oct 10 21:57:50 2010 :: Sorting skill table…
Sun Oct 10 21:57:50 2010 :: Loading herb table
Sun Oct 10 21:57:50 2010 :: Making wizlist
Sun Oct 10 21:57:50 2010 :: Initializing request pipe
Sun Oct 10 21:57:50 2010 :: Initializing random number generator
Sun Oct 10 21:57:50 2010 :: Setting time and weather
Sun Oct 10 21:57:50 2010 :: Assigning gsn's
ASSIGN_GSN: Skill makehulltracker not found.
ASSIGN_GSN: Skill makeinternaltracker not found.
ASSIGN_GSN: Skill makemissile not found.
ASSIGN_GSN: Skill shieldwork not found.
ASSIGN_GSN: Skill feed not found.
ASSIGN_GSN: Skill bite not found.
ASSIGN_GSN: Skill claw not found.
ASSIGN_GSN: Skill sting not found.
ASSIGN_GSN: Skill tail not found.
ASSIGN_GSN: Skill study not found.
ASSIGN_GSN: Skill brew not found.
ASSIGN_GSN: Skill slice not found.
ASSIGN_GSN: Skill chill touch not found.
ASSIGN_GSN: Skill curse not found.
Sun Oct 10 21:57:50 2010 :: Reading in area files…


after this happend a file showed up in bin called shutdown.txt and inside it said this
Quote
Unable to open area list
not sure how to fix this
11 Oct, 2010, rinlek wrote in the 24th comment:
Votes: 0
Ludwig said:
Where does SWrip fit in the SMAUG or SWR family tree? Is it related in any way to SWfote?

it was developed from swr
11 Oct, 2010, Kline wrote in the 25th comment:
Votes: 0
Tyche said:
The original problem was you edited the startup with an editor that converted \n (linefeed) to \r\n (carriage return - linefeed), or you uploaded the script to a server with a ftp client that does. Bash doesn't like \r on the shebang line. Bash's :bad interpreter: message is a reference to the program or shell referenced on the shebang line not being found.


Tyche has already addressed your bad interpreter problem. As to not finding your areas, typically if you run the game directly (using ./swrip) you need to do it from within your area folder. So cd to /path/to/mud/area and run ./path/to/mud/executable while in that directory.
11 Oct, 2010, rinlek wrote in the 26th comment:
Votes: 0
tyche never explained how to fix it. and i can't find /n or /r/n anywhere in the code
11 Oct, 2010, Kline wrote in the 27th comment:
Votes: 0
rinlek said:
tyche never explained how to fix it. and i can't find /n or /r/n anywhere in the code


Yes, he did actually, on the first page of this thread.

Tyche said:
rinlek said:
ok, i tryed to start it up and i got this message
Quote
/bin/bash: ./startup: /bin/bash
: bad interpreter: No such file or directory
any ideas on what i'm doing wrong?

http://sourcery.dyndns.org/wiki.cgi?Text...
11 Oct, 2010, rinlek wrote in the 28th comment:
Votes: 0
that link did not help at all. what it says is the problem isn't in the code. and so you all can see, here is the contents of startup

Quote
#!/bin/bash

# Set the port number.
port=1986
if [ -n "$1" ]; then port=$1; fi

# Obtain SWR base directory.
swrdir=~/mud
if [ -n "$2" ]; then swrdir=$2; fi

# Check that startup script or game binary isn't already running.
#[ -e $swrdir/log/startup.pid ] && if [ /proc/`cat $swrdir/log/startup.pid`/exe \
#-ef $swrdir/bin/startup ]; then
#echo Error: Startup script already running.
#exit 1
#fi
#[ -e $swrdir/log/current.log ] && if [ /proc/`sed "2,\\$d;s/^.*PID: //" \
#$swrdir/log/current.log`/exe -ef $swrdir/bin/swrip ]; then
#echo Error: Game binary already running.
#exit 1
#fi

cd $swrdir/area
ulimit -s 1024
rm -f shutdown.txt

# Write startup PID file.
echo $$ > ../log/startup.pid

(
until [ -e shutdown.txt ]
do
# If you want to have logs in a different directory,
# change the 'logfile=' line to reflect the directory name.
index=1000
while
logfile=../log/$index.log
[ -e $logfile ]
do
if [ $index -lt 1100 ]
then
let index=index+1
else
rm -f $logfile
fi
done
ln -sf $logfile ../log/current.log

# Record starting time
date > $logfile
date > ../area/boot.txt

# Run game.
nohup ../bin/swrip $port >& $logfile

# make back up of bug log and start fresh
if [ -e $swrdir/system/bugs.txt ]
then
if [ -e $swrdir/system/bugs.txt.bak ]; then rm $swrdir/system/bugs.txt.bak; fi
mv $swrdir/system/bugs.txt $swrdir/system/bugs.txt.bak
touch $swrdir/system/bugs.txt
fi

# Restart, giving old connections a chance to die.
sleep 15
done
rm -f shutdown.txt ../log/current.log ../log/current.log.size ../log/startup.pid
)&
11 Oct, 2010, David Haley wrote in the 29th comment:
Votes: 0
I think you might have misunderstood what the link and the problem were about. :sad:
Do you know if the file is saved as a Unix or Windows formatted file?

Posting the startup file like that shows nothing with respect to the link.
11 Oct, 2010, rinlek wrote in the 30th comment:
Votes: 0
to tell the truth, i have no idea. the support site for this code has no useful information on it. i was posting here in hopes of finding someone who used this code before that could walk me though startup. i never had these problems starting up a swr or swfote mud.

only reason i'm not using swr or swfote is they need major overhauls to do what i need to do, swrip doesn't appear to need as many
11 Oct, 2010, David Haley wrote in the 31st comment:
Votes: 0
You know, the link said exactly how to convert the file to the Unix file format. Did you try doing that?

I get the impression that you're frustrated with this, which is fine; I understand that frustration. But you need to try to let it go and think clearly, or you won't be able to make good progress here.
11 Oct, 2010, rinlek wrote in the 32nd comment:
Votes: 0
the link talks about converting with ruby and perl, right now i can't seem to make heads or tails of it, i think i need to unplug for a little bit and try again later when my mind is clear
11 Oct, 2010, Tyche wrote in the 33rd comment:
Votes: 0
rinlek said:
that link did not help at all. what it says is the problem isn't in the code. and so you all can see, here is the contents of startup
Quote
#!/bin/bash

# Set the port number.
port=1986


I see you changed the port number from 7000 to 1986.
I wonder how you did it.
13 Oct, 2010, rinlek wrote in the 34th comment:
Votes: 0
i used wordpad to change the port
13 Oct, 2010, Tavish wrote in the 35th comment:
Votes: 0
Just download a new copy of the startup script. And don't open it with wordpad.
13 Oct, 2010, rinlek wrote in the 36th comment:
Votes: 0
that fixed the problem i ended up using the editor that is in the file management section of the server that i'm hosted on. also i figured out why it wasn't loading the area files. in startup they hard coded in the base folder as mud not swrip200. it was an easy fix once i figured it out.


now i have a new problem, does anyone know how to give full admin status to a player account? this code doesn't have an admin account preloaded in, infact it had no preloaded accounts, all the folders in the players folder are empty
13 Oct, 2010, Mudder wrote in the 37th comment:
Votes: 0
Create a new player. Save. Quit. Check the player folder, open it.

Now it depends on how this MUD defines an immortal. Is max player level 50 but max Immortal level 60? Change the level to 60. Is there a security option? Usually abbreviated to sec ? Change that to 9.
16 Oct, 2010, rinlek wrote in the 38th comment:
Votes: 0
i just found out that the copy of the swrip200 code that is on this site was messed with before it was uploaded. there is supost to be a pfile in the d folder in the player folder with admin status.

to get a copy of the code with this file go to http://swrip.com/ and download it there.
16 Oct, 2010, Ssolvarain wrote in the 39th comment:
Votes: 0
Edit Plus 2 ftw.
20.0/39