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.
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.
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.
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.
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.
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.
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?