• Wolf Dj
    32 replies, posted
Outdated version has been removed. Latest version located here: [url]http://www.facepunch.com/threads/1074270-WolfDJ-3.0-Stream-music-to-players.-Includes-web-code?highlight=[/url]
Cool, neatly put together. Wrench.
Thanks, it works and it has nice songs. Wrench too.
You've answered my prayers, wrench for you, sir. Wait, wait, wait. What do I do with the webcode if I just want it for client-side?
May I ask what code of mine you changed? It looks like the exact same thing. [editline]05:48PM[/editline] Oh, I see what you changed. You did what I didn't want to do. Which was explain how to get it working for custom lists. And you cleaned up the code. Please take the credits at the top of the gStream lua, and put it in your lua at the top. [editline]05:50PM[/editline] Doubleedit. You can't since it's gmod.org hehe. Thanks for making it more user-friendly :P
[QUOTE=Skapocalypse;23033306]May I ask what code of mine you changed? It looks like the exact same thing. [editline]05:48PM[/editline] Oh, I see what you changed. You did what I didn't want to do. Which was explain how to get it working for custom lists. And you cleaned up the code. Please take the credits at the top of the gStream lua, and put it in your lua at the top. [editline]05:50PM[/editline] Doubleedit. You can't since it's gmod.org hehe. Thanks for making it more user-friendly :P[/QUOTE] Also added a few more features like convars on mutes and volume. Sorry about the credits, I mentioned you in all the docs. Main main goal here was to make it more user friendly. Something that someone could download and use in under an hour. You said your code was no longer supported, so I figured I'd release my upgraded copy. @Dachinz If you want to use it client-side, you still have to set up the webserver, since that is where it gets the music list and mp3's from. If you want a client-side only music service, I'd check out some of the static Jukebox's around gmod.org.
What does this mean? Timer Error: lua\includes\extensions\string.lua:169: bad argument #1 to 'gsub' (string expected, got nil) Also this addons\wolfdj\lua\autorun\sv_dj.lua:56: attempt to perform arithmetic on local 'Min' (a string value)
[QUOTE=dpoolas;23102746]What does this mean? Timer Error: lua\includes\extensions\string.lua:169: bad argument #1 to 'gsub' (string expected, got nil) Also this addons\wolfdj\lua\autorun\sv_dj.lua:56: attempt to perform arithmetic on local 'Min' (a string value)[/QUOTE] Probably that you either don't have a song and you're trying to play one, or the web-app is returning invalid data and the client is getting confused. Make sure you read the notes in the readme. The artist name comes from the MP3's folder, and must be lower case with no spaces or dashes (-). The title comes from the MP3's metadata, and cannot contain dashes (-). Double check your names. If you need to redo the meta data, VLC Media Player can do it.
The song list loads, but the songs do not play when I play them.
Same here.
I tried removing all spaces and dashes from anything in the properties but still no worky.
The default songs play, just not the custom ones...
I cannot play any songs.
Well if you ever reply... I am getting these errors in [url]http://mydomain.com/songlist.php[/url] [code]3 Days Grace-Pain-3-23-pain.mp3 Journey-Don't Stop Believin'-4-09-dont_stop_believin.mp3 Warning: scandir(music/pain.mp3) [function.scandir]: failed to open dir: Not a directory in /home/<snip>/public_html/songlist.php on line 9 Warning: scandir() [function.scandir]: (errno 20): Not a directory in /home/<snip>/public_html/songlist.php on line 9 Warning: array_slice() expects parameter 1 to be array, boolean given in /home/<snip>/public_html/songlist.php on line 9 Warning: Invalid argument supplied for foreach() in /home/<snip>/public_html/songlist.php on line 10 The Knife-We Share Our Mothers Health-4-14-we_share_our_mothers_health.mp3[/code]
You didn't install the webcode right I believe.
[QUOTE=Calmon;23432278]You didn't install the webcode right I believe.[/QUOTE] Yeah, by the look of it you have the mp3 in the music folder. It needs an artist folder. You should just have the music directory, and in that have directories for the artists. The songs go in the artists folder. You can also write your own system to store the songs in. I recently moved to a mysql system since the number of songs got huge on me. The songlist output just has to be each song on its own line, in the format of title-artist-min-sec-filename
Still no solution for my problem. I checked and all the filenames are correct and everything. The default songs you included work, but my custom ones don't. I tried several bitrates and everything, no success.
I still have problems with my songs not playing. I fixed the above errors but they still do not play. I also only seem to be able to get some of the songs to pop up. I have 3 songs from the same artist and only 1 of them shows. [editline]10:03PM[/editline] I figured out the problem and have fixed it. I still have problems with the full song list loading though.
I updated the first post to be a little more clear. If the full list isn't loading, then there is probably a hyphen somewhere, or some information is missing (probably the title in the ID3 data)
I get the error Timer Error: lua\includes\extensions\string.lua:169: bad argument #1 to 'gsub' (string expected, got nil) at [url]http://www.revengegamers.net/addons/radio/songlist.php[/url] this is on the top : Stream = {} Stream.Repository = "http://revengegamers.net/addons/radio/songlist.php" Stream.Player = "http://revengegamers.net/addons/radio/song.php" Stream.Paths = {}
The song times are not showing up. The reason why is because the mp3's I included are empty files, not real songs, so the ID3 detection doesn't work. Replace them with real mp3's and it should work.
i replaced it but i still got the same error its located in addons/radio/music/inna_feat_bob_taylor/deja_vu.mp3
[url]http://www.revengegamers.net/addons/radio/music/inna_feat_bob_taylor/deja_vu.mp3[/url] File not found? Anyways, you can wait until I get the new version polished up and ready for release, or you can try to work out the error. For some reason the webcode isn't reading the song length correctly. Make sure its a valid mp3. Just the extension isn't enough, it has to BE an mp3. Also make sure that you've included all of the webcode, including the id3 stuff.
i fixed that missing page, it is a real mp3 poweramp can read it Edit file details : Type MPEG : Layer 3 audio Extension : .mp3 Length : 3:23 Size : 7952 KB Uncompressed : 35064 Comp. ratio : 4 to 1 (22%) Bitrate 320 Frequency 44100 Channels 2 [Joint Sterio] Level Mpeg 1 layer III Encoded by FHG [GUESS] ID TAG : ID3V2.3 & ID3V1.1 Hope above is helpfull
[QUOTE=Aaron113;23485458]I still have problems with my songs not playing. I fixed the above errors but they still do not play. I also only seem to be able to get some of the songs to pop up. I have 3 songs from the same artist and only 1 of them shows. [editline]10:03PM[/editline] I figured out the problem and have fixed it. I still have problems with the full song list loading though.[/QUOTE] Mind telling me how you fixed your problem with songs not playing.Currently I am experiencing same problem,the song list loads and when I try to play the songs it shows that song is playing but I hear nothing. EDIT:The default ones don't work either and I am not getting any errors.The song list loads though.
[QUOTE=krabazoid;23727107]Mind telling me how you fixed your problem with songs not playing.Currently I am experiencing same problem,the song list loads and when I try to play the songs it shows that song is playing but I hear nothing. EDIT:The default ones don't work either and I am not getting any errors.The song list loads though.[/QUOTE] The current version doesn't work unless you know what you are doing with the web code. I'm in the process of making an easy-to-use version. It should be done sometime soon.
what must be changed in it? i changed the game folder to the directory's on the website, what more, it detect the song [editline]07:52PM[/editline] if you want, you can test it on my server
Here's the link to version 2.0 [url]http://www.garrysmod.org/downloads/?a=view&id=106894[/url]
Says file not found to me.
this has worked perfectly for me... although im not using anymore since my Host was going nazi on the music files
Sorry, you need to Log In to post a reply to this thread.