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
gryningstid
Newbie


Joined: 18 Nov 2001
Posts: 3
Location: Sweden

PostPosted: Thu Jan 17, 2002 11:45 am   

Some questions about MSP
 
Ok i'm playing with the MSP protocol on my mud.

Well i have some friends that have made 4-5 songs for my mud;)

But heres the problem.

I start playing the first song, now is there anyway i can check if the player already have 1 song going? I want to build a random function so 1 of the 4-5 songs play at random (this is no problem) but then i have to spec how long every song is, and this feels bad ;)

So my 1 question, is there anyway to check if music is already playing with the MSP protocol?


Second question, can i change the volym on a musicfile that is running. (I want to change volym depending on fights etc)
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Thu Jan 17, 2002 2:45 pm   
 
1. There's no feedback from zMUD about sounds to the mud, and with the !!MUSIC command, there's no priority option, so you can't send a command that will only play if another's not already playing. !!SOUND allows this. !!MUSIC was proposed to be used to play a particular type of background music per zone/area, which would change based on a location in the mud, not a time, so you're stretching the intention of MSP a bit. Nothing wrong with that, but you'll be kind of limited in what you can do.

2. Yes, you can change the volume of a sound while it's playing, just re-issue the same !!SOUND or !!MUSIC command with a different volume value.

For more information check out http://www.zuggsoft.com/zmud/msp.htm



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
gryningstid
Newbie


Joined: 18 Nov 2001
Posts: 3
Location: Sweden

PostPosted: Thu Jan 17, 2002 3:31 pm   
 
Thx for the answers.

about answer 2, i really cant get to work.

I write: !!MUSIC(musik/name.mp3 V=10 P=10 C=1 T=music)

Then again: !!MUSIC(musik/london.mp3 V=100 P=10 C=1 T=music)

But it feels like i get the same volym what ever i try with, the !!SOUNDS work nice;)

Maybe i'm doing something wrong...;)
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Thu Jan 17, 2002 3:36 pm   
 
Try it with a file type other than MP3. I'm pretty sure that MSP wasn't intended to work with MP3 files.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
Amaya
Newbie


Joined: 02 May 2002
Posts: 1

PostPosted: Sat Mar 30, 2002 5:40 am   
 
I've seen the same thing with MIDIs, V=1 and V=100 sounds the same!

quote:

Try it with a file type other than MP3. I'm pretty sure that MSP wasn't intended to work with MP3 files.



zMUD 6 Online Help: All the power you'll ever need.



Matt & Jaimie Houghton-Thompson
Reply with quote
MattJaimie
Newbie


Joined: 11 May 2002
Posts: 2
Location: USA

PostPosted: Sat May 11, 2002 7:03 am   
 
This is a test.
Last time I posted, it put it under a different user and my username seemed to have disappeared.
-MattJaimie

[quote]
I've seen the same thing with MIDIs, V=1 and V=100 sounds the same!


Matt & Jaimie Houghton-Thompson
Reply with quote
Lanthum
Newbie


Joined: 26 Jul 2002
Posts: 2
Location: USA

PostPosted: Fri Jul 26, 2002 9:35 am   
 
I am trying to get MSP to work on my ROM, but can't seem to figure out how to send the final formatted !!SOUND() line to the player. send_to_char() and act() don't seem to work. Does anyone else know how to get it to properly send the !!SOUND() to the client?


Any help would be great. Thanks,
Lanthum
Reply with quote
MattJaimie
Newbie


Joined: 11 May 2002
Posts: 2
Location: USA

PostPosted: Fri Jul 26, 2002 2:16 pm   
 
send_to_char() is how I send it. Have you made sure your zMud settings to make sure it can receive sounds?

quote:

I am trying to get MSP to work on my ROM, but can't seem to figure out how to send the final formatted !!SOUND() line to the player. send_to_char() and act() don't seem to work. Does anyone else know how to get it to properly send the !!SOUND() to the client?


Any help would be great. Thanks,
Lanthum





Matt & Jaimie Houghton-Thompson
Reply with quote
Lanthum
Newbie


Joined: 26 Jul 2002
Posts: 2
Location: USA

PostPosted: Fri Jul 26, 2002 7:36 pm   
 
Don't you hate when you "can't see the forest for all the trees"? It was working with send_to_char(), I just forgot to turn my sounds on in the MUD.

*bonk self*

Thanks,
Lanthum
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