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.
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 " instead of imbedded quotes, like this:
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="You see "fish" "
>
</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>
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.
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>
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.
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.