Inactive [FUN] BCMusic v3.2- Custom Music w/ Spout [1000]

Discussion in 'Inactive/Unsupported Plugins' started by IC3D, Jun 28, 2011.

  1. Offline

    IC3D

    BCMusic: A custom music plugin w/ BukkitContrib Spout
    Version: 3.2
    This is a super simple plugin. It is an easy to configure music plugin that takes advantage of BukkitContrib to play music, either only hearable by the player or globally playing the music. This one is all in the configuration, so click that spoiler down there :)

    Requirements:
    Features:
    • Play custom music!
    • Play custom music through jukeboxes (volume varies by distance just like regular ones)!
    • Permissions support!
    Configuration:
    config (open)

    The default configuration looks like this:
    Code:
    Music:
        tothaface:
            Node: BCM.tothaface
            GlobalNode: BCM.Global.tothaface
            URL: http://url here
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://url here
    
    To add a song, add a name you want (in lowercase) like tothaface. Then add the node, global node, and song url (it must be on the internet, and .ogg, .wav, or .mid). The commands do the rest.

    Commands:
    commands (open)

    There is only one command, but the arguments decide what music to play. The syntax looks like this:
    /bcm <song> <global>
    Replace song with a name of a song that you set in the config, for example, tothaface. You can just type /bcm tothaface to hear the song yourself. Or, if you have the global node, you can type /bcm tothaface global, which will play the song for all players on the server with Spout installed

    JukeBoxes:
    jukeboxes (open)

    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://url here
    After you put an actual music file URL in the config, you can use it like a regular jukebox. Just place a jukebox, and right click it with the item defined in the config (default iron_ingot). The song will play like a regular jukebox song, and volume will vary by distance. When you left click the jukebox your item is returned.

    Downloads:
    The source code is included in the .jar

    Changelog:
    Version 3.2
    • Added /bcm list to show all available songs.
    Version 3.1
    • Changed "You don't have BukkitContrib installed" to Spout. (I forgot)
    Version 3.0
    • Updated to Spout, left the name the same for simplicity's sake
    Version 2.0
    • Added jukeboxes
    Version 1.0
    • Official Release
    Credits:
     
  2. Offline

    graverune

    Does this work with spout?
     
  3. Offline

    David T.

    How are we supposed to find .ogg files on the internet of any song we want? And if I can't find one, is there a way to use a file from my computer by uploading it to the server?
     
  4. Offline

    Koutacles

    @graverune Yes, yes it does.

    @David T. You will need to use an audio convertor (I use dbPoweramp, but it isn't free). Then you will need to upload the files to a host somewhere and link to them.
     
  5. Offline

    Oddstr13

    i use Audacity to convert music http://audacity.sourceforge.net/
    import the mp3, then export as Ogg Vorbis
     
  6. Hi, is there a way to increase the audible range of the juke boxes?
     
  7. Offline

    ryanjjjj

    this would be great but it is not useing spout :(| is there any work around here as bukkitcontrib is outdated, message me back with anything please and thx

    u is used my manners :p
     
  8. Offline

    Koutacles

    The most recent version uses Spout.
     
  9. Offline

    RchGrav

    Hi Guys...

    I wanted to share which tools I am using for converting nearly any format to Ogg Vorbis.. These are Open Source and 100% free to use... and are available on Windows / Mac / Linux, as well as many Unix's and even some more obscure operating systems.

    Using something like VLC Player may not be one of the things we think of when it comes to audio format conversion.. so it may even tend to be overlooked, after all it is called VLC Player, not VLC Converter, right?

    Videolan VLC Player - There is a way to convert audio using VLC, useful for some of the more difficult codecs, or even extracting audio tracks from a video. This process will work with nearly any codec you may encounter, and even RAW multichannel audio extracted from video sources, like DTS, AC3, or AAC...

    Launch VLC Player, select the Media menu then Convert / Save (or CTRL-R), Select the source media, in the lower right hit the "Convert / Save" button, under profile select "Audio - Vorbis", then "Browse" to select your destination folder / file, and then hit "Save"

    Audacity - Works great for MP3's and WAV files -> OGG format audio.. You can clip, fade, edit and export your audio.. Anything you can load here, and playback clearly, should also export to Ogg Vorbis.

    Load Audio, then select "File", "Export", "Save as Type:" select "Ogg Vorbis File", Hit Save.

    If you need to optimize your audio quality, both of these have options to adjust the Sample Rate, Audio Bitrate, or combine Stereo tracks into a single Mono track. You could also do one stage of the conversion with VLC, and the further editing with Audacity.

    Go Forth and Convert Audio!

    Rich
     
  10. Offline

    AcidicTaco

    ok so this plugin is a bit derpy...

    first off, /bcm doesn't work, meaning you can't play music with commands, the downloads will run and complete, but the music won't play, however jukeboxes do work oddly enough

    now for suggestions...
    there NEEDS to be a stop music command and music should stop when you take the item out of a jukebox
    probably would be /bcm stop
    also music is currently able to stack, so what is needed is for a current song to stop when a new song is played

    also instead of just songs it would be nice if we had playlists, so in the config you would have your list of songs as it is now, but then there would be a list of playlists and each playlist would have a list of song names to play

    also a way to give permission to play all music with one node would be nice, but not giving permission to global usage
     
  11. Offline

    Meapa

  12. Offline

    Limstal

    All commands have been working fine for me, and music hasn't been having your 'stacking' problem. I have got around the stop-music function by creating a silent .wav file and hosting it, then adding it to the config named 'stop'. This way '/bcm stop global' halts the current track and plays the inaudible one, effectively stopping everyone's music.


    You'll need a direct link to a .wav, .ogg or other supported file type to get it to work. The link should end in '.wav' etc if you've got a working one, eg.
    http://www.somesite.com/user/public/songname.wav
    I've been using Dropbox to host my songs, it's free to sign up and get 2gb worth of music hosted instantly. Just sign up and install Dropbox, then place the songs in your Dropbox's Public folder, right-click them and click 'Copy public link', then paste that into your config file.
     
  13. Offline

    philraz

    oops

    Code:
    2011-08-12 16:48:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:338)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:727)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:87)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.getspout.spout.sound.SimpleSoundManager.playCustomFile(SimpleSoundManager.java:205)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSoundManager.java:158)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSoundManager.java:153)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSoundManager.java:148)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSoundManager.java:143)
        at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:44)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-08-12 16:49:39 [INFO] Connection reset
    
    Same error from the new version
    it was working fine:'(
     
  14. Offline

    BlaaKeex

  15. Offline

    philraz

  16. Offline

    BlaaKeex

    Tried That, Didnt work look,
    Link: http://dl.dropbox.com/u/37993126/Chris Brown She Ain't You.ogg
    What Is Wrong :{
    Says its playing on first launch but cant hear nothing :L
     
  17. Offline

    fragen

    Is it possible to make the music being triggered when entering a set area, rather than clicking on a jukebox. Just perhaps in the future?

    Thanks
     
  18. Offline

    BioRage

    Is there a way for it to -auto-play- globally?

    As opposed to /bcm <name> <global> ?
     
  19. Offline

    philraz

  20. Offline

    BlaaKeex

    Ok Now Im Pissed,
    It worked From Your Link :{
    ill try putting underscores in the music name n maybe that will fix it :/
     
  21. Offline

    js105287

    Tutorial video please?
     
  22. Offline

    captainawesome7

    It isn't that hard...
     
  23. Offline

    ScorchRaserik

    Just tried this, works like a charm. :thumbsup:

    On the Spout page it says that it's possible to stop music with a fadeout. Will we be seeing this feature anytime soon with this plugin?

    Also, a /bcm list command would be nice so my moderators can see what songs/audio clips they can use.
     
  24. Offline

    captainawesome7

    Alright I can add both of those things in the next version, maybe by Monday (I have alot of things to do :p).
     
    Limstal likes this.
  25. Offline

    Drat333

    If (and I mean IF) mp3 support comes along for spout, would it be possible to have internet radio play into the server? Say, Pandora, or Last.fm?
     
  26. Offline

    captainawesome7

    I don't know about streaming, but if spout gets it working I'll definitely add some options
     
  27. Offline

    rtcabooservb

    =/ Doesn't work for me. :(
     
  28. Offline

    JdRed

    Great plugin!
    Works fine for me as admin, but no sounds playing for my players who cant hear anything, including footsteps as well.
    They can change the music, use jukeboxs etc but no sounds. I hear it all on my pc but when they try using the /bcm command to play tunes, they get an Internal error message on their chat area.

    I am using CB 1000, Spout and Spoutcraft, as are my residents. Any ideas? Have I forgotten any details that you will need?

    edit: The person having the problems is a Mac user, is this a bug with his OS? ie the OGG format not compatible or something?
     
  29. Offline

    disownedpear

    when i try to play a song file, it says " an internal error occered while attempting to perform this command". what should i do?
     
  30. Offline

    captainawesome7

    SpoutCraft sound is broken on the Mac due to SpoutCraft not allocating enough memory when the game launches. Tell him to open terminal and use cd to navigate to the directory containing spoutcraft, then use:
    Code:
    java -Xincgc -Xmx1024M -jar Spoutcraft.jar
    This will make it work fine, also make sure your music volume isn't 0.
     
  31. Offline

    JdRed

    Thanks for taking the time to answer the query!

    He's claiming he's done it but I'll ask him to do it again as everyone else is having fun with this so far.

    JdRed
     

Share This Page