Quote:
Originally Posted by Gecko
Something strange is happening with this plugin. When I do sm_jb -all and play a song, sometimes the console outputs: "Your song has been queued. It will be played in -153452389 second." or some strange number like that, and then the song will randomly start playing 10 minutes later. It happens with automatic queuing turned on and off, and it does it even when there's no other song currently playing. Checked my error logs, got this:
Code:
L 09/03/2011 - 23:31:22: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 09/03/2011 - 23:31:22: [SM] Displaying call stack trace for plugin "jukebox.smx":
L 09/03/2011 - 23:31:22: [SM] [0] Line 4431, C:\Users\Greg\Documents\SourceMod Development\server script\sourcemod\scripting\jukebox.sp::PermissionCheck()
L 09/03/2011 - 23:31:22: [SM] [1] Line 2665, C:\Users\Greg\Documents\SourceMod Development\server script\sourcemod\scripting\jukebox.sp::AnnounceTrack()
L 09/03/2011 - 23:31:22: [SM] [2] Line 3366, C:\Users\Greg\Documents\SourceMod Development\server script\sourcemod\scripting\jukebox.sp::Query_NextTrack2()
I'm not positive that the first line is related to this plugin, i think it is though.
EDIT:
SourceMod Version: 1.3.8
Metamod:Source version 1.8.7
"Jukebox" (0.5.5.0) by SirLamer
|
The weird queue message does not affect playback success but it does indicate a problem. Please check what you have the cvar cv_queue_delay set to something rational like 4 or 5 (seconds). I'm not able to trace it right now but I'll keep watching.
The error in your log is the real problem. It's not directly related to the above one. I have found the error and it will be corrected in the next release. If you want to fix it now, edit jukebox.sp.
Change line 2657 from this:
to this:
Code:
if(play_lock[subscribed_clients[i]]) {
Then change line 2665 from this:
Code:
if(play_lock[i] || (is_reserved && !PermissionCheck(i, cv_admin_flags_reserved))) {
to this:
Code:
if(play_lock[announce_clients[i]] || (is_reserved && !PermissionCheck(announce_clients[i], cv_admin_flags_reserved))) {
Then recompile and voila.
__________________