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.
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
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.
( 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.
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.
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
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
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.
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: