Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl

Members: 0
Guests: 25
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
633
Rhyader
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Overland code and channels
Forum Rules | Mark all | Recent Posts

Overland code and channels
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 4, 2003, 2:40 am
Go to the top of the page
Go to the bottom of the page

typhon

GroupMembers
Posts6
JoinedDec 2, 2002

i just installed the overland code on a heavily modded smaug 1/4a code.. i must say its a sweet snippet thanks samson but it seems now that the code is in a character in teh map can't see global chans like chat that anyone says unless theyre in the same spot x,y location on the map.. same for anyone outside the amp.. they cant see what anyone says in the map.. also tells dont work .. i dont know if its supposed to be like that or what.. but either way i would prefer being able to see chat while int eh map.. anyone have any ideas what i could have done to screw ti up.. or something i need to do to change it...
tanks
typ
       
Post is unread #2 Jun 4, 2003, 7:31 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Though not tested, I found a check for is_on_map() in several functions in act_comm.c, the file that contains most of the in-game communication.

It seems that if the speaker and target characters fail the is_on_map() check, they don't hear or others can't hear them.

The is_on_map() function looks like this:

bool is_same_map( CHAR_DATA *ch, CHAR_DATA *victim ){   if ( victim->map != ch->map || victim->x != ch->x || victim->y != ch->y )      return FALSE;   return TRUE;}


Thus it checks map and coords if they're on the map.

As I said, not tested... but you could try removing the checks in act_comm.c's chat modules for is_on_map.
       
Post is unread #3 Jun 4, 2003, 11:00 pm
Go to the top of the page
Go to the bottom of the page

typhon

GroupMembers
Posts6
JoinedDec 2, 2002

onyl place i have those 2 checks are in the do_say and do_emote functions.. i don see how that would affect the global cannels
-typ
       
Post is unread #4 Jun 5, 2003, 8:47 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Then take my lead... Obviously somewhere along the lines of installing the snippet you made a change to global channels. Go through the instructions again and see if you can spot anything that may LOOK like a modification to the channels. Find it in your code... if there's a function, go find the function.

Grep is your friend, too... When I found is_on_map() in act_comm.c, I simply did this:
grep 'is_on_map' *.c *.h

It then showed me files where is_on_map appeared, and the lines they were on. If you know what the return type is (in this case a boolean or bool), you can type:

grep 'bool is_on_map' *.c *.h

This will usually give you the locations of where the function is defined. There are prototypes, usually found at the top of files, and then there's the actual meat of code, which has a set of { }'s with code inside them.
       
Post is unread #5 Feb 1, 2004, 10:16 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

What the hell is wrong with you?
Correcting a post over 6 months old.

Bloody fool.

-- X
       
Post is unread #6 Feb 2, 2004, 3:23 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Ok, the flamage isn't necessary even though the thread ressurection wasn't either. Lets keep it civil people.
       
Pages:<< prev 1 next >>