[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Problem adding new command
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Problem adding new command

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1 2  

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Wed 06 Aug 2008 08:54 PM (UTC)  quote  ]
Message
I wanted to get a sayto command going, so I found an appropriate snippet and got it put in. Everything is compiling great, the problem I've having is that the command I created in commands.dat isn't being picked up. I rechecked and recompiled everything; the command is definitely in the file and pointing to the right function, it's just not being picked up within the game for some reason. Any advice?

Also, side question...a current command in the game was changed to one that starts with the letter 'n', now every time you type 'n' as if to go north, it thinks you are trying to use that new command. Is there any way to explicitly state that 'n' = north? I tried setting it in the commands.dat similar to how se, sw, etc are set up, still not working.

Thanks again!

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #1 on Wed 06 Aug 2008 08:58 PM (UTC)  quote  ]
Message
Did you make sure to use cedit?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #2 on Wed 06 Aug 2008 09:00 PM (UTC)  quote  ]
Message
Hrm, says it can't find the code in the symbol table. I added the function and its definition, what else would I be missing here?

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #3 on Wed 06 Aug 2008 09:04 PM (UTC)  quote  ]
Message
2 entires in tables.c
1 entry in mud.h

Although you don't need some entries if you are using FUSS.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #4 on Wed 06 Aug 2008 09:07 PM (UTC)  quote  ]
Message
I am using FUSS, 1.9.

I did the one entry to mud.h, and I'm not seeing anywhere appropriate in the tables.c...at least nothing mentioning say, tell, or any other comm comannds.

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #5 on Wed 06 Aug 2008 09:27 PM (UTC)  quote  ]
Message
Did you make sure to make clean?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #6 on Wed 06 Aug 2008 09:34 PM (UTC)  quote  ]
Message
Indeed I did, just reopened, checked for changes, saved, closed, make clean, and recompiled, still not flying.

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #7 on Wed 06 Aug 2008 09:34 PM (UTC)  quote  ]
Message
What does the line look like in mud.h?

What are you typing with cedit?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #8 on Wed 06 Aug 2008 09:37 PM (UTC)  quote  ]

Amended on Wed 06 Aug 2008 09:38 PM (UTC) by Dbaker84

Message
mud.h:

DECLARE_DO_FUN( do_say_to_char );


cedit:

cedit sayto create do_say_to_char



This is exactly what I'm getting ingame:

Log: Trevlyn: cedit sayto create do_say_to_char
Log: [*****] BUG: Error locating do_say_to_char in symbol table. Resource temporarily unavailable
Command added.
Code do_say_to_char not found. Set to no code.

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #9 on Wed 06 Aug 2008 09:42 PM (UTC)  quote  ]
Message
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=8247&page=1

That's all I found find about it.

Are you using Cygwin?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #10 on Wed 06 Aug 2008 09:45 PM (UTC)  quote  ]
Message
Yeah, I am using Cygwin. I'm 110% sure that I'm using a clean compile, so I really have no idea what is going on here. Could it have anything to do with do_say and do_say_to_char sharing the do_say part? Other than that, I can't think of anything that would be causing an issue.

I can haz Smaug?
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #11 on Wed 06 Aug 2008 09:49 PM (UTC)  quote  ]
Message
My cygwin is doing this after it makes all the o files


/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../1686-pc-cygwin/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant datat structures referencing symbols from auto-imported DLLs.Info: resolving __timezone by linking to __imp__timezone (auto-import)


I assume that this could cause an issue due to the dynamic linking.

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #12 on Wed 06 Aug 2008 10:15 PM (UTC)  quote  ]
Message
What file is the function in? What does the function header look like?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Reply #13 on Wed 06 Aug 2008 10:53 PM (UTC)  quote  ]
Message
It's in act_comm.c

#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mud.h"

I can haz Smaug?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #14 on Wed 06 Aug 2008 11:07 PM (UTC)  quote  ]
Message
Er, the function header. Not file header.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] 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.


6,476 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]