Error: XML import warnings when trying to open world file

Posted by Kersoix on Fri 18 Dec 2009 11:26 AM — 10 posts, 38,819 views.

#0
I tried to open my world file today (it had been working well the past week) when I received an error and an XML Import warning. It wouldn't let me open the world.

This is the third time it's happened within a month, and I have no idea why. It started about the time I used colour triggers in my world though, and I wonder if that's the cause.

My triggers worked fine btw, I was using regular expressions ^.*(words to match).$ all the time.


World1 (MCL file):
Mushclient Unexpected file format (click ok)
XML import warnings - c:\Program Files\MUSHclient\worlds\World1.MCL)
Line 163: Non-printable character, code 15, not permitted for value for attribute named 'match' (problem in this file)



World2 (MCL file):
Mushclient Unexpected file format (click ok)
XML import warnings - c:\Program Files\MUSHclient\worlds\World2.MCL)
Line 130: Non-printable character, code 15, not permitted for value for attribute named 'match' (problem in this file)



World3 (MCL file):
Mushclient Unexpected file format (click ok)
XML import warnings - c:\Program Files\MUSHclient\worlds\World3.MCL)
Line 137: Non-printable character, code 15, not permitted for value for attribute named 'match' (problem in this file)



I'm using:
Mushclient 4.27
Windows Vista


Please help. Thanks.
Canada #1
Could you show us lines 163,130,137? It would help.
(Use code tags to preserve format)
#2
I would post it if someone would tell me how to open the files and find those specific lines.
Canada #3
Open Notepad.
File > Open > navigate to your worlds folder, change Files of Type: to All Files and you should see all your worlds.

Open one of them, and paste the entire file here.
USA #4
Depending on your Windows version, you might have to right-click and Open With, since it seems to associate .MCL with Windows Media Center on my system.
Canada #5
Without even counting to line 163 you can see the problem immediately.

match="^.*elude you.$"

What is that strange character?
USA #6
For what it's worth, Google Chrome isn't displaying it at all on my screen, so I had to copy/paste that line into notepad to see what you're seeing. That looks like the problem to me, yep! Just remove that character manually in the file and it should work.
Amended on Fri 18 Dec 2009 06:48 PM by Twisol
USA #7
I edited your post to blank out the password; note that the "encryption" is reversible with well-known procedures so if you leave the password in worlds you paste, you are giving your password to the world.
Australia Forum Administrator #8
Yes, as the others said you have slipped in a strange character into your match string. It is hex 0F (15), as reported by the error message.

You need to use Notepad to remove that character from those 3 lines and then you can load your world file again.

Why it is there is a mystery. I presume you copied and pasted stuff from the MUD, and normally they wouldn't send non-printable characters.

If you really need to match that particular character, and you are using regular expressions, you can replace it by:

\x0F

So, your match line could be:


match="^.*elude you.\x0F$"



I am looking at the code in MUSHclient, it shouldn't really save a world file it can't load back in again.
#9
Thanks a lot for the help. :)