Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Problem adding new command

Problem adding new command

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Dbaker84   (26 posts)  Bio
Date Reply #15 on Wed 06 Aug 2008 11:10 PM (UTC)
Message
gah, sorry. I've changed the name from say_to_char to stc, but it's still not working. I assume this is enough.


void do_stc( CHAR_DATA *ch, char *argument )
{
char arg[MAX_INPUT_LENGTH];
char buf[MAX_STRING_LENGTH];
const char *sbuf;
CHAR_DATA *victim;
EXT_BV actflags;
/*int arglen;*/
CHAR_DATA *vch;
#ifndef SCRAMBLE
int speaking = -1, lang;

for( lang = 0; lang_array[lang] != LANG_UNKNOWN; lang++ )
if( ch->speaking & lang_array[lang] )
{
speaking = lang;
break;
}
#endif

argument = one_argument( argument, arg );


I can haz Smaug?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #16 on Wed 06 Aug 2008 11:12 PM (UTC)
Message
The function name has to match the line in mud.h, so if mud.h is say_to_char and the fn is stc it won't work.

My only other thought is something funky going on with Cygwin and dynamic linking.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dbaker84   (26 posts)  Bio
Date Reply #17 on Wed 06 Aug 2008 11:16 PM (UTC)
Message
yeah, I changed mud.h to stc as well.

I'm downloading andlinux as we speak; I'm also beginning to think it has something to do with cygwin due to that error message I posted earlier.

I can haz Smaug?
Top

Posted by Dbaker84   (26 posts)  Bio
Date Reply #18 on Fri 08 Aug 2008 04:12 AM (UTC)
Message
I'm pulling my hair out over here.

Somehow, I got that sayto function/command to work. I tried to add another new function.......same story as before. I figured, maybe it's the coding again, so I tried yet another function..same. I have absolutely no idea what in the heck is going on. If someone could be so very kind as to look this code over for me and maybe try to compile/run it on their setup, I would be very very appreciative. Here's a link to a zip of the source.

http://www.quickfilepost.com/download.do?get=e71589804edeb6a033bde198b3cba193

The function I'm trying to get to work are do_suicide in act_comm.c and do_invade in act_wiz.c.

I can haz Smaug?
Top

Posted by Nargsbrood   (54 posts)  Bio
Date Reply #19 on Mon 04 Jul 2011 02:07 AM (UTC)
Message
I hate bringing up such an old thread but I am having the same problem when trying to add a command to the game.

Its an old mapper function i came across.

this function found in act_move.c:
void do_map ( CHAR_DATA * ch, char *argument ) {

i have this in mud.h
DECLARE_DO_FUN( do_map );



commands.dat shows
#COMMAND
Name map~
Code do_map
Position 100
Level 64
Log 0
End




I get this error message when i tried cedit create:
Log: [*****] BUG: Error locating do_map in symbol table. Resource temporarily unavailable
Command added.
Code do_map not found. Set to no code.

I get this error message when booting up the mud:
Sun Jul 3 18:43:52 2011 :: [*****] BUG: Error locating do_map in symbol table. No error
Sun Jul 3 18:43:52 2011 :: [*****] BUG: fread_command: Function do_map not found for map



since making changes I did 'make clean' and 'make' all compiles no problem. What am I missing?

Thanks,
Nargs


Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #20 on Mon 04 Jul 2011 03:36 AM (UTC)
Message
I'm not familiar with the dynamic mapping, might want to ask on the FUSS forums.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nargsbrood   (54 posts)  Bio
Date Reply #21 on Mon 04 Jul 2011 06:01 AM (UTC)
Message
Thanks Zeno -

Here is the link to the Fuss forum in case a resolution is found there:

http://www.smaugmuds.org/index.php?a=topic&t=4558&p=21840#p21840
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


85,025 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.