• WolfDJ 4.0 - In-Game MP3 Streaming
    436 replies, posted
Revision 15 is now up. It should fix a bunch of problems people have been having. I also switched over to using JWPlayer instead of Audioplayer, so it's now possible for people who are just joining to have the music start playing with the rest of the server. State saving is also 100% working now, so when enabled, the music will start playing where it left off if the map changes. Let me know if anything breaks. I did get a chance to test MySQL this time, so I should have gotten any lingering bugs that were popping up. [editline]4th September 2011[/editline] [QUOTE=Banana Lord.;32067389]Hi while I am here can you add a pubic uploader (toggleable by setting?) that allows viewers to upload MP3s that need to be verified by an admin? [editline]1st September 2011[/editline] And like, it logs + displays their IP in the pending page. That would be so amazing, I really don't want to make another =([/QUOTE] Didn't forget about you. Just wanted to make sure everything was working first. I guess I shouldn't try to work when I'm sick as a dog :v: I'll work on getting the public feature up sometime this weekend.
Awesome. :) One thing I noticed though now, genres save to my mysql table correctly, but don't output correctly on the index. For example, I selected "rock" as a genre to a song, it saved in the mysql table just fine, but the index says "2 tone".
Odd, it works for me...
[QUOTE=mr.wolf;32103718]Didn't forget about you. Just wanted to make sure everything was working first. I guess I shouldn't try to work when I'm sick as a dog :v: I'll work on getting the public feature up sometime this weekend.[/QUOTE] no seriously we should get married
Hey, try uploading a bunch of songs and tell me if you dont get the java.lang error
Are you chmodding the music and tmp directories 755?
the upload process works but, you get an error unable to upload java.lang but all of files are songs .mp3 previously from the music folder in 3.0 then you have to click ok then click retry files [editline]4th September 2011[/editline] fuck me [editline]4th September 2011[/editline] can you still upload songs if it is 755? last time you said 775
Depends on your setup. If your webserver is running as the owner, then 755 will do it. If it's running in the same group as the owner of the file, then 775 is required.
[QUOTE=mr.wolf;32104676]Depends on your setup. If your webserver is running as the owner, then 755 will do it. If it's running in the same group as the owner of the file, then 775 is required.[/QUOTE] I am on a shared hosting with hostgator. SHARED so 775? [editline]4th September 2011[/editline] ok it is at 775 [editline]4th September 2011[/editline] I think there might be a problem for people with mysql (ones who did not recreate their database). They need to import the sql file you edited. i think that the new tables might not have been written for them [editline]4th September 2011[/editline] Sorry for all of these posts, but i have something i want to add to mine, when you are superadmin, and double click on a song, it adds it to the SERVER queue, not personal. thanks [editline]4th September 2011[/editline] I am unable to search anything. it shows available songs 7 thats it
Updated songlist.php to fix the filter problem. Another derp.
Just updated to your newest revision and now music is not audible. Both in game and the web interface. I don't have to download JWPlayer for it to work do I? [B]Edit:[/B] Never mind, now fixed. Was user error.
[QUOTE=Qu1k;32109571]Just updated to your newest revision and now music is not audible. Both in game and the web interface. I don't have to download JWPlayer for it to work do I?[/QUOTE] It is included in the web_code foldler named jwplayer.swf you already have it
[WolfDJ] Error parsing song! Expected 6 properties, got 5 Table: {"Aerosmith","Fever","4","15","Rock",} [WolfDJ] Error parsing song! Expected 6 properties, got 2 Table: {"","f1017ae102105e90ccfa34d0912b166b",} It seems the genre saves in the mysql table as "genre\r\n", thus causing this issue.
[QUOTE=Banana Lord.;32104394]no seriously we should get married[/QUOTE] Please stop asking him to marry you because he knows basic PHP and Lua and released a plugin.
[QUOTE=Gfoose;32110824]Please stop asking him to marry you because he knows basic PHP and Lua and released a plugin.[/QUOTE] no
[QUOTE=jimbodude;32110760][WolfDJ] Error parsing song! Expected 6 properties, got 5 Table: {"Aerosmith","Fever","4","15","Rock",} [WolfDJ] Error parsing song! Expected 6 properties, got 2 Table: {"","f1017ae102105e90ccfa34d0912b166b",} It seems the genre saves in the mysql table as "genre\r\n", thus causing this issue.[/QUOTE] You might have to reinstall the database and let it regenerate
[QUOTE=jimbodude;32110760]It seems the genre saves in the mysql table as "genre\r\n", thus causing this issue.[/QUOTE] I updated the index.php save script to trim whitespace from the genres. I'm assuming this only happens for imported songs that you are trying to change, and not freshly added songs, no?
[QUOTE=mr.wolf;32117366]I updated the index.php save script to trim whitespace from the genres. I'm assuming this only happens for imported songs that you are trying to change, and not freshly added songs, no?[/QUOTE] Are you also making the public uploader?
[QUOTE=mr.wolf;32117366]I updated the index.php save script to trim whitespace from the genres. I'm assuming this only happens for imported songs that you are trying to change, and not freshly added songs, no?[/QUOTE] I'm still having lots of issues with genres, to be honest. Changing them on index and saving doesn't write to db. Index displays the wrong genre. Perhaps my index have nearly 800 songs isn't helping this issue? Have you thought about pagination? Everything else seems to be running flawlessly though, and the new JWPlayer integration is a nice touch, allowing users to start from where others are, if joining late / whatever.
[QUOTE=mr.wolf;32117366]I updated the index.php save script to trim whitespace from the genres. I'm assuming this only happens for imported songs that you are trying to change, and not freshly added songs, no?[/QUOTE] actually he just needed a fresh import of the sql from phpmyadmin. [editline]4th September 2011[/editline] can you add a few adjustments? Make doubleclicking nominate it to people, And try to find a way to make it override in game music like in deathrun where the in game music combines with it [URL="http://www.garrysmod.org/downloads/?a=view&id=62671"]http://www.garrysmod.org/downloads/?a=view&id=62671[/URL] overrides the music if you need an example
OH! You're running a microsoft server aren't you? Therefore the file is saving new lines as \r\n, not just \n. So when it explodes, it grabs the \r as well.... -.- Have I mentioned how much I dislike Windows servers? Because I hate them... [editline]4th September 2011[/editline] Added more trimming to the genre.txt parsing file. Let me know if that helps. [editline]4th September 2011[/editline] [QUOTE=camcole1;32120810]actually he just needed a fresh import of the sql from phpmyadmin.[/quote] No he didn't. Stop talking when you don't know what you're talking about... [QUOTE=camcole1;32120810]can you add a few adjustments? Make doubleclicking nominate it to people, And try to find a way to make it override in game music like in deathrun where the in game music combines with it [URL="http://www.garrysmod.org/downloads/?a=view&id=62671"]http://www.garrysmod.org/downloads/?a=view&id=62671[/URL] overrides the music if you need an example[/QUOTE] No, if you want those features, modify it yourself, it's not hard. Just change the doubleclick function. For the overriding music, if you want to do it, go for it. I'm leaving it out unless I get a bunch more requests for it.
i got the error [@lua\includes\extension\string.lua:57] bad argument #1 to 'concat' (table expected, got nil when they tried the red nominate button
[QUOTE=camcole1;32121290]i got the error [@lua\includes\extension\string.lua:57] bad argument #1 to 'concat' (table expected, got nil when they tried the red nominate button[/QUOTE] Did you have a song selected?
Thanks man. All genre issues seem to be sorted now. :) init.lua, nominate function: [lua]// Start playing if we don't have a song playing, and stream the queue to clients WolfDJ:SendQueue() if ( #WolfDJ.QueueTable == 1 ) then WolfDJ.SendSong() end[/lua]WolfDJ.QueueTable? As far as I can see, this here is the only place you mention that. Shouldn't it be WolfDJ.ServerQueue?
Fixed. Revision 20 [editline]5th September 2011[/editline] [QUOTE=jimbodude;32121555]Thanks man. All genre issues seem to be sorted now. :) init.lua, nominate function: [lua]// Start playing if we don't have a song playing, and stream the queue to clients WolfDJ:SendQueue() if ( #WolfDJ.QueueTable == 1 ) then WolfDJ.SendSong() end[/lua]WolfDJ.QueueTable? As far as I can see, this here is the only place you mention that. Shouldn't it be WolfDJ.ServerQueue?[/QUOTE] Yep, QueueTable was the name used in 3.0. Guess I missed that reference. *sigh*
Too what I see, the gamemode still works, but when opening the Addon I get this error spammed [GMStranded\gamemode\cl_panels.lua:1788] attempt to index field 'Line' (a nil value)
that's not related to this
It can be related to this. it could be conflicting
[QUOTE=Colonel_Black;32127109]It can be related to this. it could be conflicting[/QUOTE] Everything is local to the WolfDJ table. Unless the gamemode overrides something in the WolfDJ table, I don't think it is.
Hmm, odd how it spams errors then. The addon works fine, it's just the spam of errors ^^
Sorry, you need to Log In to post a reply to this thread.