Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Invalid Path Error

Invalid Path Error

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


Posted by Myriamele   (14 posts)  Bio
Date Sat 11 Jun 2022 11:50 PM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,070 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 12 Jun 2022 06:57 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Myriamele   (14 posts)  Bio
Date Reply #2 on Sun 12 Jun 2022 03:12 PM (UTC)

Amended on Sun 12 Jun 2022 07:12 PM (UTC) by Myriamele

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

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #3 on Mon 13 Jun 2022 04:34 AM (UTC)

Amended on Mon 13 Jun 2022 04:35 AM (UTC) by Fiendish

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

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,070 posts)  Bio   Forum Administrator
Date Reply #4 on Mon 13 Jun 2022 07:00 AM (UTC)
Message
What we need is someone to write an absolute path to relative path converter. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #5 on Mon 13 Jun 2022 02:48 PM (UTC)
Message
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.

https://github.com/fiendish/aardwolfclientpackage
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.


8,352 views.

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

Go to topic:           Search the forum


[Go to top] top

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