1. Post #121
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    Nonstandard ascii characters are not supported. Rename them before approving them.

    If you feel that is not the problem, ping me the URL for your songlist.php file.

    Edited:

    Is it possible to have it so as when guests add a new request, it removes their old one? I'm getting shit like this on my server:

    -Snip-
    I could, but it wouldn't really help your spam problem. They could still spam the chatbox, it just wouldn't count their previous nominations. However, unless people over-nominating songs is your problem, and not the spamming of the chat due to the nomination notifications, then your suggestion wouldn't help anything.

  2. Post #122
    FlapadarV2's Avatar
    December 2010
    1,802 Posts
    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.

  3. Post #123
    CawldFussuian's Avatar
    May 2011
    165 Posts
    What is a good web server to use with sql lite pre installed?
    sql lite comes with PHP not with the webserver.

    But use WampServer its Apache and mysql and php packed.

  4. Post #124
    Zombiedance's Avatar
    June 2009
    243 Posts
    Wouldn't a running a webserver from my computer eat my bandwith?

  5. Post #125
    CawldFussuian's Avatar
    May 2011
    165 Posts
    Wouldn't a running a webserver from my computer eat my bandwith?
    No it eats cookies.

  6. Post #126
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    Wouldn't a running a webserver from my computer eat my bandwith?
    Depends on how much it gets used. If you are only using it for this service, and you run a typical server, then you won't even notice the bandwidth usage, provided you are on broadband. The connection speed might be a bit slow though, since home broadband upload speeds are usually pretty shit.

    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.
    Yeah, I can do that. I'll create an option for it when I get home tonight. Check back in about 10 hours =P

  7. Post #127
    Zombiedance's Avatar
    June 2009
    243 Posts
    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.

  8. Post #128
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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:

    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
    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:
    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.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Friendly Friendly x 1 (list)

  9. Post #129
    Gold Member
    Skapocalypse's Avatar
    November 2008
    769 Posts
    Good stuff xP

  10. Post #130

    April 2011
    14 Posts
    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.

  11. Post #131
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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.

  12. Post #132

    April 2011
    14 Posts
    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.
    1 - Yes
    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.

  13. Post #133
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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.

  14. Post #134

    April 2011
    14 Posts
    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

  15. Post #135
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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.

  16. Post #136
    CawldFussuian's Avatar
    May 2011
    165 Posts
    You don't need newlines between the songs.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Disagree Disagree x 1 (list)

  17. Post #137

    April 2011
    14 Posts
    You don't need newlines between the songs.
    Then, might I ask how to fix this? :/

  18. Post #138
    CawldFussuian's Avatar
    May 2011
    165 Posts
    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/

  19. Post #139

    April 2011
    14 Posts
    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.

  20. Post #140
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Useful Useful x 1 (list)

  21. Post #141

    April 2011
    14 Posts
    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.
    That explains the problem, thanks.

  22. Post #142
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    That explains the problem, thanks.
    No problem. It would be possible to modify it to use a flat-file system instead, but it would be considerably slower, and would require a lot more code. However it would remove the sqlite requirement.

    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.

  23. Post #143
    CawldFussuian's Avatar
    May 2011
    165 Posts
    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.
    http://netburst.co.uk/wolfdj/songlist.php

    There is a difference betwheen \n\r and \n. Some browsers expect both be used.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  24. Post #144
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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?

  25. Post #145
    CawldFussuian's Avatar
    May 2011
    165 Posts
    That's what i meant, basically.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Friendly Friendly x 1 (list)

  26. Post #146
    Map in a box's Avatar
    July 2009
    7,051 Posts
    Sooo.. windows?
    Reply With Quote Edit / Delete Reply Windows XP United States Show Events Dumb Dumb x 1 (list)

  27. Post #147

    April 2011
    14 Posts
    Sooo.. windows?
    I managed to get it working. What's going on?

  28. Post #148
    CawldFussuian's Avatar
    May 2011
    165 Posts
    Sooo.. windows?
    Works fine under windows for me.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Agree Agree x 1 (list)

  29. Post #149
    Map in a box's Avatar
    July 2009
    7,051 Posts
    Works fine under windows for me.
    Talking about how wendows just loves \r

  30. Post #150
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    Talking about how wendows just loves \r
    To be honest, it's not really that much of an issue. There are a few things that might try to add extra \r's, but you can usually get by without them. However, when encoding and "invalid character" errors start popping up, then double checking that can sometimes solve problems.

    Edited:

    I managed to get it working. What's going on?
    Good to know you got it working. Let me know if you need any other assistance.

  31. Post #151
    Zombiedance's Avatar
    June 2009
    243 Posts
    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

  32. Post #152
    ColdFusionV2's Avatar
    June 2011
    183 Posts
    Check the error log there where probably errors while uploading.
    Reply With Quote Edit / Delete Reply Windows 7 France Show Events Agree Agree x 1 (list)

  33. Post #153
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    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.

  34. Post #154
    Zombiedance's Avatar
    June 2009
    243 Posts
    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

  35. Post #155
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    File does not exist: /home/xxxx/public_html/wolfdj/admin/js
    Did you delete the javascript directory??

  36. Post #156
    Zombiedance's Avatar
    June 2009
    243 Posts
    Did you delete the javascript directory??
    Nada

  37. Post #157
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    Then why does it say this?
    File does not exist: /home/xxxx/public_html/wolfdj/admin/js
    Edited:

    Also, what is an example of a song that gives you that error?

  38. Post #158
    Zombiedance's Avatar
    June 2009
    243 Posts
    Then why does it say this?


    Edited:

    Also, what is an example of a song that gives you that error?
    02 Down, Down, Down to Mephisto\\\'s Cafe.mp3 That song gives me errors. I disabled magic quotes in case your wondering.

  39. Post #159
    Terminal Shell Founder
    mr.wolf's Avatar
    July 2010
    820 Posts
    Odd that it is triple escaping then =/

  40. Post #160
    ColdFusionV2's Avatar
    June 2011
    183 Posts
    02 Down, Down, Down to Mephisto\\\'s Cafe.mp3 That song gives me errors. I disabled magic quotes in case your wondering.
    Do you have full access to that server?, maybe its your host messing around with the php settings.