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

    Silvo

    A configurable "hear" range for the jukebox would be appreciated.
     
  3. Offline

    Smidds

    I know some things are unable to be done (having to run side by side with spout development as well and all) but I was just curious... can you make it stop upon punching the item out of the jukebox? And my you also make it possible to loop songs upon a command or another item? Just some ideas [pig]

    ~~Facepalm~~~
    Noticed that all my requests have been said before...
    @IC3D and @captainawesome7 Where are you?! Your plugin followers need yoooou!
    (Ha.. I just wanted to make someone read the posts and get back to us on whats possible and vice-versa)
     
  4. Offline

    captainawesome7

    Sorry about that, I wasn't getting any alerts from this thread (but it is watched...). Anyways:
    1. IDK which converters don't work, but Audacity (available on windows/mac/linux) does the trick for me (along with having a VERY convenient and simple way to edit parts of the song). Just export it as an ogg vorbis and it works.
    2. I'll fix that.
    3. Not me. Ask the SpoutDev people.
    4. No, I can't stop the jukebox music (at least not since the last time I checked the source, which was pretty recently). Unfortunately, because I have no idea when the songs stop, I can't start the next one automatically without a person putting the song lengths in the config (very annoying + inefficient).

    O god I didn't see all those posts 0.o
    Looks like I have some mass replying to do :D

    No, Spout doesn't support MP3.
    Because I'm a lazy sonnovabitch, and I use bPermissions, I'm going to say just use bPermissions (it supports superperms and Permissions 2.7.x/3.x)
    It means that the URL wasn't found. User error.
    I've never used or supported gm and I don't plan on it
    Lolno
    Lolno, I've never used or supported groupmanager and I don't plan on it.
    Nodes are permission nodes. No I'm not making a global "range", the point of global music is the fact that it's global. The sounds are saved in your %AppData%/.spoutcraft/spout/adiocache/BCMusic/. Or if you're a wonderful mac user its ~/Library/Application Support/spoutcraft/spout/adiocache/BCMusic/
    1. I love it too
    2. I can't stop sounds, it's a Spout limitation
    3. Like I said, I can't stop sounds
    4. In spout its uses playCustomGlobalMusic, so the music slider is used.
    5. There is no playCustomMusic that relies on a location, so I had to use playCustomSoundEffect, it works.
    6. Because I can't tell when the songs stop (spout limitation), no I can't add xml/json support. And if I could tell when they stopped, no I'm not adding xml/json support.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    Silvo

    How about an optional line in the config for music length. Only you put a value there, music is loopable. You could do this smart for smaller INIs and add an option to add the value after the defined item for playing.. like:
    stick: 162 #Track lenghth 2:42 ->2x60+42=162
    Node: BCM.bleach
    URL: file://Gordias/MyOgg/Bleach.ogg

    or put the values in minutes in seconds, I guess 1 more variable then.
    stick: 2,42
    Node: BCM.bleach
    URL: file://Gordias/MyOgg/Bleach.ogg

    -------------------------------------------------
    And pleeaase .... configurable range how far we hear the music :D

    ::Bah, I must stop nagging poor developers for plugin fatures and learn to mod myself.
     
  6. Offline

    captainawesome7

    I'm not going to add a playlist until it's possible with spout. And no, I'm not adding a configurable range to global music, use a jukebox.
     
  7. Offline

    Silvo

    1. I said nothing about playlists. I talked about possibilities of how to make music loopable while not adding more lines to the ini.
    2. use a jukebox you say? Well thats the thing I was talking about! A config line for jukeboxes hear range.
     
  8. Offline

    captainawesome7

    INI is a configuration file format, and isn't used interchangably with config.
     
  9. Offline

    Silvo

    Yeah, and the data files folder must use arhiveinvalidation.drc for its multi injection feature. And when you use waad.bash on it clean the records from the last plugin unless you want doubling and potential ctds.
     
  10. Offline

    paully104

    @IC3D whats the status on this plugin with the newest rec build 1185?
     
  11. Offline

    captainawesome7

    It works.
     
  12. Offline

    paully104

    It says i do not have spout installed

    @captainawesome7 is there a way around it saying i do not have SpoutCraft installed, im using the latest dev build and im getting this error for bcmusic and several other plugins.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  13. Offline

    Limstal

    If I had to guess... I would say you could fix it by installing Spoutcraft.
     
  14. Offline

    captainawesome7

    ^ this
     
  15. Offline

    paully104

    Had spoutcraft and spout installed. Resolved by changing the name of spout-dev to spout.
     
  16. Offline

    Limstal

    Oh, you meant latest dev build of Spout. Wasn't clear. Well, glad you sorted out the problem.
     
  17. Offline

    Legomaster

    I have a problem with the jukeboxes. When I take out the iron ingot or whatever I'm using before the song is done the song keeps playing. In fact it will keep playing even when I stop the server. To stop a jukebox song I am forced to restart spoutcraft completely. How do I fix this?
     
  18. Offline

    captainawesome7

    Spout can't stop music.
     
  19. Offline

    Limstal

    Have you considered adding this to the OP? Something in huge bold red text maybe
     
  20. Offline

    d2004

    Im on 1185.
    I start a song then i just say Downloading rick.ogg then nothing happend, any know what i sould do :s
     
  21. Offline

    captainawesome7

    Turn up your music volume?
     
  22. Offline

    d2004

    Dont think it can be that, i have it on max. The other on the server also get Downloading xxx.ogg then nothing happend for them neither. They all have spout client.

    Do you have a link to a song that works for you that i can try ?
     
  23. Offline

    captainawesome7

    No I don't, but you can try using Audacity to convert your .mp3 to .ogg
     
  24. Offline

    Limstal

  25. Offline

    Corruptedjak

    How do I find the .ogg links for songs?
     
  26. Offline

    captainawesome7

    Use Audacity to convert them.
     
  27. Offline

    Corruptedjak

    So how do I get a link for it after I convert it?
     
  28. Offline

    captainawesome7

    put it in dropbox
     
  29. Offline

    Limstal

    Remember to place it in the Public folder also, that lets you right-click it and select Copy Public Link.
     
  30. Offline

    d2004

    This plugin works really great for me now.
    But if the music have to high base it's sound a bit bad, like a old speaker trying to play yeah a song whit ti high base. any one have the same problem ?
     
  31. Offline

    captainawesome7

    Not my problem, ask the Spout people.
     

Share This Page