Problem Importing Worlds.

Posted by Azoroth on Sun 04 Nov 2007 07:22 PM — 6 posts, 21,494 views.

#0
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)
Amended on Sun 04 Nov 2007 07:39 PM by Azoroth
#1
Hmm, I'm starting to think that maybe I will have to reconstruct my world file in order to get it working again?
Australia Forum Administrator #2
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.
#3
>
<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.
Australia Forum Administrator #4
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.
Amended on Mon 05 Nov 2007 12:39 AM by Nick Gammon
#5
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!