Raised This Month: $12 Target: $400
 3% 

[ANY] SourceMod DJ (SMDJ)


Post New Thread Reply   
 
Thread Tools Display Modes
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 05-02-2012 , 01:13   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #131

Quote:
Originally Posted by Dr. McKay View Post
I assume that means that http://178.32.188.182/radio/music/7.mp3 and http://178.32.188.182/radio/music/6.mp3 are the incorrect files? If so, just delete those and upload your newer versions directly and it should work.
The odd things is they are the correct files, they are just playing the old version of the files that replaced them, meaning the songs are correct when played from the web, but plays the old songs in game.

Last edited by Mr. Man; 05-02-2012 at 01:14.
Mr. Man is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-02-2012 , 12:30   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #132

Quote:
Originally Posted by Mr. Man View Post
The odd things is they are the correct files, they are just playing the old version of the files that replaced them, meaning the songs are correct when played from the web, but plays the old songs in game.
Huh. If it plays the correct song via the Web, then I don't see why it wouldn't be correct in the server.

Try sm_reloadsongs?
__________________
Dr. McKay is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 05-02-2012 , 14:57   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #133

Quote:
Originally Posted by Dr. McKay View Post
Huh. If it plays the correct song via the Web, then I don't see why it wouldn't be correct in the server.

Try sm_reloadsongs?
I did, and that's what's baffling me.
Mr. Man is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 05-02-2012 , 15:20   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #134

Quote:
Originally Posted by Mr. Man View Post
I did, and that's what's baffling me.
Also, more errors:

Code:
L 05/02/2012 - 20:59:28: SourceMod error session started
L 05/02/2012 - 20:59:28: Info (map "achievement_apg_remade8") (file "errors_20120502.log")
L 05/02/2012 - 20:59:28: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2012 - 20:59:28: [SM] Native "Format" reported: String formatted incorrectly - parameter 7 (total 6)
L 05/02/2012 - 20:59:28: [SM] Displaying call stack trace for plugin "TF2_radio.smx":
L 05/02/2012 - 20:59:28: [SM]   [0]  Line 118, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::Command_SongList()
L 05/02/2012 - 22:47:35: [SM] Native "GetArrayCell" reported: Invalid index 10 (count: 10)
L 05/02/2012 - 22:47:35: [SM] Displaying call stack trace for plugin "TF2_radio.smx":
L 05/02/2012 - 22:47:35: [SM]   [0]  Line 347, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::PlaySong()
L 05/02/2012 - 22:47:35: [SM]   [1]  Line 219, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::Handler_TopMenu()
Mr. Man is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-02-2012 , 16:28   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #135

Quote:
Originally Posted by Mr. Man View Post
Also, more errors:

Code:
L 05/02/2012 - 20:59:28: SourceMod error session started
L 05/02/2012 - 20:59:28: Info (map "achievement_apg_remade8") (file "errors_20120502.log")
L 05/02/2012 - 20:59:28: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2012 - 20:59:28: [SM] Native "Format" reported: String formatted incorrectly - parameter 7 (total 6)
L 05/02/2012 - 20:59:28: [SM] Displaying call stack trace for plugin "TF2_radio.smx":
L 05/02/2012 - 20:59:28: [SM]   [0]  Line 118, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::Command_SongList()
L 05/02/2012 - 22:47:35: [SM] Native "GetArrayCell" reported: Invalid index 10 (count: 10)
L 05/02/2012 - 22:47:35: [SM] Displaying call stack trace for plugin "TF2_radio.smx":
L 05/02/2012 - 22:47:35: [SM]   [0]  Line 347, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::PlaySong()
L 05/02/2012 - 22:47:35: [SM]   [1]  Line 219, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\smdj.sp::Handler_TopMenu()
You updated to the most recent version, right?
__________________
Dr. McKay is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 05-02-2012 , 16:29   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #136

Quote:
Originally Posted by Dr. McKay View Post
You updated to the most recent version, right?
Yes I did.
Mr. Man is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-02-2012 , 19:06   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #137

I've updated the plugin to v2.2.2. It should fix the "String formatted incorrectly" error.

I've got no idea what's up with that Invalid index error. I've added an smdj_debug_dumparrays command. Next time that error comes up, run that command and attach what appears in /addons/sourcemod/data/smdj_arrays_dump.txt.
__________________
Dr. McKay is offline
darkblades
Junior Member
Join Date: Apr 2012
Old 05-02-2012 , 22:59   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #138

PHP Code:
$uploadmethod 'ftp';                    // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'blahsomeip';                            // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser';                            // FTP upload username
$ftp['pass'] = 'blahsomepass';                            // FTP upload password
$ftp['path'] = 'ftp://smdj/music/';                            // FTP upload path to upload to
$ftp['http'] = 'http:/smdj/music/';                            // Where to access the FTP upload path via HTTP 
Confused...is this correct?
darkblades is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-02-2012 , 23:03   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #139

Quote:
Originally Posted by darkblades View Post
PHP Code:
$uploadmethod 'ftp';                    // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'blahsomeip';                            // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser';                            // FTP upload username
$ftp['pass'] = 'blahsomepass';                            // FTP upload password
$ftp['path'] = 'ftp://smdj/music/';                            // FTP upload path to upload to
$ftp['http'] = 'http:/smdj/music/';                            // Where to access the FTP upload path via HTTP 
Confused...is this correct?
No. $ftp['path'] is the path relative to your FTP root. It shouldn't have a protocol on it.

For instance, if you have a directory on your FTP server named "/public_html/mp3", you'd put that in the variable.

$ftp['http'] is the HTTP location of the FTP directory. For instance, mine are set up as follows:

PHP Code:
$uploadmethod 'ftp';                    // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'dl.doctormckay.com';                            // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser';                            // FTP upload username
$ftp['pass'] = 'blahsomepass';                            // FTP upload password
$ftp['path'] = '/var/www/dl/mp3';                            // FTP upload path to upload to
$ftp['http'] = 'http://dl.doctormckay.com/dl/mp3';                            // Where to access the FTP upload path via HTTP 
__________________
Dr. McKay is offline
darkblades
Junior Member
Join Date: Apr 2012
Old 05-02-2012 , 23:12   Re: [ANY] SourceMod DJ (SMDJ)
Reply With Quote #140

I dont get that setup at all then. my ftp has the .com/smdj/music
That is where I expect songs to go
so wouldn't it be:

smdj/music

and

http://localhost/smdj/music

eh?

$uploadmethod = 'ftp'; // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'dl.doctormckay.com'; // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser'; // FTP upload username
$ftp['pass'] = 'blahsomepass'; // FTP upload password
$ftp['path'] = 'smdj/music/'; // FTP upload path to upload to
$ftp['http'] = 'http://localhost/smdj/music'; // Where to access the

Last edited by darkblades; 05-02-2012 at 23:13.
darkblades is offline
Reply


Thread Tools
Display Modes

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 09:54.


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