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
shalimar
GURU


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

PostPosted: Sun Jun 08, 2008 9:28 pm   

[2.26] Setting causes freeze
 
When ever i would start up by session it would lock up to the point where i had to kill it from the task manager.

Through trial and error of connecting offline, and disabling classes, I have found the following trigger to be the cause of my issues, though I am unsure why.

@mySkills is a stringlist with about 600 members.

Code:
<trigger priority="90" repeat="true" enabled="false" id="9">
  <pattern>({@mySkills})</pattern>
  <value><![CDATA[$mat=%item(%replace(%1, " ", "|"), 2)
#SUB {<send '%1|materials $mat'><color orange>%1</color></send>}]]></value>
</trigger>


Any suggestions would be helpful.
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jun 09, 2008 1:41 pm   
 
Well, that code doesn't compile for me, so that would certainly cause a problem.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Jun 09, 2008 8:42 pm   
 
Im not sure what the:

![CDATA[stuff]]

encapsulating my stuff is there for, but there is no compilation error on my side
_________________
Discord: Shalimarwildcat
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Jun 09, 2008 8:54 pm   
 
the CDATA's used when a properly-quoted version of the string (where < is & lt ; etc) would be longer. In your case, because you're using MXP, it would be.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 09, 2008 10:04 pm   
 
Yep, the CDATA stuff is perfectly normal.

I'm not getting any compile error from that trigger either, so it looks fine. But I'm not sure why it would lock up your session. I know that if you have a very large string list, you might exceed the internal size of a regular expression. Perhaps you could post the XML of your @mySkills variable so that I can try it here and see if that is the problem.

Maybe you have a null value in the @mySkills list that might be causing a problem? If so, then this trigger might fire on every line from the MUD.
Reply with quote
shalimar
GURU


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

PostPosted: Tue Jun 10, 2008 9:17 pm   
 
There was a null value, yes, once removed that fixed the issue, Im not sure how it got there in the first place
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Jun 10, 2008 9:53 pm   
 
Great! Glad you found it.
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