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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
shalimar
GURU


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

PostPosted: Mon Jan 26, 2009 9:58 pm   

[3.03a] %null item in string list causes freeze
 
Code:
<trigger priority="1000" repeat="true" id="9">
  <pattern>({@mySkills})</pattern>
  <value><![CDATA[$mat=%item(%replace(%1, " ", "|"), 2)
#SUB {<send ':%item(%names, 1):%1|:%item(%names, 1):materials $mat' 'craft $mat|materials'><color orange>%1</color></send>}]]></value>
</trigger>


I believe this trigger caused CMUD to go unresponsive when @myskills has a member=%null.
Seems to have stopped doing so since i removed it at least.
_________________
Discord: Shalimarwildcat
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Mon Jan 26, 2009 11:36 pm   
 
Hrm, might be a problem with MXP. See if you can reproduce it using the #MXP command.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Jan 26, 2009 11:37 pm   
 
I've reported a similar bug in the past where having a null item in a string list causes a regex to freeze.

I thought this was already fixed.

http://forums.zuggsoft.com/forums/viewtopic.php?t=30877&highlight=
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Jan 27, 2009 2:58 am   
 
Please post the exact value of your @mySkills variable so that we can test it here. The problem with nulls in triggers was fixed long ago, so there might be something else causing the problem. It might be with the "repeat=true" option.
Reply with quote
shalimar
GURU


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

PostPosted: Tue Jan 27, 2009 4:43 am   
 
Code:
<var name="mySkills" type="StringList" sorted="true" id="10">|this|that</var>

is enough to lock up a blank session, when you try to say send or echo stuff
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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