Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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, DotBot, Bing, Yandex

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Overland Snippet
Forum Rules | Mark all | Recent Posts

Overland Snippet
< Newer Topic :: Older Topic > Double look on entering the overlan

Pages:<< prev 1 next >>
Post is unread #1 May 4, 2005, 7:07 am
Go to the top of the page
Go to the bottom of the page

spallapiden

GroupMembers
Posts25
JoinedFeb 1, 2004

Hi, i have had the overland snippet installed (SmaugFUSS 1.4a) for quite some time and only just noticed that when entering the overland map you get a double look(displays it 2 times).

I thought that i might have made a mistake(still might have) tho i cannot for the life of me find where it is happening.

I have greped for do_look just to be sure there is not a double entry, made sure that the additions to do_look were correct(seem to be) but for the life of me am stuck.

This only happens when leaving an area and entering the overland map, any help or sujections of where to look woutd be great.

       
Post is unread #2 May 4, 2005, 8:14 am   Last edited May 4, 2005, 8:18 am by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Both the move_char and enter_map code have a player: do_look (ch, "auto";);

The only do_look there should be in move_char is:
  /*
   * Make sure everyone sees the room description of death traps.
   */
  if (xIS_SET (ch->in_room->room_flags, ROOM_DEATH) && !IS_IMMORTAL (ch))
    {
      if (xIS_SET (ch->act, PLR_BRIEF))
        brief = TRUE;
      xREMOVE_BIT (ch->act, PLR_BRIEF);
    }

  do_look (ch, "auto";);
  if (brief)
    xSET_BIT (ch->act, PLR_BRIEF);


If you see any other one within the move_char function, comment it and see how that works.



------Edit-------------

You may also want to check your char_to_room code in handler.c and check if it has the player do_look ... i've seen a few modified codes where that was added in.
       
Post is unread #3 May 4, 2005, 4:00 pm
Go to the top of the page
Go to the bottom of the page

spallapiden

GroupMembers
Posts25
JoinedFeb 1, 2004

I have checked both of those and seem to be correct, im totaly stuck with this one, any other sujections.

Peace and thanks so fat.
       
Post is unread #4 May 6, 2005, 6:01 am
Go to the top of the page
Go to the bottom of the page

spallapiden

GroupMembers
Posts25
JoinedFeb 1, 2004

Ok it isnt actually looking 2 times, its just dispalying the overland map 2 times then the prompt. So the room output when entering the overland goes,
room description,
overland map,
overland map,
mobs,
objects,
exits,
prompt.

Its like it loops on the displaying the map on entering, I have tryed to follow the code about, but get lost, Hope someone has some ideas about this one. Peace
       
Post is unread #5 May 6, 2005, 6:09 pm
Go to the top of the page
Go to the bottom of the page

spallapiden

GroupMembers
Posts25
JoinedFeb 1, 2004

Well suprise, suprise i actually found out what was going wrong, somehow the logic in move_char was all wring and it was calling enter_map then calling it again after an else, now all i have to determine is if i followed the instructions correctly and give myself the appropriate slapping. heh

Peace all.
       
Pages:<< prev 1 next >>