Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Yesterday, 10:08 pm
By Remcon
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
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

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Connection Code
Forum Rules | Mark all | Recent Posts

Connection Code
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 1, 2008, 12:49 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Heh, kind of silly but what does it mean by

Then its just the entries in TABLES.C and Make clean and compile.


:p, mainly the entries, I don't knwo what it means by that heh
       
Post is unread #2 Jan 1, 2008, 2:03 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

If you're using a recent version of FUSS, you don't need to do that.
       
Post is unread #3 Jan 1, 2008, 2:04 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Ah, ok thanks.
       
Post is unread #4 Jan 1, 2008, 2:43 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Error on the make all

cc1: warnings being treated as errors
act_obj.c: In function "do_connect"
act_obj.c:921: warning: unused variable "buf"


lines 918-923
void do_connect( CHAR_DATA *ch, char *argument )
{
  OBJ_DATA *first_ob, *second_ob, *new_ob;
  char arg1[MAX_STRING_LENGTH], arg2[MAX_STRING_LENGTH], buf[MAX_STRING_LENGTH];

  argument = one_argument( argument, arg1 );
       
Post is unread #5 Jan 1, 2008, 2:44 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

That isn't an error, it is a warning.
       
Post is unread #6 Jan 1, 2008, 2:44 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

anyway to turn that off because it won't let me compile it.
       
Post is unread #7 Jan 1, 2008, 2:52 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Well, if buf is unused, you might well just remove it. That would silence the compiler, although I wonder why this is in there if it is unused. If you're sure you haven't omitted something, try removing buf from the code and see if that helps.

       
Post is unread #8 Jan 1, 2008, 3:26 pm   Last edited Jan 1, 2008, 5:49 pm by Raine
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Just incase anyone has problems with this snippet in the future, when it says your flag is unknown, go into build.c and add it in the place of _empty1. That will solve that problem =]
       
Post is unread #9 Nov 4, 2008, 11:02 am
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Sorry to bring up this dead post but I have another problem

Log: Raine: cedit connect create
Log: [*****] BUG: Error locating do_connect in symbol table. smaug: undefined symbol: do_connect
Command added.
Code do_connect not found. Set to no code.

So... any idea of what I should do? Because last time I had this problem as it said above I didn't need to bother table.c and I'm extremely lost... I just started coding again and any help would be GREATLY appreciated :) Thanks in advance!
       
Post is unread #10 Nov 4, 2008, 3:05 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

You need to tell us what codebase you are using.
       
Post is unread #11 Nov 4, 2008, 5:01 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

SMAUGFUSS 1.9
       
Post is unread #12 Nov 4, 2008, 8:31 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Did you add the correct line to mud.h?
       
Post is unread #13 Nov 5, 2008, 3:11 am   Last edited Nov 5, 2008, 3:11 am by Raine
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

DECLARE_DO_FUN( do_config );
DECLARE_DO_FUN( do_connect );
DECLARE_DO_FUN( do_consider );


ITEM_PIECE, ITEM_EMPTY2,


Am I missing anything else? Both are in mud.h
       
Post is unread #14 Nov 5, 2008, 5:57 am   Last edited Nov 5, 2008, 5:58 am by Kayle
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

You'll need to change
void do_connect( CHAR_DATA *ch, char *argument )

to
void do_connect( CHAR_DATA *ch, const char *argument )


If changing this produces extra errors, post the function and the list of errors for me, and I'll explain what needs to be changed, and attempt to explain why. If I can't explain it, I'm sure DavidHaley can.
       
Post is unread #15 Nov 5, 2008, 7:07 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Thanks much =], works like a charm!
       
Post is unread #16 Apr 24, 2012, 8:18 pm
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

Was the connection code removed from the site? I am unable to locate it anymore. If it was can I find it in another location?
       
Post is unread #17 Apr 25, 2012, 3:49 am
Go to the top of the page
Go to the bottom of the page

Raine
Magician
GroupMembers
Posts126
JoinedDec 11, 2007

       
Pages:<< prev 1 next >>