Top Mud Sites Forum Return to
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Thread Tools
Old 04-11-2006, 10:45 AM   #1
Join Date: Apr 2006
Posts: 42
NotL337 is on a distinguished road

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
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 or, and cannot find, period.

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

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.
NotL337 is offline   Reply With Quote
Old 04-11-2006, 10:56 AM   #2
Baram's Avatar
Join Date: Jan 2006
Location: Seoul
Home MUD: Tears of Polaris
Posts: 218
Baram is on a distinguished road
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.
Baram is offline   Reply With Quote
Old 04-11-2006, 11:21 AM   #3
Join Date: Apr 2006
Posts: 42
NotL337 is on a distinguished road
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.
NotL337 is offline   Reply With Quote
Old 04-11-2006, 11:25 AM   #4
Baram's Avatar
Join Date: Jan 2006
Location: Seoul
Home MUD: Tears of Polaris
Posts: 218
Baram is on a distinguished road
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.
Baram is offline   Reply With Quote
Old 04-12-2006, 12:12 AM   #5
Join Date: Jun 2002
Posts: 157
Davairus is an unknown quantity at this point
1) crypt problem

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.

# 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++

# 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
sleep 15

dont forget to change 'rom' to whatever the program is. Hope that helps...
Davairus is offline   Reply With Quote

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 12:07 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud 2014