Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
lodi
Newbie


Joined: 31 Aug 2007
Posts: 4

PostPosted: Fri Aug 31, 2007 10:21 pm   

Pictures with Mxp
 
Hey everyone.

Im trying to figure out how to use Zmud to display pictures in the mud.
I saw it on one mud that had their mud logo on startup.
And from what i've understand you use mxp. Simular to sounds and so on.
But what to do with the mud? I do need to type a line in there, like if i want a pic
in a room desc, then i'd had to type something in it. And have the pictures on the server comp right?

Hope you understand where im getting at, help will be much apprechiated
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Aug 31, 2007 10:30 pm   
 
Are you talking about ASCII? Or actual pictures?

Charneus
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Aug 31, 2007 10:36 pm   
 
The MXP specification is here and will explain how to enable and then use MXP. Only people whose clients support MXP and the image tag will see the images. More information on the image tag specifically is here.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
lodi
Newbie


Joined: 31 Aug 2007
Posts: 4

PostPosted: Sat Sep 01, 2007 1:23 am   
 
I see, but where do i type the tags? Like how do i put it in the actual code?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Sep 01, 2007 6:56 am   
 
You can just send open MXP commands as part of any text and it'll be parsed by the client (but make sure the client has an MXP enabled, either by asking them to enable MXP mode or by querying SB 91). For secure commands, you need to send ESC [ 1 z ; before you start using the command. I'm fairly sure that image is a secure tag.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
lodi
Newbie


Joined: 31 Aug 2007
Posts: 4

PostPosted: Sat Sep 01, 2007 5:15 pm   
 
oh i see. So you can just do it where ever you want to in descripts and so on.
Altho i quite don't understand the secure command part. If its not to much to ask for, may you give an example of how a line would look like?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Sep 01, 2007 5:39 pm   
 
Simply, <ESC>[1z;<image>hello.jpg</image>

But like I said before, you need to make sure the client has MXP enabled or they'll just see the tags.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
lodi
Newbie


Joined: 31 Aug 2007
Posts: 4

PostPosted: Sat Sep 01, 2007 6:17 pm   
 
I must be doing something wrong. Do i have to place the picture in a specific folder somewhere? or do i type in the directory in the image tag?

like: "<ESC>[1z;<image>/home/mudplace/picture/hello.jpg</image> "

Hope im not angering you with this, hehe
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Sep 01, 2007 6:45 pm   
 
<ESC> is a character (ASCII number 33), not the string "<ESC>". The images can be on the web or they can be on the user's computer - I'm not sure how CMUD chooses the directory for either, you'll need to experiment.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net