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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ working directory errors

working directory errors

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


Posted by Oriol   (31 posts)  Bio
Date Mon 14 Sep 2009 02:33 PM (UTC)
Message
Greetings:
Today I switched from mush 4.4something to the new mush 4.43 portable zip file.
When I tried to load a world I got this error:
Line 1703: C:\Documents and Settings\Administrator\Desktop\worlds\plugins\Winamp.xml contains an invalid path. (include file not loaded)
A bunch fo times for every plugin on the game.
Also when I open a world it goes tot he plugins dir when I add the plugins manually.
Any way to let mush know where the default plugins dir should be?
Thnx.
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #1 on Mon 14 Sep 2009 06:53 PM (UTC)
Message
http://www.gammon.com.au/scripts/showrelnote.php?version=4.42&productid=0

Quote:

4. Changed the way the current directory is handled.

In previous versions the current directory (that is, the default directory used in a file open if no full pathname is specified) would vary if you used the file browser dialog. For example, if you loaded a plugin (by browsing to find it), then the file browser would leave the current directory as the one the plugin was in.

I didn't want to change the file browser to not remember where you last browsed to, because that would be annoying if you wanted to load lots of plugins (say) from a non-standard location, and had to keep browsing to the same spot.

On the other hand, having the current directory change randomly can make plugins stop working.

The solution is now as follows:

a) When MUSHclient starts up, it remembers the startup directory (the current directory). This is stored internally (See GetInfo (68)).

b) The "file browsing" directory is initially set to be the startup directory.

c) When you use the file browser (there are about 36 places this happens), the current directory is set to be the file browsing directory - before the dialog appears. This way, file browsing remembers where you last browsed to.

d) After you have browsed for a file, MUSHclient remembers the now-current directory as the file browsing directory, for next time you browse a file.

e) After that, the current directory is reset back to the startup directory.

Note that the script function ChangeDir *does* change the current directory, as advertised.


:)
Top

Posted by Oriol   (31 posts)  Bio
Date Reply #2 on Mon 14 Sep 2009 08:00 PM (UTC)
Message
I must be stupid or something, but I don't see a solution to my problem here. All it does is state what I have already mentioned.
It does state taht the directory is changed every time you browser for a file, which makes plugins not load right.
It doesn't seem to be working either, since it's trying to load stuf in desktop, and I never loaded anything from there..
Top

Posted by Oriol   (31 posts)  Bio
Date Reply #3 on Mon 14 Sep 2009 08:15 PM (UTC)
Message
OK, I got it.
The problem was that I was running mush from a shortcut and it'd pick up desktop as the working directory.
Is tehre any way to fix this or do I need to run it directly from the folder?
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #4 on Mon 14 Sep 2009 08:53 PM (UTC)
Message
Change your plugin's includes to reference GetPluginIfo(20) .. "filename.ext" and not just "filename.ext"
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 14 Sep 2009 10:13 PM (UTC)
Message
Oriol said:

The problem was that I was running mush from a shortcut and it'd pick up desktop as the working directory.
Is tehre any way to fix this or do I need to run it directly from the folder?


Just change the shortcut to make the working directory the MUSHclient directory. Under XP, right-click the shortcut, choose Properties, and enter the directory you want under the "Start in" box.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #6 on Tue 15 Sep 2009 01:34 AM (UTC)
Message
Oriol said:

Any way to let mush know where the default plugins dir should be?


The default plugins directory is in the File -> Global Preferences dialog.

Whether that gets used when plugins load include files is a bit debatable.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


24,645 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.