Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Error when loading my pluging due to a trigger

Error when loading my pluging due to a trigger

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Gore   (207 posts)  Bio
Date Mon 21 Nov 2005 03:31 PM (UTC)

Amended on Mon 21 Nov 2005 03:36 PM (UTC) by Gore

Message
Line 9517: No closing ";" in XML entity argument "&" (problem in this file)

is the problem, my plugin loads fine before I add this trigger, then gives me that error afterwards. Any ideas?

Quote:
<triggers> <trigger enabled="y" group="qh:pipes" keep_evaluating="y" match="That pipe isn\'t lit\.$" regexp="y" script="found_unlit_pipe" sequence="100" > </trigger> </triggers>
Top

Posted by Gore   (207 posts)  Bio
Date Reply #1 on Mon 21 Nov 2005 03:38 PM (UTC)
Message
Just incase you need.. that trigger calls this sub

Quote:
sub found_unlit_pipe (a,b,wildcard) world.arrayset last_smoked & "pipe", "lit", 0 maintain_pipe end sub sub maintain_pipe if auto_pipes = 1 then if arrayget ("elmpipe", "filled") = 0 then fill "elm" end if if arrayget ("valpipe", "filled") = 0 then fill "val" end if if arrayget ("skupipe", "filled") = 0 then fill "sku" end if if arrayget ("valpipe", "lit") = 0 then light "val" end if if arrayget ("skupipe", "lit") = 0 then light "sku" end if if arrayget ("elmpipe", "lit") = 0 then light "elm" end if end if end sub
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 21 Nov 2005 07:50 PM (UTC)
Message
What is line 9517?

Maybe the plugin is just too big? Your other post will help fix that. Is the script inside CDATA blocks? If not, this line might be the problem:


world.arrayset last_smoked & "pipe", "lit", 0


It might be trying to interpret & "pipe" ... as an entity name (like &lt; ).



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Gore   (207 posts)  Bio
Date Reply #3 on Tue 22 Nov 2005 12:59 AM (UTC)
Message
Thanks, I appreciate the assistance. I'll try to load it again after I split up my plugin.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,913 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.