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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  3.50 Path Bug(?)

3.50 Path Bug(?)

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


Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Wed 26 May 2004 11:04 AM (UTC)
Message
First of all, does version 3.50 say "3.49" in the about box, or did I do something really stupid? And secondly, the paths are not working :( I tried to enter "\Program files\etc\whatever" as the path to the include file, and MUclient could not load it and gave me errors.

more "\Program Files\MUSHclient\worlds\Poromenos.MCL"

in a dos box has no problem displaying the contents of the world file. After that, I added an entity "path" to the world file to point to "C:\Program Files\Mushclient" and it worked, but on saving MUclient substituted the entity in the paths. Also, does it save the following directives as it found them?
auto_log_file_name
script_editor
script_filename

Well, maybe not script_editor, but one would like logging to be correct... The problem now is to get MUclient to load files with relative paths, can I do that?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #1 on Wed 26 May 2004 11:18 AM (UTC)
Message
OK, luckily MUclient will work if the file is in the worlds\ directory and it is specified as <include name="include.xml" />. I still can't get relative paths to work for the logs though... If I specify the filename only for logging, with no path, it defaults to the shortcut's path, and doesn't mess with the saved filename, which I guess could work... The script file cannot be found, so I guess that MUclient looks for it in the shortcut directory, but it does not change the saved pathname, so I think saving is OK, and the only thing left to do is fix relative paths.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Wed 26 May 2004 09:47 PM (UTC)

Amended on Wed 26 May 2004 10:22 PM (UTC) by Nick Gammon

Message
OK, first things first.

As requested, with standard include files (not plugins) it will save exactly the name you used.

Your problem with "\Program Files\MUSHclient\worlds\Poromenos.MCL" I reproduced, but it was because I ran MUSHclient from a different disk (eg. G:) from where the file was (eg. D:) and thus the path did indeed not exist.

You need to change your MUSHclient shortcut to at least start in the disk (and preferably directory) where you want your relative paths to be from.

As for relative paths, MUSHclient had two tests to inhibit adding in the MUSHclient directory to your include file name:


  1. It did not have a ":" in it (eg. c:)

  2. It did not start with "\" (ie. was not an absolute path).


I have added a third test in version 3.51:


  • It did not start with "..\" (ie. is not a relative path - upwards).

  • It did not start with ".\" (ie. is not a relative path - downwards).


- Nick Gammon

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

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Wed 26 May 2004 09:51 PM (UTC)
Message
Quote:

Also, does it save the following directives as it found them?

auto_log_file_name
script_editor
script_filename



  • auto_log_file_name should be unchanged

  • script_editor should be unchanged

  • script_filename should be unchanged



- Nick Gammon

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

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #4 on Wed 26 May 2004 10:01 PM (UTC)
Message
Yes, that's true, thanks for the correction. I didn't think to check the shortcut because i thought it uses the path it's installed in. With what you said, it should work fine as it is.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[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.


11,999 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]