Ulysses Stuff > Releases
URL Playsound Addon :) [2.28v]
Decicus:
--- Quote from: TeamEnternode on March 30, 2015, 05:04:21 AM ---So I wanted to bind playing a url to a key, however the URL seems to be required to be encased in quotes.
Thing is, since the command obviously has spaces in it, so does the bind.
That would lead into the seemingly logical bind command being
bind kp_end "ulx playurlsound "http://www.yougetthepoint.com/""
That doesn't work, because the only thing that would be seen is
"ulx playsoundurl "
Is there a workaround for this?
EDIT: Seems something like this was mentioned however I cannot find it's answer
--- End quote ---
Try using single quotes instead and see if that works?
TeamEnternode:
I tried that. It doesn't work.
Stealthycow:
--- Quote from: TeamEnternode on March 30, 2015, 12:56:09 PM ---I tried that. It doesn't work.
--- End quote ---
bind key "ulx playurlsound soundfile.mp3"
JamminR:
Cow, that won't work, it has to be a URL... http://blah blah
The quotes are only a tiny bit, if at all, of your challenge.
The console is tricky in and of itself, as colon (:) means "start new command on same line".
So, typing say hello : say world in console would end up you saying in chat
<you>: hello
<you>: world
Try, with no guarantees from me;
bind 9 "ulx playurlsound http\://monicasnwo.site.nfoservers.com/server/music/swag.mp3"
That extra \ in front of the colon is an escape sequences in lua, I forget if they work exact same way in Source console.
Escape sequences tell code to not 'interpret' the next character as it normally would.
I forget what can be used in console.
Decicus:
--- Quote from: JamminR on March 30, 2015, 03:19:53 PM ---Try, with no guarantees from me;
bind 9 "ulx playurlsound http\://monicasnwo.site.nfoservers.com/server/music/swag.mp3"
That extra \ in front of the colon is an escape sequences in lua, I forget if they work exact same way in Source console.
Escape sequences tell code to not 'interpret' the next character as it normally would.
I forget what can be used in console.
--- End quote ---
I tested earlier with escaping quotes in a bind. No luck. Not sure if other characters are possible.
--- Quote from: TeamEnternode on March 30, 2015, 12:56:09 PM ---I tried that. It doesn't work.
--- End quote ---
I wonder if it's possible for you to use a console alias for this. If the colon is a problem, then this might not even work, but give it a try.
--- Code: ---alias soundurl "http://www.example.com/example.mp3"
--- End code ---
--- Code: ---bind kp_end "ulx playurlsound soundurl"
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version