Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Discussion
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
goldensword52
Junior Member
 
Join Date: Apr 2014
Posts: 17

Old April 6th, 2014, 11:29 AM
Hi everyone, I'm attempting to make a Realm Works snippet that will open a playlist in my external media player. I've created a foreign object snippet, and told that to open a particular .m3u file on my computer. When I activate the link, it opens up my media player, but the music does not play and I get the following error message:

"Windows Media Player cannot find the file. If you are trying to play, burn, or sync an item that is in your library, the item might point to a file that has been moved, renamed, or deleted."

I've tried using several other media players as well, and none of the ones I've tried have worked. If I just double click the link in windows explorer, it plays just fine. So I have to assume the problem is with the way that Realm Works tries to open the file.

Has anyone else had any luck in opening .m3u files with realm works? Or is there some other way of getting realm works to play multiple different audio files? Thanks.
goldensword52 is offline   #1 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 01:32 PM
I just installed VLC, created a playlist, saved as .m3u.
I saved the .m3u file in the same directory as the mp3 files.

When I clicked, it opened VLC and started playing the first mp3 from the playlist.

Then I moved the file to my desktop, removed the reference in RW, and created a new reference, using the file that was on my desktop. It again worked and played the first file in the playlist.

So, I suspect you need to stop using Windows Media Player, and use a better media player.

Any help, feel free to ask, let's get the party started!


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #2 Reply With Quote
goldensword52
Junior Member
 
Join Date: Apr 2014
Posts: 17

Old April 6th, 2014, 02:33 PM
Well, the bad news is that VLC doesn't correctly play the playlist either. The good news is, VLC's error message is much more helpful. I got something like this for each track in the playlist:

File reading failed:
VLC could not open the file "C:\Users\Reggie\AppData\Local\Temp\RealmWorks\..\ E.S. Posthumus\Unearthed\Antissa.mp3" (Bad file descriptor).

It turns out that my playlist was using local pathnames instead of absolute pathnames. So I changed all of the pathnames for the songs to be absolute instead of relative. Now Realm Works opens the playlist just fine using any of my media players.

So I guess the lesson to be learned here is that Realm Works doesn't really play nice with relative pathnames in .m3u formats. If you're going to open a playlist in realm works, make sure that you use absolute pathnames in the playlist file. Thanks for your help in solving the problem BoomerET.
goldensword52 is offline   #3 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old April 6th, 2014, 03:41 PM
Relative pathnames require a particular starting point, don't they?
How does RW know what your starting point is?
Farling is offline   #4 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 05:53 PM
That was my very first comment when I started my post, but wasn't sure that the OP would know what I was talking about absolute/relative.

So, first I wanted to give him some immediate relief that it could in fact be done.

Glad to hear you got it working!!



BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #5 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old April 7th, 2014, 10:51 AM
Excellent information, thank you for sharing the solution!
lifer4700 is offline   #6 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:09 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.