Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex, DotBot, Bing

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » New to SWR FUSS
Forum Rules | Mark all | Recent Posts

New to SWR FUSS
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #21 Nov 13, 2009, 1:39 pm
Go to the top of the page
Go to the bottom of the page

Muddledde
Fledgling
GroupMembers
Posts11
JoinedNov 11, 2009

Zeno:
I typed 'ps ux' and I don't see it running. I also typed 'touch startup' and nothing happen. After that I tried './startup &' again and received the same error again.

Kayle:
#! /bin/csh -f

# Set the port number.
set port = 4000
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
limit coredumpsize unlimited
limit stacksize unlimited
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

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

# Run SMAUG.
# Check if already running
set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
if ( $matches >= 1 ) then
# Already running
echo Port $port is already in use.
exit 0
endif

../src/swreality $port >&! $logfile

# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 10

end
       
Post is unread #22 Nov 13, 2009, 1:51 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Hmm. If you type 'csh' what happens?
       
Post is unread #23 Nov 13, 2009, 2:10 pm
Go to the top of the page
Go to the bottom of the page

Muddledde
Fledgling
GroupMembers
Posts11
JoinedNov 11, 2009

I typed in 'csh'

The program 'csh' can be found in the following packages:
* csh
* tcsh
Try: sudo apt-get install <selected package>
[1]+ Exit 126 ./startup
bash: csh: command not found
[1]+ Exit 126 ./startup

I then typed in 'sudo apt-get install'
muddledde@muddledde-laptop:~/swrfuss/src$ sudo apt-get install
[sudo] password for muddledde:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
       
Post is unread #24 Nov 13, 2009, 3:03 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

try: sudo apt-get install csh
       
Post is unread #25 Nov 13, 2009, 3:44 pm   Last edited Nov 13, 2009, 3:47 pm by Muddledde
Go to the top of the page
Go to the bottom of the page

Muddledde
Fledgling
GroupMembers
Posts11
JoinedNov 11, 2009

And, that was it. The MUD is now up and running. Thank you Kayle for your help. Everybody else, thank you as well.
Now I can delve into the code and see what I can do with it. :devil:

Any advice on anything I should know? Any commands I should be aware of?

By the way,
User Name: Admin
Password: admin
       
Post is unread #26 Dec 2, 2009, 9:37 pm
Go to the top of the page
Go to the bottom of the page

DemonAlucard
Fledgling
GroupMembers
Posts7
JoinedDec 2, 2009

Hello, I hope you don't mind me Re-Using this thread for my question but this is what I get when I attemtpt to compile swrfuss 1.3

*****@ubuntu:~/swrfuss/src$ make
make -s swreality
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/boards.o....
Compiling o/bounty.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
In file included from comm.c:33:
mccp.h:18:18: error: zlib.h: No such file or directory
In file included from comm.c:33:
mccp.h:33: error: ISO C++ forbids declaration of ‘z_stream’ with no type
mccp.h:33: error: expected ‘;’ before ‘*’ token
comm.c: In function ‘bool write_to_descriptor(DESCRIPTOR_DATA*, const char*, int)’:
comm.c:1273: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1275: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1276: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1278: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1280: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1281: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1283: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1285: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1285: error: ‘Z_SYNC_FLUSH’ was not declared in this scope
comm.c:1285: error: ‘deflate’ was not declared in this scope
comm.c:1287: error: ‘Z_OK’ was not declared in this scope
comm.c:1291: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1329: error: ‘struct mccp_data’ has no member named ‘out_compress’
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2

I run Xubuntu 9.10 with g++ compiler and associated libraries.
No idea why I'm gettin these errors but it won't let me compile past that point. Can someone shed some light on this maybe?
       
Post is unread #27 Dec 2, 2009, 9:41 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

You need zlib.
       
Post is unread #28 Dec 2, 2009, 9:50 pm   Last edited Dec 2, 2009, 9:52 pm by DemonAlucard
Go to the top of the page
Go to the bottom of the page

DemonAlucard
Fledgling
GroupMembers
Posts7
JoinedDec 2, 2009

Ok, I'm guessing this zlib is a downloadable package? Or maybe part of a downloadable package that I don't have yet?
       
Post is unread #29 Dec 3, 2009, 12:02 am
Go to the top of the page
Go to the bottom of the page

Caius
Magician
GroupMembers
Posts132
JoinedJan 29, 2006

I've never used Ubuntu, but it's based on Debian, right? Try this in a shell (needs root access): apt-get zlib-dev

Might also be zlib-devel or something similar. Could use your package manager's search facilities.
       
Post is unread #30 Dec 3, 2009, 8:36 am
Go to the top of the page
Go to the bottom of the page

DemonAlucard
Fledgling
GroupMembers
Posts7
JoinedDec 2, 2009

I acutally already have zlib it says, but I traced the problem to the package trying to install msttcorefonts. It hit an error trying to install this package and apparently didn't allow zlib to finish getting all its components or something.
       
Post is unread #31 Dec 3, 2009, 8:42 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

You need not just zlib but the zlib development package. The Ubuntu package name is zlib1g-dev.

Dunno what msttcorefonts has to do with it; sounds like an unrelated problem with your package installation.

Anyhow, just do (as root): aptitude install zlib1g-dev
       
Post is unread #32 Dec 3, 2009, 9:36 am
Go to the top of the page
Go to the bottom of the page

DemonAlucard
Fledgling
GroupMembers
Posts7
JoinedDec 2, 2009

I don't know how to get to root... I'm only able to get as far as my home directory. Sorry but I'm a newb when it comes to linux... I just got it not too long ago and I'm still learning some of the command line stuff.
       
Post is unread #33 Dec 3, 2009, 9:44 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

If this is your own Ubuntu setup, you should do this:

sudo aptitude install zlib1g-dev

when it asks you for a password, just enter your normal password.

The command 'sudo' means "as super-user (i.e. root) do the following thing".
       
Post is unread #34 Dec 3, 2009, 10:00 am
Go to the top of the page
Go to the bottom of the page

DemonAlucard
Fledgling
GroupMembers
Posts7
JoinedDec 2, 2009

thanks a lot I appreciate the help I seem to have it figured out now. There is still an issue with that msttcorefonts but its not related to the packages I'm downloading like you said. I'll have to go somewhere else and see if they can give me some help on that issue. Thanks again for the help.
       
Post is unread #35 Dec 3, 2009, 10:44 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

I would recommend going to the Ubuntu forums, support there is usually quite good and people are generally nice. :smile: Just make sure to say clearly what exactly the error message about msttcorefonts is, so that people know what's going on.
       
Pages:<< prev 1, 2 next >>