MXP Images?

Posted by Starflight on Tue 14 Sep 2004 02:37 AM — 8 posts, 33,177 views.

Australia #0
Sorry if this has been raised before, but I couldn't find it in previous posts. Where do I need to put image files so that I can access them with MXP?

If I simplly send <IMAGE abc.gif>, where is MushClient looking to find this file?
USA #1
I don't believe it's looking anywhere, since as far as I know MUSHclient doesn't have image support.
USA #2
Mushclient looks on the web, whereever the image tag says to. I would assume it would be hosted on the webspace for your mud.

It doesnt look anywhere locally, if thats what you're asking.
USA #3
Ah, right. It opens up a browser window, doesn't it?

But yeah, it treats the image location as a URL.
Australia #4
If that's the case, is it possible to somehow specify "localhost" with directory information as the URL address?
USA #5
Localhost would imply that there is a web server running which is not necessarily the case. You would have to use file:///, e.g.
file:///C:/tmp/tmp.html

Of course, you don't necessarily know that everybody has MC installed in the same directory, which could be problematic.
USA #6
It wouldn't matter if you specified a local file or not.
Mushclient does not display images. It displays hyperlinks to them, that have to be clicked to view in a browser window.

Read the release notes for version 3.51

6. When receiving an MXP <supports> tag, MUSHclient no longer claims to support the <image> tag.

7. When receiving an MXP <image> tag, it now appends the "fname" argument to the URL argument, eg.

<image fname="mypic.gif" url="http://myserver.com/images/" >

This will generate a link to:

http://myserver.com/images/mypic.gif

For more discussion about this, see http://www.gammon.com.au/forum/?bbsubject_id=4318
Australia Forum Administrator #7
If they are local images anyway, I can't see much point. As Eos says, MUSHclient doesn't actually display them. It is a text client after all.

If you want to distribute images for a MUD (eg. maps) then you could put them into a folder as JPG files, or HTML documents or whatever, zip it up and let the players download it and view them whenever they want, in their web browser.