• WolfDJ 3.0 - Stream music to players. Includes web-code
    236 replies, posted
  • Avatar of botuts
  • Also is there a way to fix the Invalid mp3 problem, because i'm getting that on every song i try.
  • Avatar of Keegs
  • Recommend Free Web host to try this on? Maybe it's just me but I'm failing to get this working on the current one I'm trying.
  • Avatar of mr.wolf
  • [QUOTE=botuts;28921510]Also is there a way to fix the Invalid mp3 problem, because i'm getting that on every song i try.[/QUOTE] Apparently the issue has to do with IIS not allowing PHP to read the MP3 metadata correctly. (Hehe 3 letter acronyms). So even though the MP3's are actually valid, the server kicks them out. I will work on an override right now. I'll post back when it's done. [editline]31st March 2011[/editline] Alright, as of r10, if you are having trouble with the server kicking out all of your mp3's, set the REQUIRE_METADATA constant at the top of admin/limbo.php to false. This will allow any type of file to be uploaded, and you can manually set the title, artist, and song length. Be aware however, that any type of file can be uploaded in this case, including malicious ones. The directory is password protected still, but this does remove a layer of security, so only enable this feature if you have to.
  • Avatar of Fleamonji
  • Looks nice, much nicer than before. But wait, if there's a system to approve/deny music, why do you have to log into the admin area to upload? Sorry, I am confused.
  • Avatar of Zargero
  • Can anyone Skip and remove songs from the queue? Also very nice i got it setup in like 10 mins
  • Avatar of GuyRun01
  • [QUOTE=Zargero;28925552]Can anyone Skip and remove songs from the queue? Also very nice i got it setup in like 10 mins[/QUOTE] Only Admin + Or those defined within the DJ Table.
  • Avatar of mr.wolf
  • [QUOTE=Fleamonji;28923757]Looks nice, much nicer than before. But wait, if there's a system to approve/deny music, why do you have to log into the admin area to upload? Sorry, I am confused.[/QUOTE] The website side of things is password protected because anyone who has access can upload and delete songs. If it was open to the public, some random person could log on and delete all the songs. The confirmation step is used for two things. Vanilla WolfDJ uses it for the person uploading to confirm the songs they uploaded, and to double check that all the songs are saved with their proper names and artists. Not all mp3's have 100% valid metadata describing the title and artist, etc, so it bring you do a form where you can manually change them. It also allows you to change you mind. Also, if you wanted to make a public form for uploading music, then anyone who wanted to could upload a song, and then only an admin could approve the songs and add them to the database. This functionality isn't provided in WolfDJ by default, however it would be very easy to implement. For those of you who want to do this, make a copy of admin/upload.php somewhere public, and change the uc_uploadUrl parameter of the applet to point to uploadHandler.php under admin. If done correctly, anyone can upload a song using the same JumpLoader interface, but they won't get added to the DB until someone confirms them. It should be fairly simple to do. [editline]1st April 2011[/editline] [QUOTE=GuyRun01;28926044]Only Admin + Or those defined within the DJ Table.[/QUOTE] Yes, by default you have to me admin or superadmin to Add, Skip, or Remove songs from the server queue. There is a function called HasDJRights in both config files. (As of r11. Previous revisions only had it in the sv_config. You should put it in both if you want to change the functionality.) Return true from that function to allow players to add, skip, and remove. It has some examples in the config file.
  • Avatar of botuts
  • ok i finally got everything working except gmod. Came across these Lua errors when it was trying to load/refresh the songs. "Timer Error: [lua\includes\extensions\string.lua:146] attempt to index local 's' (a nil value) Timer Error: [lua\includes\extensions\string.lua:146] attempt to index local 's' " Theres probably an easy fix this, but i have no idea how to work with Lua. :(
  • Avatar of Fleamonji
  • Without looking at the code, and based on that error, s is nil. I'm assuming s is song, so could you just add a check to see if it's nil? if !s then return end
  • Avatar of mr.wolf
  • [QUOTE=Fleamonji;28927785]Without looking at the code, and based on that error, s is nil. I'm assuming s is song, so could you just add a check to see if it's nil? if !s then return end[/QUOTE] That should only happen if the songlist is fucked up. I'd rather fixed the songlist than ignore the problem and hack a solution that targets the symptoms. botuts, when did you get this error, what where you doing?
  • Avatar of Fleamonji
  • [QUOTE=mr.wolf;28927806]That should only happen if the songlist is fucked up. I'd rather fixed the songlist than ignore the problem and hack a solution that targets the symptoms. botuts, when did you get this error, what where you doing?[/QUOTE] Meh, I'd still say add it in anyway, a proper error message would look better than a Lua error - WTF SUCKY ADDON IT HAZ ERRORZ
  • Avatar of botuts
  • [QUOTE=mr.wolf;28927806]That should only happen if the songlist is fucked up. I'd rather fixed the songlist than ignore the problem and hack a solution that targets the symptoms. botuts, when did you get this error, what where you doing?[/QUOTE] Well i finally got the songs uploaded and the gmod lua code configured. I started up a quick gmod mp server, i pressed f7 and the window popped up but those 2 Lua errors would pop on the top right. It said in my song list i had 2 available songs which is correct. But the songs never popped up in the list and those 2 errors would always show.
  • Avatar of mr.wolf
  • [QUOTE=botuts;28935142]Well i finally got the songs uploaded and the gmod lua code configured. I started up a quick gmod mp server, i pressed f7 and the window popped up but those 2 Lua errors would pop on the top right. It said in my song list i had 2 available songs which is correct. But the songs never popped up in the list and those 2 errors would always show.[/QUOTE] Can you please post the URL to your songlist.php file?
  • Avatar of botuts
  • [QUOTE=mr.wolf;28936228]Can you please post the URL to your songlist.php file?[/QUOTE] is this is? [url]http://botuts1209.dyndns.org/wolfdj/songlist.php[/url]
  • Avatar of mr.wolf
  • [QUOTE=botuts;28936762]is this is? [url]http://botuts1209.dyndns.org/wolfdj/songlist.php[/url][/QUOTE] You didn't enter the song length's correctly. It should be min-sec, not min:sec. I guess I should have seen that one coming.... Re-upload the songs using the min-sec format. I also added a string replace to catch any min:sec and convert them.
  • Avatar of botuts
  • [QUOTE=mr.wolf;28940603]You didn't enter the song length's correctly. It should be min-sec, not min:sec. I guess I should have seen that one coming.... Re-upload the songs using the min-sec format. I also added a string replace to catch any min:sec and convert them.[/QUOTE] As of now, everything works :D thanks man
  • Avatar of mr.wolf
  • [QUOTE=botuts;28940801]As of now, everything works :D thanks man[/QUOTE] No Problem. Glad you like it.
  • Avatar of ColdFusion
  • Still failing trying to get to work in IIS. Uploader works fine, but Song conformation is broken. No errors, i had some looks true the code myself but everything looks fine to me. Any suggestions on stuff i can try ? [editline]2nd April 2011[/editline] Fuck yea got it to work, This is the stuff you need to do if you are working on a windows system. 1. Enable sqllite by uncommenting extension=php_pdo.dll extension=php_sqlite.dll in php.ini 2. Download the windows support files for getID3 else it will silently fail [url]http://sourceforge.net/projects/getid3/files/getID3%28%29%20Windows%20Support/[/url] 3. Copy the files in the zip to random folder 4. Specifie the folder location in wolfdj\admin\lib\getid3.php by addeding this line to the top of the file define('GETID3_HELPERAPPSDIR', 'C:/Your/Folder/'); //(No spaces end path with a / )
  • Avatar of ColdFusion
  • [@wolfdj\client\cl_menu.lua:387] Tried to use invalid object (type Panel) (Object was NULL or not of the right type) Also it most of the time doesn't go to the next song in que.
  • Avatar of mr.wolf
  • Awesome, glad that is fixed. That error pops up occasionally. I think it has to do with the panel being closed, but I can't seem to reliably reproduce it.
  • Avatar of FlapadarV2
  • [QUOTE=mr.wolf;28957251]Awesome, glad that is fixed. That error pops up occasionally. I think it has to do with the panel being closed, but I can't seem to reliably reproduce it.[/QUOTE] [lua]-- Update the list Stream.MenuText:SetText('WolfDJ - Total Songs Available: '..Stream.Count) Stream.MenuText:SizeToContents() Stream.MusicWindow:Clear() Stream.LoadList( Stream.SongList, Stream.MusicWindow )[/lua] Replace with [lua] -- Update the list if Stream.Menu and Stream.Menu:IsValid() then Stream.MenuText:SetText('WolfDJ - Total Songs Available: '..Stream.Count) Stream.MenuText:SizeToContents() Stream.MusicWindow:Clear() end Stream.LoadList( Stream.SongList, Stream.MusicWindow )[/lua]
  • Avatar of mr.wolf
  • hmm.. Could have sworn I added that a while ago, but I guess the commit didn't go through =/ Anyways, thanks flap! Let me know if this still happens everyone.
  • Avatar of Grim Jam
  • Requesting a random shuffle option for clients as well as server. Also a better explaination of radio mode. Edit : This has been a great thing to have on a server,thanks.
  • Avatar of mr.wolf
  • [QUOTE=Grim Jam;29035621]Requesting a random shuffle option for clients as well as server. Also a better explaination of radio mode. Edit : This has been a great thing to have on a server,thanks.[/QUOTE] Radio Mode [i]is[/i] a random shuffle mode for clients. When Radio Mode is enabled on the client, it will block incoming server songs. When the client plays a song locally, when the song ends, it will randomly choose a new song from the list. Basically it will keep streaming songs randomly after each song ends. The selection of what is played next is limited by what filter you currently have. So if you only want to listen to, say, Daft Punk, then you would put Daft Punk in the filter, and after the current songs ends clientside, it would play a random Daft Punk song. After that one ends, another random Daft Punk song. I've not fully tested this feature however. The above is how is should work. Please let me know if you run across any issues, and I will fix them. [editline]7th April 2011[/editline] Also, is your request for a random shuffle mode for the server as well?
  • Avatar of Grim Jam
  • Yarp, for the server too. And I understand roughly how radio mode should be executed - although I don't know what filter you are talking about - and I attempted playing and letting a song finish(locally) with radio mode on, but no joy. (Maybe it works for base level clients?) [QUOTE=ColdFusion;28954432] Also it most of the time doesn't go to the next song in que[ue].[/QUOTE] This isn't a big issue, but seconded.
  • Avatar of mr.wolf
  • Might have to do with the panel being unloaded when you close it. I will look into it this evening when I have some free time, and possibly add the server-side radio mode as well. The filter is the Quick Search function. It limits what is shown in the list to what you search for. The radio will then only play what you searched for. [editline]8th April 2011[/editline] Also, out of curiosity, how many people are actually using this?
  • Avatar of mr.wolf
  • Cool. What community do you guys code for, if any? I've seen you and flap around in tons of threads.
  • Avatar of ColdFusion
  • [url]http://www.stonedpotatoes.com/[/url] [url]http://stonedpotatoes.com/pages/servers.php[/url]