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 ➜ how to code in ooc channel

how to code in ooc channel

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


Posted by Darzeth   (36 posts)  Bio
Date Wed 07 Jun 2006 08:40 PM (UTC)
Message
im having trouble, let me say first off im new to this and i cant seem to find a site that will show me how to do this. But i want to code in a ooc channel for my mud. I also want to know if anyone knows any sites that will show how to code muds and has alot of info on it. Also any other sites with mud code will help.
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #1 on Wed 07 Jun 2006 09:36 PM (UTC)

Amended on Tue 11 Mar 2008 03:29 AM (UTC) by Nick Gammon

Message
If you check www.afkmud.org and www.smaugfuss.org they have download sections with snippets and even how to add channels, one of the sections on afkmud explains how to add an OOC channel to boot.

[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/

Everything turns around in the end
Top

Posted by Tzaro   USA  (41 posts)  Bio
Date Reply #2 on Wed 07 Jun 2006 09:40 PM (UTC)
Message
A good place to start with your channel issue would be www.afkmud.com. You can go to their download sections and click on the 'Lost Prophecy Snippets' section, which have been reconstructed by Samson (Thanks Samson!). There is a section in there dedicated to making new channels. That should get you started.

If you're just starting to learn how to code, this forum will help you. Post a reasonable question and I'm sure you'll get answers rather quickly. But remember, the best way to learn is through trial and error. Pick up a book on C (or C++, depending on your source code) programming and give it a glance. It'll help you learn what things like "if ( !strcmp (ch->name, "Tzaro") )" is actually saying.

Alternatively, www.mudbytes.net is a great place to gain knowledge on MUD games. Again, it's a place to go when you need that little extra help to figure something out.

In both cases, always check the forums before posting to make sure you're not repeating a question :).

Best luck,
Tzaro

Implementer of Lost Prophecy,
Tzaro
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Wed 07 Jun 2006 09:53 PM (UTC)
Message
Take a look at this tutorial, it's exactly what you want:
http://www.auricmud.com/snippets/new-channel.html

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

Posted by Darzeth   (36 posts)  Bio
Date Reply #4 on Sat 10 Jun 2006 04:55 AM (UTC)
Message
if i use fuss can i still edit it like i would normal smaug?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Sat 10 Jun 2006 05:14 AM (UTC)
Message
I'm not exactly sure what you mean, but yes. You compile it the same, etc.

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

Posted by Zune   (76 posts)  Bio
Date Reply #6 on Sun 25 Jun 2006 03:46 PM (UTC)
Message
Hi. I'm trying to develop this OOC channel in smaugFUSS using the "how to add an OOC channel" guide. (links above) Unfortunately, its first step, which says to go to mud.h and search for channel_ gives me no results.

Quote:

" in mud.h do a search for channel_ and add:
#define CHANNEL_OOC BV30 (or whatever BV is next in your channel defines) "

(I go to edit-find in gVIM and search for it). I've tried finding "channel" but it just gives me some echo commentary...

Any ideas?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Sun 25 Jun 2006 07:17 PM (UTC)
Message
Are you searching for "channel" or "CHANNEL"? Searches are case-sensitive.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Zune   (76 posts)  Bio
Date Reply #8 on Sun 25 Jun 2006 07:52 PM (UTC)
Message
That was it. Thanks Ksil. Sometimes it's those small things. *embarassed*
Top

Posted by Zune   (76 posts)  Bio
Date Reply #9 on Sun 25 Jun 2006 08:59 PM (UTC)
Message
Alright. Thus far I've managed to get every step done in the OOC add-a-channel guide at http://www.auricmud.com/snippets/new-channel.html , but I'm stuck on the very last paragraph of instructions.

"Once you've completed all this need to finish up by adding the 'do_ooc' to mud.h and tables.c as per a normal new command, reboot, cedit it in, and you're done."

I suppose my question is - what and where do I add for this cryptic 'do_ooc'? I have to do something with it in mud.h and tables.c, but I'm not sure what I should add in total. Any ideas?
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #10 on Sun 25 Jun 2006 09:11 PM (UTC)
Message
need to place DECLARE_DO_FUN( do_ooc ); in mud.h then there are two entries in tables.c to make, look for do_immtalk and you'll see

Everything turns around in the end
Top

Posted by Gadush   (92 posts)  Bio
Date Reply #11 on Mon 26 Jun 2006 02:29 AM (UTC)
Message
Don't neglect to look at the documentation that comes with Smaug too. Check it out in the Doc folder, there are a lot of good things, including Adding a New Command, which tells you step by step how to do those things you mentioned, like cedit, etc...
Gadush
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.


30,937 views.

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.