[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]  function look up & reverse function lookup - smaug 1.4 & FUSS

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

function look up & reverse function lookup - smaug 1.4 & FUSS

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


Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Wed 17 Oct 2007 03:47 AM (UTC)  quote  ]
Message
in smaug1.4 - TABLES.C file contained the function lookups and reverse function lookups for various functions like skill or command functions.

IE: (lookup)
if( !str_cmp( name, "do_mdelete" ) )
return do_mdelete;
if( !str_cmp( name, "do_memory" ) )
return do_memory;
if( !str_cmp( name, "do_mfind" ) )
return do_mfind;
if( !str_cmp( name, "do_minvoke" ) )
return do_minvoke;
if( !str_cmp( name, "do_mistwalk" ) )
return do_mistwalk;
if( !str_cmp( name, "do_mlist" ) )
return do_mlist;

and: (reverse lookup)

if( skill == do_mdelete )
return "do_mdelete";
if( skill == do_memory )
return "do_memory";
if( skill == do_mfind )
return "do_mfind";
if( skill == do_minvoke )
return "do_minvoke";
if( skill == do_mistwalk )
return "do_mistwalk";
if( skill == do_mlist )
return "do_mlist";



This section is not in the TABLES.C for FUSS 1.8

How is the lookup system handled? Is it dynamic?
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Reply #1 on Wed 17 Oct 2007 03:54 AM (UTC)  quote  ]
Message
Yep, it's dynamic.

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

Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Reply #2 on Wed 17 Oct 2007 03:58 AM (UTC)  quote  ]
Message
so just adding the functions and assigning them in the OLC of commands or spells works? just like that? nice nice :)
[Go to top] top

Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Reply #3 on Wed 17 Oct 2007 04:11 AM (UTC)  quote  ]
Message
i've added the function and now i add the command using:
cedit testing create do_map

and get this:

Log: Admin: cedit testing create do_map
Log: [*****] BUG: Error locating do_map in symbol table. Resource temporarily unavailable
Command added.
Code do_map not found. Set to no code.
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Reply #4 on Wed 17 Oct 2007 04:16 AM (UTC)  quote  ]
Message
Quote:
Code do_map not found. Set to no code.

That's your problem there. Did you make sure to add do_map to mud.h?

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

Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Reply #5 on Wed 17 Oct 2007 04:21 AM (UTC)  quote  ]
Message
yes I did add it but you reminded me, thankyou, that i did not make clean :) hmm
[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.


1,626 views.

[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]