[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Error: XML import warnings when trying to open world file

Error: XML import warnings when trying to open world file

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


Posted by Kersoix   (11 posts)  [Biography] bio
Date Fri 18 Dec 2009 11:26 AM (UTC)
Message
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.
[Go to top] top

Posted by Hanaisse   Canada  (114 posts)  [Biography] bio
Date Reply #1 on Fri 18 Dec 2009 03:16 PM (UTC)
Message
Could you show us lines 163,130,137? It would help.
(Use code tags to preserve format)

aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000
[Go to top] top

Posted by Kersoix   (11 posts)  [Biography] bio
Date Reply #2 on Fri 18 Dec 2009 04:04 PM (UTC)
Message
I would post it if someone would tell me how to open the files and find those specific lines.
[Go to top] top

Posted by Hanaisse   Canada  (114 posts)  [Biography] bio
Date Reply #3 on Fri 18 Dec 2009 04:49 PM (UTC)
Message
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.

aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #4 on Fri 18 Dec 2009 05:18 PM (UTC)
Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Hanaisse   Canada  (114 posts)  [Biography] bio
Date Reply #5 on Fri 18 Dec 2009 06:36 PM (UTC)
Message
Without even counting to line 163 you can see the problem immediately.

match="^.*elude you.$"

What is that strange character?

aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #6 on Fri 18 Dec 2009 06:46 PM (UTC)

Amended on Fri 18 Dec 2009 06:48 PM (UTC) by Twisol

Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #7 on Fri 18 Dec 2009 07:10 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Fri 18 Dec 2009 07:10 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Kersoix   (11 posts)  [Biography] bio
Date Reply #9 on Fri 18 Dec 2009 07:16 PM (UTC)
Message
Thanks a lot for the help. :)
[Go to top] 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.


25,489 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]