Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, Bing

Members: 0
Guests: 22
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » 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 2: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 4: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 4: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 4: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 4: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 4: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 4:52 pm   
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts413
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 5:26 pm   Last edited Jan 1, 2008 7: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 1:02 pm   
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 5: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 7: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 10: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 5:11 am   Last edited Nov 5, 2008 5: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 7:57 am   Last edited Nov 5, 2008 7:58 am by Kayle
Go to the top of the page
Go to the bottom of the page

InfiniteAxis
Off the Edge of the Map
GroupAdministrators
Posts1,200
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 9: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 10: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 5: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 >>