Raised This Month: $ Target: $400
 0% 

Jukebox for Source - Streaming Music System v0.5.5.0 Beta


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SirLamer
Senior Member
Join Date: Oct 2008
Old 09-17-2011 , 03:00   Re: Jukebox for Source - Streaming Music System v0.5.5.0 Beta
Reply With Quote #11

Quote:
Originally Posted by Gecko View Post
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:
Code:
		if(play_lock[i]) {
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.
__________________
Visit TEAM CHEESUS, a TF2 community with our own brand of injected shenanigans, for added flavor.

Plugins: Jukebox for Source
SirLamer is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode