• WolfDJ 4.0 - In-Game MP3 Streaming
    436 replies, posted
  • Avatar of mr.wolf
  • [release] [h2]WolfDJ 4.0[/h2] [b]Features[/b] * Players can choose from a list of songs to stream while playing on the server. * Administrators can stream a song to all players * Players may choose to ignore server-wide songs * Volume control for songs playing * Server-side song queue is preserved through map changes * Nomination system to allow non-admins to vote on songs to stream to all players. (optional) * Easy to use web interface allows server owners to add and delete songs. Changes take effect immediately. * Installs in just a few minutes * Password protected web-interface * Players playing songs locally can enable Radio Mode to play a new song after the current song finishes * Quicksearch allows players to easily find a song they want to play * Easy to customize options including keybinds, sources, nomination limits, and more [b]Changes From 3.0[/b] * Easier to set up, easier to use web code * Local song queue for players * Enhanced client-side radio mode * Fully functional server-side radio mode * Genre support * Full SQLite and MySQL support * JWPlayer to allow for some extra features. [b]SVN Download[/b] [url]http://release.wolfcode.net/wolfdj4[/url] [b]Special Thanks[/b] Props to Skapocalypse for his original gStream which both inspired me to get this started, and served as the basis for version 1. JumpLoader is used for the file uploads. [url]http://jumploader.com/[/url] [b]Importing from previous versions[/b] Open the import.php file in your browser (there is no link, manually type it in). The instructions should be pretty straightforward. [b]Screenshots[/b] [img_thumb]http://cloud.steampowered.com/ugc/559792646358670490/5BAED503A430190E5BF9A0A35FD4729E3F722B37/[/img_thumb] [img_thumb]http://cloud.steampowered.com/ugc/559792646358667775/239EF7D1E1CC93252FAEA9881C5C5EC7382C0769/[/img_thumb] [b]Installation Guide and Demo[/b] [i]You also need to chmod 755 or higher on the following directories: /tmp, /media/music, /css/compressed, /js/compressed[/i] [media]http://www.youtube.com/watch?v=7Jr_GhEnQwA[/media] Pardon the quality, youtube raped the video =/ [/release]
  • Nice! Not sure if you covered it in the video yet, still watching, but is there an easy way to transfer data from the previous sqlite db, to a new mysql db?
  • Avatar of mr.wolf
  • Good point, I kinda forgot about that. I will make an import script tomorrow.
  • [ Umm?? Why my browser doesn't show anything? ] Forgive me . I didn't watched the video.
  • Avatar of Gfoose
  • I'm disappointed that you're using the same website style as luabazar, now its not unique anymore :(
  • It shows me some errors with PHP syntax... maybe [ PHP Notice in C:\Server\AIO\htdocs\wolfdj\verification.php on line 60: Undefined index: playtime_string ] How can I do with it ?
  • Avatar of mr.wolf
  • [QUOTE=jungin500;32056659]It shows me some errors with PHP syntax... maybe [ PHP Notice in C:\Server\AIO\htdocs\wolfdj\verification.php on line 60: Undefined index: playtime_string ] How can I do with it ?[/QUOTE] It's not a valid mp3, so the getid3 library can't get the length of the song. You can just ignore it, but usually if the getid3 lib can't parse it, then the flash player can't play it. [editline]1st September 2011[/editline] [QUOTE=Gfoose;32055712]I'm disappointed that you're using the same website style as luabazar, now its not unique anymore :([/QUOTE] Eh, I already had the theme and it looks decent, so I kept it.
  • Don't know if its just me, but I copied all the contents from the web_code folder into a folder called wolfdj on my web server and when I went to the web address where its installed ([url]http://mysite.com/wolfdj[/url]) I never got the page saying "Installation Complete" it just directed me straight to [url]http://mysite.com/wolfdj/login.php[/url] and did not provide me with a username and password. I tried logging in with admin / wolfdj but that did not work, did I do something wrong?
  • Avatar of mr.wolf
  • It only shows the login information the very first time you open it. It should show you the login page with the login information at the top. If you're using SQLite, delete the wolfdj.db file in the db directory and refresh the page. If you're using MySQL, delete the tables and refresh the page.
  • Avatar of mr.wolf
  • [QUOTE=Banana Lord.;32063337]Does it still depend on Apache functions?[/QUOTE] "Apache Functions" being...? If you mean does it use htaccess for authentication, then no.
  • Avatar of lorde banana
  • [QUOTE=mr.wolf;32063969]If you mean does it use htaccess for authentication, then no.[/QUOTE] [b]i love you[/b]
  • Avatar of mr.wolf
  • I added the file import script. Open import.php ( no link, manually type it in ), and it should guide you through the import. I also changed up the file listing to allow people who own a song to edit it.
  • i am getting the [QUOTE]Fatal Error: Class 'DBCException' not found in /home/coloredm/public_html/gmodmusic/lib/modules/dbc_engines/mysql.php on line 44[/QUOTE] error
  • Avatar of mr.wolf
  • well, that's bad on two levels. I forgot to take out the references to custom exceptions, and you're getting an exception =P I took them out now, so update and try again.
  • May i ask how to update, just redownload or is there a special way with svn that can update? btw i am running on a mac and ftp. soo.... no exe
  • Avatar of mr.wolf
  • No idea. I use tortoisesvn for windows and command line for linux, so I just use the update command. You can just download the files from the link and replace them though.
  • When trying to access the web interface with mysql selected in the config file, I get: Fatal Error: Class 'DBCException' not found in C:\Inetpub\wwwroot\wolfdj4\lib\modules\dbc_engines\mysql.php on line 44 No tables seem to be created in my db, either. EDIT: I should really refresh the page before posting.
  • [QUOTE=jimbodude;32065941]When trying to access the web interface with mysql selected in the config file, I get: Fatal Error: Class 'DBCException' not found in C:\Inetpub\wwwroot\wolfdj4\lib\modules\dbc_engines\mysql.php on line 44 No tables seem to be created in my db, either. EDIT: I should really refresh the page before posting.[/QUOTE] LOL
  • Avatar of mr.wolf
  • Disclaimer: I haven't tested the MySQL connection, so it's possible something broke in the abstraction. Let me know and I'll fix it.
  • Avatar of erie1555
  • Getting this error, messed something up so I re-installed and this happened. Uncaught Exception in /home/ig/public_html/music2/lib/modules/dbc_engines/sqlite.php:44 no such table: wolfdj_users Stack trace: #0 /home/ig/public_html/music2/lib/classes/dbc.php(51): kernel_dbc_sqlite->query(string, string) #1 /home/ig/public_html/music2/lib/classes/user.php(29): kernel_dbc->__call(array, array) #2 /home/ig/public_html/music2/lib/classes/user.php(29): kernel_dbc->query(string, array) #3 /home/ig/public_html/music2/lib/classes/kernel.php(48): kernel_user->__construct(string, string) #4 /home/ig/public_html/music2/lib/init.php(58): kernel->load_classes() #5 /home/ig/public_html/music2/index.php(20): require_once(string) #6 {main}
  • Avatar of mr.wolf
  • It's trying to verify you as logged in when you deleted the database. Log out and it will go away. Protip: Log out before you delete the database.
  • Can you make a changelog? Or at least .x [editline]1st September 2011[/editline] i am getting the same error as erie. i never logged in. i just updated like you said after the other error. I will try a new database [editline]1st September 2011[/editline] actually, you never gave us any tables to import. so it cannot read them because they have not been made.
  • I couldn't get MySQL to work to be honest. I even manually created the tables, and got the same error: Uncaught Exception in C:\Inetpub\wwwroot\wolfdj4\lib\modules\dbc_engines\mysql.php:44 Table 'web.information_schema.tables' doesn't exist Stack trace: #0 C:\Inetpub\wwwroot\wolfdj4\lib\modules\dbc_engines\mysql.php(117): kernel_dbc_mysql->query(array) #1 C:\Inetpub\wwwroot\wolfdj4\lib\modules\dbc_engines\mysql.php(191): kernel_dbc_mysql->num_rows(string, string) #2 (): kernel_dbc_mysql->table_exists(string) #3 C:\Inetpub\wwwroot\wolfdj4\lib\classes\dbc.php(51): call_user_func_array(array, array) #4 (): kernel_dbc->__call(string, array) #5 C:\Inetpub\wwwroot\wolfdj4\lib\init.php(65): kernel_dbc->table_exists(string) #6 C:\Inetpub\wwwroot\wolfdj4\index.php(20): require_once(string) #7 {main}
  • wait.... why am i trying to use mysql. is it better or somthing? [editline]1st September 2011[/editline] i wonder if you are refreshing to see if someone said something
  • Avatar of mr.wolf
  • [QUOTE=camcole1;32066244]Can you make a changelog? Or at least .x [editline]1st September 2011[/editline] i am getting the same error as erie. i never logged in. i just updated like you said after the other error. I will try a new database [editline]1st September 2011[/editline] actually, you never gave us any tables to import. so it cannot read them because they have not been made.[/QUOTE] It's an SVN... The changes are in the SVN log. The tables are made when it detects that the tables don't exist. [editline]1st September 2011[/editline] [QUOTE=jimbodude;32066355]I couldn't get MySQL to work to be honest. I even manually created the tables, and got the same error: -Stack Trace-[/QUOTE] Updated the table_exists method for mysql, it should work now. [editline]1st September 2011[/editline] [QUOTE=camcole1;32066391]wait.... why am i trying to use mysql. is it better or somthing? [editline]1st September 2011[/editline] i wonder if you are refreshing to see if someone said something[/QUOTE] I don't know, why are you? Some people prefer it, so I added native support. I was, and then I went to get dinner.