|
|
#1 |
|
Member
Join Date: Apr 2006
Posts: 42
![]() |
Okay,
I've got my test mud for helping me with learning to code, and I've got my hosting. Right now I'm using SMAUG since I'm a little familiar with what most of the stuff for it does, and I'm going with MURP. So I edited the SMAUG files a bit and then zipped them up (I'm using Windows) and (after a ton of reading) figured out how to FTP the file up into my shell thingy. But I can't unzip it. I keep getting this error: [code] luxeterna@stormbringer;~> unzip smaug.zip Archive; smaug.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip; cannot find zipfile directory in one of smaug.zip or smaug.zip.zip, and cannot find smaug.zip.ZIP, period. [/quote] And then I tried FTPing in both the zipped and tgz format of the unedited SMAUG mud, and while I managed to get the tgz thingy all unzipped, when I did the 'make all' command, it came up with a bunch of errors as it was making all the files. [code] act_info.o(.text+0x71a2); In function `do_password'; /home/luxeterna/dist/src/act_info.c;3474; undefined reference to `crypt' act_wiz.o(.text+0xb084); In function `do_form_password'; /home/luxeterna/dist/src/act_wiz.c;5441; undefined reference to `crypt' build.o(.text+0x2c07); In function `do_mset'; /home/luxeterna/dist/src/build.c;1692; undefined reference to `crypt' comm.o(.text+0x228d); In function `nanny'; /home/luxeterna/dist/src/comm.c;1663; undefined reference to `crypt' comm.o(.text+0x2562);/home/luxeterna/dist/src/comm.c;1750; undefined reference to `crypt' comm.o(.text+0x263d);/home/luxeterna/dist/src/comm.c;1771; more undefined references to `crypt' follow collect2; ld returned 1 exit status make[1]; *** [smaug] Error 1 make[1]; Leaving directory `/home/luxeterna/dist/src' make; *** [all] Error 2 luxeterna@stormbringer;~/dist/src> [/quote] I would just ask Michael to do it for me, but I'm determined to try doing it myself. Otherwise it defeats the purpose of having a mud to learn coding on I'm okay with having to start over fresh, if that's what needs to happen, but I would really rather be able to unzip the files that I've already gotten edited the way I want them. Also, I realized that I have no idea how to change the port from 4000-4020 to 9000 and 9001. Any help would be much appreciated. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2006
Location: Seoul
Home MUD: Tears of Polaris
Posts: 218
![]() |
Sounds like you might need to learn a bit about Linux commands before getting too far into it.
man unzip That should give you all the information you need about why unzip isn't working(there are some args you need to supply). As for the make errors, looks like problems in the code, namely that "crypt" isn't defined. Without seeing the code it's talking about, I can't really tell you what the problem is. Disclaimer: Yes, I know I didn't give you/him the answer. You/he clearly stated you/he wanted to learn on your/his own, so I'm just pointing in the right direction. |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2006
Posts: 42
![]() |
No, thanks--that was indeed quite helpful. The server just went down, but when it comes back up I'll give it a whirl.
Although any help with the changing ports thing would also be appreciated. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jan 2006
Location: Seoul
Home MUD: Tears of Polaris
Posts: 218
![]() |
I don't know that code base, but my guess would be there is a config file somewhere. Probably somewhere near the lowest level directory of the code.
|
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2002
Posts: 146
![]() |
1) crypt problem
http://www.gammon.com.au/scripts/sho...hp?productid=6 I'd suggest start there.. make sure you have the latest and greatest version of smaug of course, there are versions out with all the bugs fixed. Also search that forum for crypt as its been done to death there. I found a lot of answers. 2) setting port Here is a startup script I found for rom a long time ago, smaug is a diku derivative so it should work for you. You'll probably recognise the author. The name of the file is 'startup' and you put it in the area directory. Then to start the mud just nagivate there and type startup. [code] #!/bin/csh # Written by Furey. # With additions from Tony and Alander. # Set the port number. set port = 9000 if ( "$1" != "" ) set port="$1" # Change to area directory. cd ../area # Set limits. 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 # Run rom. ../src/rom $port >&! $logfile # Restart, giving old connections a chance to die. if ( -e shutdown.txt ) then rm -f shutdown.txt exit 0 endif sleep 15 end [/quote] dont forget to change 'rom' to whatever the program is. Hope that helps... |
|
|
|
![]() |
| Thread Tools | |
Unzipping a MUD into the shell - Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Accounts | fatemud | MUD Coding | 0 | 09-19-2006 06:40 PM |
| 2 Free Shell Accounts To A Good Home | fatemud | MUD Administration | 0 | 10-13-2005 09:47 AM |
| Shell for use | Terron | Advertising for Staff | 0 | 07-26-2004 12:17 AM |
| shell scripting | Emit | MUD Coding | 3 | 05-26-2002 02:48 PM |
|
|