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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Problem Importing Worlds.

Problem Importing Worlds.

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


Posted by Azoroth   (31 posts)  [Biography] bio
Date Sun 04 Nov 2007 07:22 PM (UTC)

Amended on Sun 04 Nov 2007 07:39 PM (UTC) by Azoroth

Message
Ok, I've been using MUSH client for the last two years so I have a lot of settings and alot of aliases/triggers. I've done no changes to my settings recently, and when I went to connect to my mud like I usually do, I open my world and get this error: Unexpected format.

and this error: Line 8066: Unexpected end-of-file while looking for </send> (problem in this file)

Now, I've opened the world in wordpad and can see all my settings, is there anyway I can just copy and paste them in again? Since it's obviously having trouble importing.

Edit: Ok, I've been trying now to copy all the XML format into the MUSH notepad and then importing from clipboard, but it's saying there's a XML parsing error.

Also getting this on the clipboard: Line 8066: Unexpected end-of-file while looking for </send> (problem in this file)
[Go to top] top

Posted by Azoroth   (31 posts)  [Biography] bio
Date Reply #1 on Sun 04 Nov 2007 08:03 PM (UTC)
Message
Hmm, I'm starting to think that maybe I will have to reconstruct my world file in order to get it working again?
[Go to top] top

Posted by Nick Gammon   Australia  (22,991 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 04 Nov 2007 08:33 PM (UTC)
Message
It sounds like your file was truncated somehow - perhaps the disk was full when it was saved, or maybe the PC power got turned off at the wrong moment.

I hope you have backups, because beyond line 8066 sounds like it is gone.

You can recover the rest by terminating the file in a way that lets up to that line be processed. I would make a copy first to be on the safe side, and in that copy edit it with some text editor like Crimon Editor or UltraEdit.

Crimson Editor (free text editor): http://www.crimsoneditor.com/


Go to the end of the file (where the problem is) and you will probably find yourself half-way through a trigger, alias or something like this:


  <alias
   match="atk1"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
blah blah

<<---- End of file here, after <send> --->>


You need to delete the half-done alias (or whatever it is, and then add enough to let MUSHclient read in up to this point. If you are in the middle of an alias, it would be:


</aliases>
</muclient>


If you copy and paste here the last 20 or so lines if your file I could give more detailed instructions. However as I said, if the file is half-gone there is no way of getting it (the missing half) back unless you have backups somewhere.

- Nick Gammon

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

Posted by Azoroth   (31 posts)  [Biography] bio
Date Reply #3 on Sun 04 Nov 2007 08:57 PM (UTC)
Message
>
<send>do drink keg,drink keg,drop blank,get tongs,grip blank,pump
bellows,heat metal</send>
</alias>
<alias
match="forgenow"
enabled="y"
sequence="100"
>
<send>do drink keg,drink keg,drop blank,get tongs,grip blank,pump
bellows,heat metal</send>
</alias>
<alias
match="forgenow2"
enabled="y"
sequence="100"
>
<send>do drink keg,pump bellows,heat metal</send>
</alias>
<alias
match="forgenow2"
enabled="y"
sequence="100"
>
<send>do drink keg,pump bellows


That's the last couple of lines.
[Go to top] top

Posted by Nick Gammon   Australia  (22,991 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sun 04 Nov 2007 09:41 PM (UTC)

Amended on Mon 05 Nov 2007 12:39 AM (UTC) by Nick Gammon

Message
OK, well you can see some is missing, so if you have a backup I would use that. Otherwise, change what you have there to read:


>
  <send>do drink keg,drink keg,drop blank,get tongs,grip blank,pump bellows,heat metal</send>
  </alias>
  <alias
   match="forgenow"
   enabled="y"
   sequence="100"
  >
  <send>do drink keg,drink keg,drop blank,get tongs,grip blank,pump bellows,heat metal</send>
  </alias>
  <alias
   match="forgenow2"
   enabled="y"
   sequence="100"
  >
  <send>do drink keg,pump bellows,heat metal</send>
  </alias>


</aliases>
</muclient>



In other words, you are deleting that last, half-finished alias, and then wrapping up the file by closing the <aliases> and <muclient> tags.

Save that as something.MCL and then try opening that amended file.

- Nick Gammon

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

Posted by Azoroth   (31 posts)  [Biography] bio
Date Reply #5 on Sun 04 Nov 2007 09:55 PM (UTC)
Message
Worked perfectly! Thank you so much, you have no idea how much this helped :D I would of lost around 1000 aliases and 300 triggers :) Much appreciated Nick, for the simplicity as well as the very fast response!
[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.


14,389 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]