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 ➜ General ➜ MSP and Legends of Kallisti mud

MSP and Legends of Kallisti mud

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


Pages: 1 2  

Posted by Mariachiac   (10 posts)  Bio
Date Mon 14 Dec 2020 03:15 PM (UTC)
Message
Hello,

I am a blind user of Mush Client. I have installed the mus reader plugin and have been able to get muds to talk. However, now I'm trying to get msp to work in mush.
I know a few muds that use the mud sound protocol (MSP), but I have not gotten any luck to make sounds play.
I've added the default msp script for sounds that's included with Mushclient 5.06.
When I load the plugin in the world, Legends of Kallisti, I do
set_msp_path C:\Users\user_name\MUSHclient\sounds\msp
I hear no sound. If I need to add a trigger or get a script to play sounds, let me know.
When ever the mud tries to play a sound via msp I get the following line of text
!!SOUND(song_gelsewhere.wav)
That's just an example. So I assume the trigger would have to have a wildcard. I do not yet understand how to do triggers in Mush Client yet as I'm new to using the client.

Thanks
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 14 Dec 2020 10:58 PM (UTC)
Message
Odd. That trigger is part of the plugin. Did you install msp.xml plugin, or MSP_Lua.xml? The Lua one is more recent.

From your description it sounds like the plugin is not actually installed. See File menu -> Plugins.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 14 Dec 2020 11:12 PM (UTC)
Message
 !!SOUND(song_gelsewhere.wav)

Is that literally what is shown? If the filename has some special characters in it (eg. an underscore) then the plugin might need to be modified slightly.


- Nick Gammon

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

Posted by Mariachiac   (10 posts)  Bio
Date Reply #3 on Thu 17 Dec 2020 06:06 PM (UTC)
Message
Okay... Where do I get the modified version of msp? I just have the default msp plugin installed that ships with the default mushclient download 5.06.
When I log in... I get text saying sound.wav (i.e., "!!SOUND(miscellaneous_fanfare*.wav)"
What modifications will I need to make?

Thanks
Top

Posted by Mariachiac   (10 posts)  Bio
Date Reply #4 on Thu 17 Dec 2020 09:53 PM (UTC)
Message
The plugin I have installed is msp.xml.
I assume it's installed since I can do msp_set_path to the directory the sounds are located in (e.g., C:\Users\My_username|MushClient\sounds|msp.
Thanks
Top

Posted by Mariachiac   (10 posts)  Bio
Date Reply #5 on Fri 18 Dec 2020 02:56 AM (UTC)
Message
Hello, ok I went to this link and coppied the code to create the MSP_Lua.xml fole.

https://www.gammon.com.au/forum/?id=12542

When I do ctrl-i and paste this line, sound plays
PlaySound (0, "../sounds/msp/song_gelsewhere.wav")
However, when I type the command to trigger that sound, I get no sound.
Command to trigger the msp sound in Legends of Kallisti: sing gelsewhere
I get recalled back to the waypoint and I hear no sound.
I've also tried the above with the included msp.xml script in Mushclient 5.06.
It's looking for msp sounds in C:\Users\my_username\MUSHclient\sounds\msp

Thanks
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #6 on Fri 18 Dec 2020 04:37 AM (UTC)
Message

Inside that plugin is a trigger. Look for this line (at or around line 44):

       match="!!SOUND\(([A-Za-z0-9./]+).*\)"

That matches the !!SOUND stuff coming from the MUD. It doesn’t currently recognize an underscore which your sound files seem to have in them. Add an underscore inside the square brackets, eg.

       match="!!SOUND\(([A-Za-z0-9./_]+).*\)"

Also, I am unsure about this filename that you quoted:

"!!SOUND(miscellaneous_fanfare*.wav)"

The asterisk there is rather strange, that is usually a wildcard. The plugin is not designed to handle wildcarded sound files.


- Nick Gammon

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

Posted by Mariachiac   (10 posts)  Bio
Date Reply #7 on Wed 23 Dec 2020 02:37 AM (UTC)
Message
That worked.
Thank you sooooo much!!!!
Top

Posted by Mariachiac   (10 posts)  Bio
Date Reply #8 on Thu 24 Dec 2020 07:30 PM (UTC)
Message
Hello,
The only thing i need to figure out is how to set a variable for the session Legends of Kallisti.
I have a world created.

Thanks
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #9 on Fri 25 Dec 2020 (UTC)
Message
Can you give more details? There are multiple ways of setting variables. What are you trying to achieve by setting a variable?

- Nick Gammon

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

Posted by Mariachiac   (10 posts)  Bio
Date Reply #10 on Tue 29 Dec 2020 01:07 PM (UTC)
Message
Hello,
Sorry fo r the late response.
I'm thinking I need to set a variable sinc everytime I log onto
kallistimud.com port 4000
and the msp plugin loads I have to set the directory manually for it to play sounds.
the directory I have the msp sounds is:
"C:\Users\my_user\MUSHclient\sounds\msp"
So I'm not sure how to make that automatic when ever I log into the mud.

One other question ,is the default msp.xml file suitable for msp uses or is there an upgraded script that allows for the playing of simultaneous sounds?

Thank you
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #11 on Tue 29 Dec 2020 08:37 PM (UTC)
Message
If you are using msp.xml as your MSP plugin, then modify line 77 which currently reads:


  <variable name="msp_path">c:\mushclient\msp\</variable>


Instead of "c:\mushclient\msp\" replace that with your own path to the sound files.




If you use msp_lua.xml instead (as mentioned earlier) then it remembers the sound file path once you change it the first time. Also, msp_lua.xml uses a better technique for playing sounds and can play up to 10 simultaneously.

- Nick Gammon

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

Posted by Mariachiac   (10 posts)  Bio
Date Reply #12 on Wed 06 Jan 2021 10:53 PM (UTC)
Message
Hello,

I've tried using msp_lua.xml from:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=783
and now the sounds do not play.
I've added the "_" in his line
match="!!SOUND\(([A-Za-z0-9./]+).*\)"
It now reads:
match="!!SOUND\(([A-Za-z0-9./_]+).*\)"
However, this does work with the vb script msp.xml.

Please help when you are able.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #13 on Sat 09 Jan 2021 03:16 AM (UTC)
Message
The msp_lua.xml plugin is in fact on:

http://www.gammon.com.au/forum/?id=12542&reply=6#reply6

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #14 on Sat 09 Jan 2021 03:19 AM (UTC)
Message
In reply #5 you said you were using msp_lua.xml, and in reply #7 you said that it worked.

I'm confused as to why you are now saying it doesn't work.

When you say that the sounds do not play, does the !!SOUND line also appear on the screen (indicating that the trigger didn't match)?

- 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.


45,272 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

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.