Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Sir5er
Beginner


Joined: 21 Aug 2009
Posts: 11

PostPosted: Thu Jan 21, 2010 3:20 am   

Mapper Issue, specifically queue.
 
Hey, my problem is fairly simply and is thus:
When making a map i sometimes need to use either a "map" command (sent to the mud) to find the layout of rooms, or a "survey"command to find what colour the room should be.

Now if these commands are entered while in map mode, they are added to the queue. In fact everything i do is, including tells ect ect. This makes mapping and playing the game at the same time incredibly difficult.

How do i filter the queue?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jan 21, 2010 3:50 am   
 
#nodir command.

#oninput {(*)} {#if (!%ismember(%1,@movementcommands)) {#nodir}}
_________________
EDIT: I didn't like my old signature
Reply with quote
Sir5er
Beginner


Joined: 21 Aug 2009
Posts: 11

PostPosted: Thu Jan 21, 2010 6:48 am   
 
Ah thank you, that worked. But i've found another reason i stopped using the automapper.

When i swim in a direction i use the >swim n>n syntax.
But my mud see's swimming like so.

command:swim n
shows:
You swim towards the north.
followed by:
1266 health, 909 endurance xb-
then:

Near a scraggy reef.
The night sky is clear, and the stars twinkle like diamonds. Rocks jut unceremoniously from the water where the sea froths and foams as the strong currents and tides pound water into tight spaces. Pieces of flotsam and branches from the trees on the cliff,float by on the riptide, each one gliding out of the cove around the rocks and out to sea. Clinging to the rocks is a large clam.
You see exits leading west, south, east, and north.


This causes my map to make an empty room n, with the swim n exit, then another room north of that (which it shows as my current position).

Please note that i'm not using room name or description (in the mapper settings) to recognize Automatic step, and i've unclicked exits,desc and name in configuration. Everything i need to make the room is being tagged appropriately, and "You swim towards the north" isn't firing any of my tagging triggers.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jan 21, 2010 7:19 am   
 
Quote:

Please note that i'm not using room name or description (in the mapper settings) to recognize Automatic step, and i've unclicked exits,desc and name in configuration.


Why not use them? Are you deliberately going for the picture look with empty boxes connected by lines, or did you want to match name/desc/exits and are simply getting frustrated by extraneous material?

The more text you can tell the mapper to use for room creation, the more accurate it gets and the easier it is to use the map. Reducing room creation to a contextless prompt, while an interestingly novel approach, definitely isn't the easy way to do things.
_________________
EDIT: I didn't like my old signature
Reply with quote
Sir5er
Beginner


Joined: 21 Aug 2009
Posts: 11

PostPosted: Thu Jan 21, 2010 7:40 am   
 
Sorry i thought i mentioned it, using those settings in the MUD causes an access violation. Seeing as my triggers tag based on ACTP (mostly) there shouldn't be an issue.
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Thu Jan 21, 2010 10:23 am   
 
A CMUD access violation? That shouldn't be happening. Many of us are using ATCP (and Avasyu has even been working lately to make it even better for us) and aren't getting this problem. There could be an issue with some of your settings.

As for the room being created early, it's another #NODIR trigger on the You swim to the %w part.
Reply with quote
Sir5er
Beginner


Joined: 21 Aug 2009
Posts: 11

PostPosted: Thu Jan 21, 2010 12:25 pm   
 
Thank you, you've all been a huge help so far. One last problem in regards to this swimming thing.

The mud i'm playing is midkemia, which has a weird room set up. If there's an item or person in the room, the exits on a new line after the paragraph. If not, then there the same paragraph.
To tag descriptions properly i created the script as follows:

Trigger:
Code:
$a = %regex(%1, \e\[31m)
$b = %regex(%1, \e\[1~;37m)
#IF ($a)
{
  #IF ($b)
  {
    #IF ($a < $b)
    {
      #TAG desc {@setDescription(%1, "31m")};
    }
    {
      #TAG desc {@setDescription(%1, "1;37m")};
    }
  }
  {
    #TAG desc {@setDescription(%1, "31m")}
  }
}
{
  #IF ($b)
  {
    #TAG desc {@setDescription(%1, "1;37m")};
  }
  {
    #TAG desc {@setDescription(%1, "33m")}
  }
}


Function:
Quote:
#RETURN %subregex(%subregex(%stripansi(%left($a, %eval(%regex($a, $b))+2)), {"The night sky is clear, and the stars twinkle like diamonds. "|"The bright sun shines down upon you. "|"A smattering of clouds fills the sky, lacing it with spiderwebs of gray. "} , ""),{"A comforting feeling of privacy pervades the area. "}, "")


However this is failing to tag the room created after i swim. The name and exits are picking up due to the ATCP.

Sample text from MUD, a room with items and no people:
Quote:
<ESC>[1;30mNearing a narrow fjord.<ESC>[0m
<ESC>[36mThe bright sun shines down upon you.<ESC>[35m The open waters flow steadily over rocks and crags in an approach to a nearly concealed inlet on the coast. High dark cliffs <ESC>[0m<ESC>[35mline the sides of the fjord, pine and asp trees covering their sides protecting the inlet from approach over land. Small islands dot the entrance to the <ESC>[0m<ESC>[35minlet, concealing the single approach to a smugglers dream cove.<ESC>[31m The corpse of Aelryl lies rotting here.<ESC>[31m A fragile looking pot of bright red clay is here.<ESC>[31m <ESC>[0m<ESC>[31mWearing a tabbard of the Royal Krondorian Pathfinders, Justin stands here at attention.<ESC>[31m A sled rests on the ground here, several boxes piled on the back of <ESC>[0m<ESC>[31mit.<ESC>[31m There are 2 cargo crates here.<ESC>[0m
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net