View Poll Results: How should Autosounds Trigger?
- Voters
- 49. You may not vote on this poll
Multiple Choice Poll.
Thread: DOE: Sound Extension
-
April 30th, 2017, 04:11 #681
-
May 5th, 2017, 18:42 #682
Has anyone see and issue with sound and the new pathfinder theme. I can't seem to create new sounds.
-
May 5th, 2017, 22:49 #683
-
May 7th, 2017, 09:34 #684
Hey there Dulux or Trenloe (as I think that you DO play local mp3s)
... was wondering about using DOE:sound URLs to play ogg or mp3 files that are local.
I run a linux OS, so I was wondering about the URLs used. I do have syrinscape installed and I know that
are working just great!syrinscape-fantasy:elements/YnVnYmVhci1iYXR0bGU6OjMtZmlyZS1zcGVsbA/play/
Now, trying to play a local mp3 file mystifies me! I've looked into DOE:OLE as Trenloe mentioned using that ... but either i'm doing something wrong, or this just won't work on LINUX. Here are a couple samples of what i'm entering as a Sound String:
orCode:mplayer /home/skj310/Music/DnD/gun-shot3.ogg
I can run both of the command above from a command prompt/terminal successfully, and neither require opening an application but will just spool the sound.Code:gst-launch-1.0 playbin uri=file:///home/skj310/Music/DnD/gun-shot3.ogg
Neither will work as sound strings; although dropping "file:///home/skj310/Music/DnD/gun-shot3.ogg" into the address bar of firefox or chrome will successfully play the music file.
Now I am not going to suppose that you're linux experts, but I do wanna know what a typical sound string would look like to play a local mp3 file? Can anyone show me what that syntax might look like? From there I ought to be able to figure out what i can do from linux. Can FG handle URLs like "file:///home/skj310/Music/DnD/gun-shot3.ogg"? Anyone else out there savvy and able to throw some help my way?
-
May 7th, 2017, 15:02 #685Celestial Paragon
- Join Date
- Jun 2013
- Location
- Isanti, MN
- Posts
- 2,682
-
May 7th, 2017, 22:58 #686
Hi Andraax,
Agreed, and that is what I thought as well see attached image:
But when I setup the OLE as in that image above I receive the following error:
And therefore I wondered if perhaps I was doing something wrong, or if linux OS was the problem?Code:Script Error: [string "common/scripts/string_list_link.lua"]:55: attempt to index field '?' (a nil value)
-
May 8th, 2017, 02:42 #687
There's an extra "/" in the URL string ie you've got "file:///" - shouldn't that be "file://" ???
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
May 8th, 2017, 04:15 #688
Thanks for the response Dulux-Oz!
I've tried the // over the /// and i still get the script error message as shown above. The difference is that if i paste that URL into firefox/chrome as "file://..." it fails to play the sound file, whereas "file:///..." WILL PLAY the sound file. As well I've tried using both mp3 and ogg extensions.
I should mention that running the URL from DOE:sound over DOE:OLE provides a slightly different error message:
Is this a situation related to OS?Code:Script Error: [string "DOESound/Scripts/IsSoundManager.lua"]: 259: attempt to index a nil value Runtime Error: desktop: Unable to create window with invalid class {url: file:///home/skj310/Music/DnD/gun-shot3.mp3)
-
May 8th, 2017, 04:44 #689
OK, as far as I'm aware using 3 "/" in a URL won't work - as in, its against the standard. Whether your browser/OS is doing something "extra" to make it work (something outside of the URL-standard) I don't know. Someone can correct me on this if I'm wrong (which might just be the case).
Under Windows, if the OS has an association for the file type then the OS will use that association to load the correct app to "display" the file ie if mp3 files are associated with the vlc media player Windows will load up the vlc media player and use it to play the mp3 file - via the URL string. As I don't use Linux as a (general) Desktop OS (Kali doesn't count) then I don't know how it treats URLs like the one we're discussing.
The error message produced by the DOE: Sound is definitely complaining about the URL string, and if I had to guess I'd say it was that 3rd "/", because I use URLs exactly like the one you've got (without the extras "/") and they work fine.
So, stupid question: does Linux have the same "association" idea as Windows (I assume it does) AND does your system have a particular association between mp3 files and a media player (remember, of course) that just because your browser can play audio doesn't mean that there is an association between a stand-alone media player and mp3 files).
A puzzler, to be sure.Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
May 8th, 2017, 05:15 #690
It is a valid URI/URL but that is all I have to contribute to this thread
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


Reply With Quote

Bookmarks