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 ➜ General ➜ Error question (new world and quotes)

Error question (new world and quotes)

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


Posted by Wink   (16 posts)  Bio
Date Mon 30 Jan 2006 08:35 AM (UTC)
Message
Hi. My question is in regard to my attempt to load a new world using the defaults of another one that I'd saved from earlier.

I end up getting this message:

Line #: Value for attribute named 'match' not terminated (no closing quote) (problem in this file)


(The line number '#' varies when I remove certain triggers.)

Anyways, I imagine that this is probably fairly straightforward, but I don't know how to fix it. Any thoughts would be appreciated. Thanks.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 30 Jan 2006 07:51 PM (UTC)
Message
Are you manually editing the world file? It is unusual for MUSHclient to write out a file it cannot read back in. If that is happening please paste the offending trigger here so I can see it?

This trigger would give that problem:


<triggers>
  <trigger
   custom_colour="2"
   enabled="y"
   match="blah
  >
  </trigger>
</triggers>


Note the "match" line is not terminated.

Or this:


<triggers>
  <trigger
   custom_colour="2"
   enabled="y"
   match="You see "fish" "
  >
  </trigger>
</triggers>


This one should use &quot; instead of imbedded quotes, like this:


<triggers>
  <trigger
   custom_colour="2"
   enabled="y"
   match="You see &quot;fish&quot; "
  >
  </trigger>
</triggers>


This will also cause it:


<triggers>
  <trigger
   custom_colour="2"
   enabled="y"
   match="blah
blah"
  >
  </trigger>
</triggers>


You cannot have a newline inside the match text.

You would have to write that as:


<triggers>
  <trigger
   custom_colour="2"
   enabled="y"
   match="blah\nblah"
  >
  </trigger>
</triggers>


- Nick Gammon

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

Posted by Wink   (16 posts)  Bio
Date Reply #2 on Tue 31 Jan 2006 03:12 AM (UTC)
Message
Thanks for the response, Nick. In answer to your question, I've not tried to manually edit the file (didn't even know how to until today).

It's actually just two triggers that are causing the problem. When I remove both, everything runs again. Here's one:

<trigger
custom_colour="2"
enabled="y"
match="(?:Your body positively glows with health and vitality\.$|You embrace the spirit that dwells within you and are overcome with the joy of true unity\.$|Your soul draws inexorably closer to its spirit host as the spiritual bonding magic works about$|You shiver briefly as the spiritual bonding of your soul to its spirit host ends\.$|You raise your hands dramatically\, and summon an icewall .+\.$|Touching the mindseye tattoo\, your senses are suddenly heightened\.$|You carefully watch your footing and swing down from the treetops\.$|You cease your watchful alertness\.$|You grab hold of a nearby branch and swing nimbly up into the treetops\.$|You prick up your ears\.$|You put your fingers in your mouth and let out a high\-pitched whistle\, then hope for the best\.$|You hurl a Whirlwind of Vastar skywards\, and immediately a powerful whirlwind appears\.$|You inhale deeply\, allowing the air to fill your mighty lungs\.$|You open your maw and exhale a blast of frigidly col!
d air at the ground\, which becomes coated $|You perform a quick search of your surroundings\.$)"
regexp="y"
send_to="12"
sequence="100"
>
<send>bal = vbfalse</send>
</trigger>


The similarity that the two have is that both appear to be the longest triggers I have (the other trigger is about twenty times the length of the one above) and they both seem to be the only ones that have an exclamation mark (and a following new line) stuck in at some odd point. In the one above, it's after the "col", and in my other trigger, there are multiple ones all over the place. If I shorten the above trigger so that it ends after the "frigidly", it no longer causes problems.

That seems to fit with what you said about a new line in the middle of the match causing problems. So I guess my next question is, should I keep those two triggers shorter (or split them up into a few different triggers), or is there something else that I ought to try? And what's causing the exclamation mark/new line thing to show up in the trigger? Thanks again for any insight.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 31 Jan 2006 05:41 AM (UTC)
Message
I found if I took that trigger and edited it in the notepad, and changed that ! part to get rid of it and the line break, I could paste it into the trigger window OK. I could also then save and re-open the world file.

I don't see how that world file could ever be opened, with the linebreak where it is.

Here is my modified one which can be copied and pasted into the triggers list:


<triggers>
<trigger
custom_colour="2"
enabled="y"
match="(?:Your body positively glows with health and vitality\.$|You embrace the spirit that dwells within you and are overcome with the joy of true unity\.$|Your soul draws inexorably closer to its spirit host as the spiritual bonding magic works about$|You shiver briefly as the spiritual bonding of your soul to its spirit host ends\.$|You raise your hands dramatically\, and summon an icewall .+\.$|Touching the mindseye tattoo\, your senses are suddenly heightened\.$|You carefully watch your footing and swing down from the treetops\.$|You cease your watchful alertness\.$|You grab hold of a nearby branch and swing nimbly up into the treetops\.$|You prick up your ears\.$|You put your fingers in your mouth and let out a high\-pitched whistle\, then hope for the best\.$|You hurl a Whirlwind of Vastar skywards\, and immediately a powerful whirlwind appears\.$|You inhale deeply\, allowing the air to fill your mighty lungs\.$|You open your maw and exhale a blast of frigidly cold air at the ground\, which becomes coated $|You perform a quick search of your surroundings\.$)"
regexp="y"
send_to="12"
sequence="100"
>
<send>bal = vbfalse</send>
</trigger>

</triggers>



- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Tue 31 Jan 2006 05:42 AM (UTC)
Message
In your case, just open the world file in a text editor, locate those 2 triggers, and fix up the newlines.

I don't know how they got there in the first place, unless you have some sort of script that generated them.

- Nick Gammon

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

Posted by Wink   (16 posts)  Bio
Date Reply #5 on Tue 31 Jan 2006 05:46 PM (UTC)
Message
Thanks for the further responses, Nick.

You're right, removing those exclamation mark/new line things works. I'm not sure what exactly I did to cause that, because I've never actually encountered the problem before. Anyways, your help is greatly appreciated. Thanks again.
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.


19,088 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.