Junior Member
Join Date: Feb 2010
Location: Korea
|
02-16-2010
, 22:33
Re: Jukebox for Source - Streaming Music System
|
#358
|
Thanks for your help SirLamer
But I think my settings are correct.
I can't listen only in the game.
My settings are here
-databases.cfg-
Quote:
"Databases"
{
"driver_default" "mysql"
"default"
{
"driver" "mysql"
"host" "localhost"
"database" "jukebox"
"user" "root"
"pass" "my password"
//"timeout" "0"
"port" "3306"
}
"storage-local"
{
"driver" "mysql"
"database" "jukebox"
}
"clientprefs"
{
"driver" "mysql"
"host" "localhost"
"database" "jukebox"
"user" "root"
"pass" "my password"
//"timeout" "0"
"port" "3306"
}
}
|
-jukebox.cfg-
Quote:
// This file was auto-generated by SourceMod (v1.2.3)
// ConVars for plugin "jukebox.smx"
//The number of seconds after first spawning to display the Jukebox advertisement, or set to 0 to not display the advertisement.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "300.000000"
jb_advertisement 0.0
// URL path to Jukebox's base folder.
// -
// Default: ""
jb_base_url "http://kenka.webkebi.co.kr/jukebox"
// SQL Database name for the Options database.
// -
// Default: "jb_options"
jb_db_options "jb_options"
// SQL Database name for the Playlists database.
// -
// Default: "jb_stream_tracks"
jb_db_playlists "jb_stream_tracks"
// SQL Database name for the Streams database.
// -
// Default: "jb_streams"
jb_db_streams "jb_streams"
// SQL database name for the Tracks database.
// -
// Default: "jb_tracks"
jb_db_tracks "jb_tracks"
// Set to 0 to disable Jukebox, 1 to enable Jukebox for all users, 2 to reserve Jukebox operations for admins.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
jb_enabled "1"
// Anti-leech password used to timestamp produced URLs. Must match the leech password specified on the web server.
// -
// Default: ""
jb_leech_password "my password"
// The number of times the user must cancel a play-to-all song to be automatically reminded and invited to adjust personal playback
settings. Set to 0 to disable.
// -
// Default: "3"
// Minimum: "0.000000"
jb_monitor_jboff_use "3"
// When enabled, users will be reconnected to their music stream after being interrupted by an HTML-based Message of the Day display.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
jb_motd_restart "0"
// Default setting for if clients should comply with 'play all' command.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
jb_playall_default "1"
// When enabled, connecting new players will be merged into the latest active play-to-all stream.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
jb_playall_on_connect "1"
// The interval time between popularity decay events, in seconds
// -
// Default: "86400"
// Minimum: "60.000000"
jb_popularity_decay_interval "86400"
// Percentage rate of decay of popularity scores per interval time
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "100.000000"
jb_popularity_decay_rate "5"
// Default setting for automatic music queuing.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
jb_queue_default "0"
// Default playback volume for new users
// -
// Default: "80"
// Minimum: "1.000000"
// Maximum: "100.000000"
jb_volume_default "80"
// Volume boost for 'loud' playback
// -
// Default: "20"
// Minimum: "0.000000"
// Maximum: "50.000000"
jb_volume_loud "20"
// Minimum permitted volume setting, as a percentage of maximum volume.
// -
// Default: "10"
// Minimum: "0.000000"
// Maximum: "100.000000"
jb_volume_min "10"
// Volume reduction for 'soft' playback
// -
// Default: "-20"
// Minimum: "-50.000000"
// Maximum: "0.000000"
jb_volume_soft "-20"
|
-settings.php-
Quote:
<?php
// General settings
// Your website's or group's name, which will appear in the browser's title
$site_name = 'kenka.webkebi.co.kr';
// The encryption key used for leech protection. This value must be the same as the encryption key provided to the Jukebox server script. It is highly recommended that you change this value from the default.
$leech_pass = 'my password';
// MySQL connection credentials
// The host name. Often this should be "localhost"
$dbhost = 'localhost';
// The login user name. If you are renting a game server, this is usually provided to you.
$dbuser = 'root';
// The login password. If you are renting, this may be the same as your FTP password.
$dbpass = 'my password';
// The database name for your database. If you are renting, this is usually provided to you.
$database = 'jukebox';
// Remote file server:
// Enable/disable the remote file service with TRUE or FALSE
$remote_server_on = FALSE;
// The file server URL used for HTTP access to the file server
$file_server_url = '';
// FTP address to use for remote management of the file server
$ftp_host = '';
// Login name for remote file server FTP access
$ftp_user = '';
// Password for remote file server FTP access
$ftp_pass = '';
// Port for remote file server FTP access - typically, the default port is 21
$ftp_port = 21;
// Path of the Jukebox file server relative to the FTP root folder. Clear or comment out this parameter if using a dedicated FTP account that directs to the root folder already. A dedicated FTP account is recommended to protect the rest of your website from damage by unknown script errors.
$ftp_subfolder = 'tracks/';
//Table names - if you have a reason to change the table names in your database, then update the value(s) below.
$audio_tables = array(
"tracks" => 'jb_tracks',
"streams" => 'jb_streams',
"playlists" => 'jb_stream_tracks',
"users" => 'jb_users'
);
// The number of layers of subfolders in the md5-based storage structure for MP3 tracks.
// IMPORTANT: Do not change this value after uploading tracks to the database. If you think you are going to develop a collection of 20,000+ tracks, you might want to add a level or two, but if you don't then everything should still work fine.
$folder_depth = 2
?>
|
-constants.php-
Quote:
<?
/**
* Constants.php
*
* This file is intended to group all constants to
* make it easier for the site administrator to tweak
* the login script.
*
* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
* Last Updated: August 19, 2004
*/
/**
* Database Constants - these constants are required
* in order for there to be a successful connection
* to the MySQL database. Make sure the information is
* correct.
*/
define("DB_SERVER", "localhost");
define("DB_USER", "root");
define("DB_PASS", "my password");
define("DB_NAME", "jukebox");
/**
* Database Table Constants - these constants
* hold the names of all the database tables used
* in the script.
*/
define("TBL_USERS", "jb_users");
define("TBL_ACTIVE_USERS", "jb_active_users");
define("TBL_ACTIVE_GUESTS", "jb_active_guests");
define("TBL_BANNED_USERS", "jb_banned_users");
/**
* Special Names and Level Constants - the admin
* page will only be accessible to the user with
* the admin name and also to those users at the
* admin user level. Feel free to change the names
* and level constants as you see fit, you may
* also add additional level specifications.
* Levels must be digits between 0-9.
*/
define("ADMIN_NAME", "Admin");
define("GUEST_NAME", "Guest");
define("ADMIN_LEVEL", 9);
define("UPLOAD_LEVEL", 5);
define("USER_LEVEL", 1);
define("GUEST_LEVEL", 0);
/**
* This boolean constant controls whether or
* not the script keeps track of active users
* and active guests who are visiting the site.
*/
define("TRACK_VISITORS", true);
/**
* Timeout Constants - these constants refer to
* the maximum amount of time (in minutes) after
* their last page fresh that a user and guest
* are still considered active visitors.
*/
define("USER_TIMEOUT", 10);
define("GUEST_TIMEOUT", 5);
/**
* Cookie Constants - these are the parameters
* to the setcookie function call, change them
* if necessary to fit your website. If you need
* help, visit www.php.net for more info.
* <http://www.php.net/manual/en/function.setcookie.php>
*/
define("COOKIE_EXPIRE", 60*60*24*100); //100 days by default
define("COOKIE_PATH", "/"); //Avaible in whole domain
/**
* Email Constants - these specify what goes in
* the from field in the emails that the script
* sends to users, and whether to send a
* welcome email to newly registered users.
*/
define("EMAIL_FROM_NAME", "KenkaDensetsu");
define("EMAIL_FROM_ADDR", "[email protected]");
define("EMAIL_WELCOME", false);
/**
* This constant forces all users to have
* lowercase usernames, capital letters are
* converted automatically.
*/
define("ALL_LOWERCASE", false);
?>
|
-errors_log-
Quote:
L 02/17/2010 - 02:47:28: SourceMod error session started
L 02/17/2010 - 02:47:28: Info (map "c1m2_streets") (file "errors_20100217.log")
L 02/17/2010 - 02:47:28: [SM] Plugin encountered error 14: Divide by zero
L 02/17/2010 - 02:47:28: [SM] Displaying call stack trace for plugin "l4d2_commonautodif.smx":
L 02/17/2010 - 02:47:28: [SM] [0] Line 230, /home/groups/alliedmodders/forums/files/6/8/7/3/2/58628.attach::czautodif()
L 02/17/2010 - 02:47:28: [SM] [1] Line 143, /home/groups/alliedmodders/forums/files/6/8/7/3/2/58628.attach::czbotcount_EnableDisable()
L 02/17/2010 - 02:48:45: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
L 02/17/2010 - 02:48:45: [SM] Displaying call stack trace for plugin "jukebox.smx":
L 02/17/2010 - 02:48:45: [SM] [0] Line 1888, W:\server script\sourcemod123\scripting\jukebox.sp::Que ry_MainMenu2()
L 02/17/2010 - 02:526: Error log file session closed.
-server shutdown and reconnect-
L 02/17/2010 - 03:09:03: SourceMod error session started
L 02/17/2010 - 03:09:03: Info (map "c1m2_streets") (file "errors_20100217.log")
L 02/17/2010 - 03:09:03: [SM] Plugin encountered error 14: Divide by zero
L 02/17/2010 - 03:09:03: [SM] Displaying call stack trace for plugin "l4d2_commonautodif.smx":
L 02/17/2010 - 03:09:03: [SM] [0] Line 230, /home/groups/alliedmodders/forums/files/6/8/7/3/2/58628.attach::czautodif()
L 02/17/2010 - 03:09:03: [SM] [1] Line 143, /home/groups/alliedmodders/forums/files/6/8/7/3/2/58628.attach::czbotcount_EnableDisable()
L 02/17/2010 - 03:10:56: Error log file session closed.
|
This is not an error message every time out.
Is shown to me sometimes.
Last edited by kenkadensetsu; 02-16-2010 at 23:05.
|
|