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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Kline
Novice


Joined: 17 May 2001
Posts: 40
Location: Illinois

PostPosted: Thu Dec 13, 2007 3:37 pm   

[2.16] MSP Not Reading URL
 
I tried searching first and didn't find this, so hopefully it's not just a bug in my implementation of MSP. I read through the specs for it last night double checking, and it looks like I have everything ok.

MSP works if I have the sound pre-downloaded, or manually download it via CMUD by setting the default URL and the exact path to the sound in the MSP sounds tab and force it to download there. It won't set a default URL or automatically download, though. I have all MSP options enabled on CMUD. Here are the stings my MUD is sending.

!!SOUND(Off U=http://my.website/with/sounds/)
!!MUSIC(Off) !!MUSIC(default.mid L=-1 U=http://my.website/with/sounds/)
!!SOUND(battle.wav U=http://my.website/with/sounds/)
_________________
Infinity is only a mindset.

Down for PVP? Try The Vortex
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Dec 13, 2007 6:24 pm   
 
Seems to be working fine here using your example. Go into your MSP Preferences and make sure the "Enable sound downloading" option is enabled. You said you already did this, but otherwise I don't see any problem and I know MSP downloading is working on other MUDs.
Reply with quote
Kline
Novice


Joined: 17 May 2001
Posts: 40
Location: Illinois

PostPosted: Thu Dec 13, 2007 6:59 pm   
 
I went ahead and double checked, and "Enable sound downloading" is set. Even after creating a new profile and re-enabling MSP I am still having the same problems, so I guess I'll try to find a hole in my code if it is working with other games :).
_________________
Infinity is only a mindset.

Down for PVP? Try The Vortex
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Dec 13, 2007 8:31 pm   
 
To test this I just did:
Code:
#SHOW "!!SOUND(battle.wav U=http://my.website/with/sounds/)"

on the command line. So if you replace it with your actual site information, then you can test it from the command line to make sure your syntax is working correctly. On my system it tried to download the sound, but failed, of course, because the site info wasn't valid.
Reply with quote
Kline
Novice


Joined: 17 May 2001
Posts: 40
Location: Illinois

PostPosted: Thu Dec 13, 2007 8:56 pm   
 
That works perfectly for me, and after doing so even set the URLs for the individual files. Even setting the default URL with
Code:
#SHOW "!!SOUND(Off U=http://my.website/with/sounds/)"

worked fine. I can't see anything wrong with my code either, though, but it must be as other game servers are working fine and so are local tests.
_________________
Infinity is only a mindset.

Down for PVP? Try The Vortex
Reply with quote
Kline
Novice


Joined: 17 May 2001
Posts: 40
Location: Illinois

PostPosted: Thu Dec 13, 2007 9:25 pm   
 
Ok, so I found a problem with my code that I fixed as it was appending the default color code to the end of each string before sending it to the client. Wav files work great now. Midi's don't seem to properly loop though. I am sending one as
Code:
!!MUSIC(Off) !!MUSIC(default.mid L=-1 U=http://my.website/with/sounds/)

and it plays the first time then sets the sound to disabled under MSP options. It isn't looping infinitely (or until disabled) as it should.
_________________
Infinity is only a mindset.

Down for PVP? Try The Vortex
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Dec 13, 2007 9:31 pm   
 
I'll add this to the bug list to look at in January. I'm assuming that this is the first time you are testing CMUD with this? My guess is that the DirectShow API that I am using for sound support in CMUD isn't being called correctly to loop the MIDI sounds. zMUD had a completely different sound implementation, so it's not very surprising if there are some small differences like this.
Reply with quote
Kline
Novice


Joined: 17 May 2001
Posts: 40
Location: Illinois

PostPosted: Thu Dec 13, 2007 11:23 pm   
 
Yeah, this is my first go at CMUD with any MSP. I had toyed with it loosely back in zMUD years ago, but I'm working on a different project now and decided it would be a fun feature to use which has led to all of this :)
_________________
Infinity is only a mindset.

Down for PVP? Try The Vortex
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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