Opening a world error

Posted by Zeno on Sun 03 Aug 2003 06:11 AM — 4 posts, 11,340 views.

USA #0
When I try to open a certain world, I get this error.

Unexpected file format.
Line 98: Value for attribute named 'match' not terminated (no closing quote) (problem in this file)

I didn't use scripts or anything, just triggers and timers. The world won't open because of this. Anyone know how to fix this?

Here's what it is

  <trigger
   enabled="y"
   match="
You are a mite peckish."
   regexp="y"
   sequence="100"
  >
Bold is line 98. I'm guessings having trouble because there's a linebreak there.
Should it be alright to delete the linebreak?
And why was it there in the first place? The trigger match in mushclient is one line.
Amended on Sun 03 Aug 2003 06:17 AM by Zeno
Australia Forum Administrator #1
Yes, I would delete the linebreak. It shouldn't have been there, but possibly it got there because you copied and pasted from the MUD and inadvertently copied a line break. Normally you can't type them in.
USA #2
Alright, it worked, thanks. I guess I'll have to remember no more copying to the trigger.
Australia Forum Administrator #3
I have changed 3.43 to check for newlines in trigger match text. You are not supposed to have them (as the trigger is only one line) and if they work their way in they cause the problem you describe.

It is possible to do that in current versions by:

* pasting text with line breaks
* using Ctrl+Enter when using the big "edit box" you can access by clicking the "..." button.