[ANY] SourceMod DJ (SMDJ)
[ANY] SourceMod DJ Plugin v2.6.1 - Web Interface v2.3.0 Description: Allows users to type !music, !dj, or !jukebox to choose a song from a list of predefined songs in a regular panel menu. When a choice is made, the song's page from the web interface will be loaded in the MOTD browser, without the MOTD window being displayed. Includes a web interface to listen to songs, or a listing of songs available on the Web. The web interface takes no time to set up, and has support for four themes (default, TF2, Counter-Strike, and black) out of the box. Requires MySQL, and uses two tables. Does NOT require the game server to be able to access the database. The web interface is themable! If you know what you're doing, you can create a .css file for a theme, and if it's good enough, I'll include it in the actual release! Important! In order to hear the music in-game, users must have Adobe Flash Player for Other Browsers installed. Updating: When updating SMDJ, you need to update both the Web Interface and the plugin itself, if there is a newer version available for each. Otherwise, only update the component that is out-of-date. To update the plugin, simply drop smdj.smx into your plugins folder. Some updates might add new convars, and if this happens, back up the plugin.smdj.cfg file and delete it, so a new one can be generated. When updating the Web Interface, backup your config.php file, then upload all of the files and folders in the zip to the web server, overwriting all files. Then edit the new config.php and add back in your settings. Commands: sm_music - (!music in chat) pulls up the menu. Can be followed with a song title to directly play a song, case-insensitive (e.g. !music like a boss) sm_dj - (!dj in chat) same as above sm_jukebox - (!jukebox in chat) same as above sm_musicinfo - (!musicinfo in chat) pulls up the MOTD window where you can view the title, pause, adjust volume, etc. sm_randomsong - (!randomsong in chat) plays a random song sm_songlist - (!songlist in chat) sm_musicoff - (!musicoff in chat) turns the music off sm_musichelp - (!musichelp in chat) displays help on installing Adobe Flash Player sm_reloadsongs - reload the song list (by default requires ADMFLAG_RCON) Cvars: smdj_version - plugin version smdj_advert - (default 1) sets whether a user's music choice will be broadcast to the server in chat smdj_join_advert - (default 1) sets whether the user will be informed of the SMDJ commands upon connecting smdj_url - the URL of your SMDJ web installation (i.e. "http://www.thehoodedalliance.com/smdj") smdj_url_port - if your web installation is on a port other than 80, set it here smdj_auth_token - prevents leechers. Get this from the admin panel of your web installation smdj_help_advert - (default 1) sets whether a user is notified to type !musichelp if they can't hear the music smdj_repeat_default - (default 1) sets the state of the repeat feature for new clients smdj_shuffle_default - (default 0) sets the state of the shuffle feature for new clients smdj_volume_default - (default 100) sets the default volume for new clients (10 - 200) smdj_debug - (default 0) toggles debugging Plugin creates and loads /cfg/sourcemod/plugin.smdj.cfg Overrides: SMDJPlayToOthers (default: ADMFLAG_SLAY) controls which admins can play music to others Installation:
Requirements: Requires the Socket extension. Developers: This plugin provides a forward for when users start to listen to music. See the include file for documentation. Demo: You can see a functioning demo of the TF2 theme here: http://www.thehoodedalliance.com/smdj/ Credits: Thanks to:
Planned:
Changelog:
This plugin does not automatically update due to issues that could arise with the plugin being updated but not the web interface. This plugin uses Colors, which is required if you want to compile locally. Download Plugin (smdj.smx) View Source (smdj.sp) Download Include File (smdj.inc) Download Web Interface . |
Re: [ANY] SourceMod DJ (SMDJ)
You could try to do a version script for the site so in the administrator panel, it says update now and it downloads and installs your update. :3
Also, Great Idea, only problem is this. http://forums.alliedmods.net/showthread.php?p=945519 |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
The web interface worked for me last time I used it. Sure, it does have 1 small error with a link but that's easily fixable but other than that, it worked entirely.
|
Re: [ANY] SourceMod DJ (SMDJ)
I didn't like jukebox, half the time when i wanted to delete a song it wouldn't delete. So i had to do it manually and that was a pain since it moved and renamed the original file to somewhere else which involved me downloading and listening each song over and over again.. Ill definitely be giving this one a try.
|
Re: [ANY] SourceMod DJ (SMDJ)
WebServer works fine. But server is crashig on plugin load. All the database info is correct.
Code:
L 11/21/2011 - 09:08:06: [SM] Native "SetFailState" reported: SourceMod DJ couldn't connect to the database: [2003]: Can't connect to MySQL server on 'immersion-networks.com' (10060) |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
Can I see your databases.cfg entry? Don't forget to remove your password. |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
Is remote MySQL allowed on your webserver?
|
Re: [ANY] SourceMod DJ (SMDJ)
Yes. we also use sourcebans & hlstats
edit: we just tried it on a different webserver and getting same error. |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
It crashed the first time. The plugin created the config. We restarted the server a few times. Still getting the same error.
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
CS:S
[SM] Displaying 14 extensions: [01] Automatic Updater (1.4.0): Updates SourceMod gamedata files [02] Webternet (1.4.0): Extension for interacting with URLs [03] Server Secure - Files Only (1.0.0): The finest defence [04] CS:S Tools (1.4.0): CS:S extended functionality [05] BinTools (1.4.0): Low-level C/C++ Calling API [06] SDK Tools (1.4.0): Source SDK Tools [07] Top Menus (1.4.0): Creates sorted nested menus [08] GeoIP (1.4.0): Geographical IP information [09] SDK Hooks (2.1.0): Source SDK Hooks [10] Client Preferences (1.4.0): Saves client preference settings [11] SQLite (1.4.0): SQLite Driver [12] Regex (1.4.0): Provides regex natives for plugins [13] Socket (3.0.1): Socket extension for SourceMod [14] MySQL-DBI (1.4.0): MySQL driver implementation for DBI |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
There shouldn't be any conflict with those extensions. Double- and triple-check your configs. Is anyone successfully running this on CS:S? |
Re: [ANY] SourceMod DJ (SMDJ)
Just ran over the database. tested the database. tried it on two hosts. Using the same database as the web server. And that's working fine. So i don't know what the problem could be.
|
Re: [ANY] SourceMod DJ (SMDJ)
Updated to v1.1.0. Displays an advert when a user picks their first song on how to get Adobe Flash Player for Other Browsers working. This can be disabled with the cvar smdj_help_advert. Please delete your plugin.smdj.cfg so a new one can be generated with the new cvar, or add it in manually.
|
Re: [ANY] SourceMod DJ (SMDJ)
Nice man, I was actually about to make something like this.....lol your version has more features anyways.
|
Re: [ANY] SourceMod DJ (SMDJ)
Can you make it so that an admin can play music to a client. Like the regular hiddenurl command except it will load the mp3 from your site instead of whatever else you would use.
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
This does not work for me while in game. The menu pops up and select a test song that i uploaded through the web ui. I hear no music.
It works through the web ui I see it added to the table in the db I have installed the adobe flash player "smdj" { "driver" "mysql" "host" "xxxxxxxxxxxxx.com" "database" "smdj" "user" "root" "pass" "ls;dkfjalf" "port" "3306" } |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
Can you use !radio on a server that uses the radio plugin? |
Re: [ANY] SourceMod DJ (SMDJ)
I meet all the requirements. But, now that I think of it, it might be a Left 4 Dead issue.
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
All the commands work in game.
|
Re: [ANY] SourceMod DJ (SMDJ)
One glaring problem I see with this is the potential for leeching.
http://dl.doctormckay.com/dl/mp3/on_a_boat.mp3 Jukebox for Source works fine and takes care of the leeching problem as far as I can tell. Any solutions here? |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
I don't care about mine, I don't use that server for anything except running Bitcoin daemon and TF2 fast download/MP3 download. I'm not in much danger of using up all my 1 TB of bandwidth anytime soon. |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
Is there a way i can add songs? cause its a nice list, but i'd like to add some more!
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
I believe flash doesn't work in L4D games. I wonder if the browser has a different method of embedding a music player. Just for fun, I even tried wmp and that didn't work.
|
Re: [ANY] SourceMod DJ (SMDJ)
I have everything working. and the configs set up. But when a player types !music in game and hits the song. it says it's playing but nothing plays.
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
(!musichelp won't be working for a little while today, I'm having trouble with my web server. It'll be back up this afternoon though.) |
Re: [ANY] SourceMod DJ (SMDJ)
Yes, And it works going to the site and playing it form their too.
|
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
EDIT: Fixed. Thanks
|
Re: [ANY] SourceMod DJ (SMDJ)
It works now. I removed the /index.php from the url in the cfg file.
|
Re: [ANY] SourceMod DJ (SMDJ)
You should include some sort of volume controll in the next release. e.g
!volume increase 20% increase 40% decrease 20% decrease 40% |
Re: [ANY] SourceMod DJ (SMDJ)
Quote:
|
Re: [ANY] SourceMod DJ (SMDJ)
I deleted some mp3 url's from the web UI yesterday, but they still appear in the game menu. Restarting the server does not refresh the list.
I checked the MySQL table and it's correct. |
All times are GMT -4. The time now is 02:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.