Invalid Path Error

Posted by Myriamele on Sat 11 Jun 2022 11:50 PM — 6 posts, 16,761 views.

#0
I have a new computer and saved the worlds from my previous computer, so I could copy and paste them into the worlds folder on the new computer. I have done it previously with no issue, but today I keep getting this error:

Line 456:
C:\Users\ann\MUSHclient\worlds\plugins\Hyperlink_URL2.xml contains an invalid path. (Not loaded)

I looked in the plugins folder and there isn't a Hyperlink_URL2.xml, there is only Hyperlink_URL

Also, when I click ok in the error, it opens the world in MUSHclient, but then I get an error message that says:

Could not open log file "C:\Users\ann\MUSHclient\logs\<charname>.txt

I imagine that is because there aren't any log files for that character yet, but I'm not sure how to fix it.

These errors do occur each time I open a world, even once they are established in MUSHclient.

How can I fix them?

Thank you,
Ann
Australia Forum Administrator #1
Quote:

Line 456:
C:\Users\ann\MUSHclient\worlds\plugins\Hyperlink_URL2.xml contains an invalid path. (Not loaded)


Line 456 of what, I wonder? The world file? You can open it in a text editor, and see if there is something on line 456 about that.

As for the logs, look in your logging configuration. Maybe you need to change the path to which logs are written. The error wouldn't be that the log file doesn't exist, that doesn't make sense. However if the folder doesn't exist, that is different. It can't open a file in a non-existent folder.
#2
Hi Nick,

Thank you for replying :)

After futzing with the files for a while, I realized that the person who had set up my new computer for me had copied and pasted all of the MUSHclient program files from my thumb drive to the new computer. That created all the <dates> that are now being added to file names, and since I didn't realize he'd done that, I also downloaded the current version from the website. (The one on my thumb drive is the current version, too)

So, after banging my head against the keyboard for an hour or so, I finally realized what happened, deleted every file on my new computer that had anything to do with MUSHclient, and once I was sure that was done, I downloaded a clean copy. Then I was able to copy and paste the log and world files from the thumb drive, and all of them are opening just fine now, yay!

Ann
Amended on Sun 12 Jun 2022 07:12 PM by Myriamele
USA Global Moderator #3
Quote:
I realized that the person who had set up my new computer for me had copied and pasted all of the MUSHclient program files from my thumb drive to the new computer.


This is a common problem that people run into (sadly) because MUSHclient still stores absolute paths for several things things instead of relative paths even when they're inside the MUSHclient folder. That means that MUSHclient folders aren't nearly as portable as they could be. This also hits people who try to run from a shared network drive on two different computers.
Amended on Mon 13 Jun 2022 04:35 AM by Fiendish
Australia Forum Administrator #4
What we need is someone to write an absolute path to relative path converter. :)
USA Global Moderator #5
I do it in Lua for Aardwolf ( https://github.com/fiendish/aardwolfclientpackage/blob/6dd3576ac6928915dd5f92535dc76801c3dd77af/MUSHclient/worlds/plugins/aard_requirements.xml#L184-L207 ) but I'm not sure how robust my method is.