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
raviden
Novice


Joined: 02 Nov 2010
Posts: 45

PostPosted: Tue Nov 02, 2010 5:10 pm   

Special characters (@/#/%/...) matching in CMUD pattern
 
Any idea how?

Also, the new pattern wizard is kinda not working, at least in the part in which it should tell if the pattern is right or not.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Nov 02, 2010 6:32 pm   
 
You can "escape" the next character in a pattern using the ~ character. So to match a @ character, you put ~@ in the pattern, etc.

You'll need to provide more information about what exactly isn't working in the pattern wizard. Post a step-by-step procedure to reproduce the problem.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Nov 02, 2010 6:38 pm   
 
If you use the drop down selector box on the pattern tab of the trigger to grab the text from your scroll-back buffer, and then click the lil up arrow button, it usually will stick the tildes in for you.
_________________
Discord: Shalimarwildcat
Reply with quote
raviden
Novice


Joined: 02 Nov 2010
Posts: 45

PostPosted: Wed Nov 03, 2010 11:54 am   
 
Zugg:

Basicly there is this 'pattern does not match' information and it's all the time, even when I put a wildmatch * into pattern and any text down. Also, I've tried using ~@ and it's not working as it should (meaning trigger is not processing). I was pretty advanced scripter in zMUD, but here I even have problem writting single trigger.

Pattern:
~@ (*): (*)
Value:
#sh Hey!

On-screen: #sh @ Mike: Hello!
is not processing the trigger.

When I 'arrow down' my pattern, @ dissapears completly. When I write some text and then arrow up, it consists but without ~, and disappears if proced back.

Another thing: I have PCRE810.dll loading error while starting cMUD.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Nov 03, 2010 3:27 pm   
 
Can you copy the trigger (by selecting it in the package editor and type Ctrl-C) and post it in the forums in [code] tags. This allows us to view the exact trigger you are working on and help you any more.
_________________
Asati di tempari!
Reply with quote
raviden
Novice


Joined: 02 Nov 2010
Posts: 45

PostPosted: Wed Nov 03, 2010 5:02 pm   
 
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="40" copy="yes">
    <pattern>~@ (*): (*)</pattern>
    <value>var = WIZ %1: %2
#stw + var</value>
  </trigger>
</cmud>
Reply with quote
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Wed Nov 03, 2010 6:27 pm   
 
raviden wrote:

Another thing: I have PCRE810.dll loading error while starting cMUD.


That sounds like the problem to me. I get this error from time to time when starting CMUD. In my experience no trigger will fire while getting this error. Once you get CMUD to load without that error you should be set.
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Nov 03, 2010 7:35 pm   
 
Fizgar is correct. CMUD converts pattern matching to regular expression internally. If PCRE is causing a problem then it's likely none of you triggers will fire.

Sometimes a simple reboot will take of it. Search for any other PCREXXX.dll's on your system, since they may be causing a loading conflict.
_________________
Asati di tempari!
Reply with quote
raviden
Novice


Joined: 02 Nov 2010
Posts: 45

PostPosted: Thu Nov 04, 2010 8:24 am   
 
Any possible solutions for fixing this error?

I've deleted octave (had pcre.dll), rebooted and reistalled cMUD, the problem still occurs. Perhaps it's some firewall/antivirus issue?

Edit. Oh, yeah. Bitdefender Antivirus has caused problem.
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