If you feel that is not the problem, ping me the URL for your songlist.php file.
If you feel that is not the problem, ping me the URL for your songlist.php file.
Yeah, it's so as they can't all play about 50 songs in a row, not so as they don't spam the chatbox.
Wouldn't a running a webserver from my computer eat my bandwith?
Yeah, I can do that. I'll create an option for it when I get home tonight. Check back in about 10 hours =P
Bah ill try it if it doesn't go down well then... shit... haha.
EDIT: Nah i just cant seem to get it to work.
Here you go Flap. I added an option in the sv_config called Multiple_Nominations. It defaults to true, which is the old behavior, seen here:
If this option is disabled, it modifies the behavior to the following:Code:> PrintTable( WolfDJ.Nominations )... [WolfDJ] $> Terminal Shell wants to play St. Jimmy This song needs 2 more nominations to play. > MsgN( Entity(2).WolfDJ_LastNomination )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b > PrintTable( WolfDJ.Nominations )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b: 1 = 680031846 [WolfDJ] $> Terminal Shell wants to play First Headache This song needs 2 more nominations to play. > MsgN( Entity(2).WolfDJ_LastNomination )... Halc - First Headache-2-16-eccbc87e4b5ce2fe28308fd9f2a7baf3 > PrintTable( WolfDJ.Nominations )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b: 1 = 680031846 Halc - First Headache-2-16-eccbc87e4b5ce2fe28308fd9f2a7baf3: 1 = 680031846
I hope that is what you're looking for. I also removed nominations from players when they disconnect.Code:> PrintTable( WolfDJ.Nominations )... [WolfDJ] $> Terminal Shell wants to play St. Jimmy This song needs 2 more nominations to play. > MsgN( Entity(2).WolfDJ_LastNomination )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b > PrintTable( WolfDJ.Nominations )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b: 1 = 680031846 [WolfDJ] $> Terminal Shell wants to play First Headache This song needs 2 more nominations to play. > MsgN( Entity(2).WolfDJ_LastNomination )... Halc - First Headache-2-16-eccbc87e4b5ce2fe28308fd9f2a7baf3 > PrintTable( WolfDJ.Nominations )... Green Day - St. Jimmy-2-55-c4ca4238a0b923820dcc509a6f75849b: Halc - First Headache-2-16-eccbc87e4b5ce2fe28308fd9f2a7baf3: 1 = 680031846
Good stuff xP
I'm running WolfDJ on WampServer, with PHP 5.2.11. The web part of it seems to work correctly. I uploaded three songs without error, but in game, none of the songs show in the song list. The menu also says only one song is available.
1. Double check you specified the correct songlist.php URL
2. Open the songlist.php url and see what it says
3. Link me the songlist.php file if you continue to have trouble.
2 - SNIXS-Treasure-4-40-c4ca4238a0b923820dcc509a6f75849b Coldplay-Viva La Vida-4-01-eccbc87e4b5ce2fe28308fd9f2a7baf3 Random-Victory Fanfare-4-01-c81e728d9d4c2f636f067f89cc14862c
3 - The way I have it set up would make this impossible.
If it is impossible for you to link me the URL of the songlist.php file, and you have modified the code so it doesn't need that, then you have modified the code outside the scope of my assistance.
The songlist.php file looks right, assuming it has newlines at the end of each of those, and they aren't all on one line.
I haven't modified the code at all, rather, there is no way to access the webfiles from outside of the local network, because my webserver doesn't have sqlite, and I don't have enough access to install it. So I installed WampServer on the same computer as the gameserver, and have the config files pointed to http://localhost/wolfdj/songlist.php and http://localhost/wolfdj/song.php
Edit: It doesn't look like there are newlines between the songs, what could be causing that?
Edit 2: Could it be this: Notice: iconv() [function.iconv]: Detected an illegal character in input string in \www\wolfdj\admin\lib\getid3\getid3.lib.php on line 968
Since you are running a windows server, you might need to use \r\n instead of \n
Encoding might be a problem based on that error.
You don't need newlines between the songs.
You say it doesn't play? no lua errors and the songname/timer at the top of the screen shows ?
If thats true then download and install flash for other browsers. http://get.adobe.com/flashplayer/otherversions/
Song name and timer don't show up, and I already have flash for Steam in-game. No songs show in the list out of the three I uploaded, but the song list panel says there is one song.
Erm... it kind of does need new lines, since that is how it parses the file...
No new lines means it would only parse the first line as the only file, and the hash would be off, since it would have the rest of the data as the hash...
Since you are running this on a windows box, localhost, I assume you are only using this for your personal use? Not to be condescending, but the way this system works, the songlist.php file has to be visible to any clients who want to use the player. So if you are expecting to have other people be able to use this, and you have it pointed to localhost, it won't work.
If you are using this only for your personal use, you might want to look into another addon, since this is targeted more towards public servers with world readable webservers.
My advice would be one of three things.
1.) Find a cheap host that has sqlite. There are hundreds of dirt cheap webhosts out there.
2.) Modify the code to use flat-file.
3.) Look into a different DJ mod.
Sorry for your troubles.
Look at the source, and you'll notice that it does in fact have new lines. The reason why it doesn't appear to when you look at it normally is because the MIME type for the document is a text/html, which ignores newlines for rendering purposes. However the newlines are there, and they are passed to the lua script which uses them for parsing.
I'm quite aware that there is a difference between \r\n and \n. (Note that I used \r\n instead of \n\r, since standard notation dictates that a carriage return [\r] occurs before a new line[\n]). Windows in particular is picky about the use of the carriage return, and since it is a windows server, it was a thought that it might be wanting a \r\n in the output before it would pass the \n on to the output. I don't usually use windows servers, so I'm not fully aware of their requirements on such things.
In general however, browsers don't care about \r\n vs \n. Certain email clients require the use of \r\n instead of \n (usually older ones), however I've yet to see a page render improperly, or a css file load incorrectly due to the lack of carriage returns. Unless you have a counter-example?
That's what i meant, basically.
Everytime i hit refresh list i get this error and I'm not sure what it means?
Timer Error: [lua\includes\extensions\string.lua:146] attempt to index local 's' (a nil value)
EDIT: Woops i messed up the route to the site
EDIT: I'm trying to confirm songs but i keep getting this error(if it helps my friend uploaded them):
Warning: unlink(limbo/the grouch - The Bay To LA (Ft MURS) - Show You The World.mp3) [function.unlink]: No such file or directory in /home/zombiesc/public_html/wolfdj/admin/process.php on line 12
Warning: unlink(limbo/Living Legends - Night Prowler ft. SLug.mp3) [function.unlink]: No such file or directory in /home/zombiesc/public_html/wolfdj/admin/process.php on line 12
Check the error log there where probably errors while uploading.
What is likely is that the webserver doesn't have permission to actually upload the song, so the filesystem doesn't have the file, but it is adding to the database anyway. Triple check your permissions.
Ok it works as long as i only upload a few songs at a time but when i upload more or certain songs i get this error:
[Sun Jun 26 20:55:44 2011] [error] [client xxx.xx.x.xx] File does not exist: /home/xxxx/public_html/404.shtml, referer: http://xxxxxx.com/wolfdj/admin/upload.php
[Sun Jun 26 20:55:44 2011] [error] [client xxx.xx.x.xx] File does not exist: /home/xxxx/public_html/wolfdj/admin/js, referer: http://xxxxxx.com/wolfdj/admin/upload.php