|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Jun 09, 2008 1:41 pm |
Well, that code doesn't compile for me, so that would certainly cause a problem.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jun 10, 2008 9:53 pm |
Great! Glad you found it.
|
|
|
|
|
|