Inactive [MECH/FUN/WEB] MusicService - Internet music on your land! [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by palisade, Mar 21, 2012.

  1. Offline

    Speedyboy235

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Anyone got a server working with this? If so, may I have the IP? I'd love to try it out.
    Thanks!
  2. Offline

    Foerster44

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I would like a version of this plugin which takes sound files from a specified directory and plays them (maybe in random order) sporadically or in a loop in an area. This might require spout, but I'd be fine with that.
  3. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This plugin can do that actually. You just need to get the station streaming software DNAS (or SAM) on shoutcast.com. This will let you stream your own music and even your microphone so you can DJ.

    Also, once I fix the icecast.org support (in our next plugin release), you'll be able to use their software as well for that.

    UPDATE: Speaking of which 1.4.8 is out now, shoutcast and icecast should work normally now. Now you can use the free software from icecast.org to host your own icecast streams if you want.

    This post has been edited 1 time. It was last edited by palisade May 7, 2012.
  4. Offline

    Foerster44

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I see, I did not express my intentions clearly, sorry^^

    I was actually referring to a version of the plugin which doesn't require any complexe additional software (except spout, if defined as such), because it's a real struggle to set another additional server up and have every player to be logged in there additionally to being on the server. Imo having music playing on my lands is, unfortunately, not worth the effort.
  5. Offline

    *Death_Angel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get
    07.05 20:13:50 [Server] INFO ... 14 more
    07.05 20:13:50 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    07.05 20:13:50 [Server] INFO at blakesteel.MusicService.MusicService.onCommand(MusicService.java:217)
    07.05 20:13:50 [Server] INFO at blakesteel.MusicService.MusicService.commandSetShout(MusicService.java:368)
    07.05 20:13:50 [Server] INFO at blakesteel.MusicService.MusicService.setStation(MusicService.java:646)
    07.05 20:13:50 [Server] INFO at blakesteel.MusicService.MusicService.setMusicOnFactionLand(MusicService.java:531)
    07.05 20:13:50 [Server] INFO at blakesteel.MusicService.SupportFactions.isPlayerFactionAdmin(SupportFactions.java:61)
    07.05 20:13:50 [Server] INFO Caused by: java.lang.NullPointerException
    07.05 20:13:50 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    07.05 20:13:50 [Server] INFO at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    07.05 20:13:50 [Server] INFO at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:141)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    07.05 20:13:50 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    07.05 20:13:50 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    07.05 20:13:50 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    07.05 20:13:50 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    07.05 20:13:50 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'music' in plugin MusicService v1.4.9
    07.05 20:13:50 [Server] SEVERE null
    When trying to type /music setshout <URL i put in> i also tried an ip
  6. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay, I think I may have fixed that exception you got.

    Also, I believe it was caused because you aren't an admin of a faction. You have to create a faction first and claim some land and then you can use the setshout command while standing in your land.

    I'll release a new 1.5.1 version of the plugin with this fix in it.

    This post has been edited 1 time. It was last edited by palisade May 8, 2012.
  7. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]

    i've verified that i don't get the exception now on my side, also that stream i use in the screenshot works try that command:

    /ms setshout http://146.255.34.83:8000/stream1.mp3

    It's a shoutcast stream that has parodies of minecraft.

    This post has been edited 1 time. It was last edited by palisade May 8, 2012.
    *Death_Angel likes this.
  8. Offline

    Zbuckettt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does it matter if i use hamachi? And didnt port forward

    This post has been edited 1 time. It was last edited by Zbuckettt May 8, 2012.
  9. Offline

    *Death_Angel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    k thanks and also this plugin is great including the part that you don't need spout. Bump
  10. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've never used hamachi, so I'm not certain. If you find out, let me know.

    I'm guessing that means it worked for you. Thanks btw. :)
  11. Offline

    Zbuckettt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does this work with spout? if so how?
  12. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It does not currently use or require spout.
  13. Offline

    Rawr_Dry

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is it possible to have a world wide radio enabled? I would like for everyone on my server to listen to my radio station, without having to be inside any region (of course I could try to region my entire world, but that would be a stress test for the server itself ...)

    Or in case I have not followed the features completely, just confirm or not, if I can do what I asked for :)

    edit okay. figured it out, can play certain music for wilderness, right.

    Well I have another question for you. I looked through the source code (sizeable plugin, I gotta say,) but how did you actually manage the streaming part?

    This post has been edited 1 time. It was last edited by Rawr_Dry May 17, 2012.
  14. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I host an html page and swf Adobe Flash component, both stored inside the jar file, in memory and then I establish a fake webserver on the port provided by the admin in the config.yml file. Then, when a user connects to the "webserver" on that port I provide a html page (in memory) to the user that connects, that allows them to pick their minecraft id. Once they've done that, I redirect them to a html page, in memory, that is automatically generated to point the swf component to the music stream at the player's location (if any), that is stored in the yml files. The flash component then starts playing that stream. I used ffmp3 for the streaming, it can play both icecast and shoutcast and it is open source.

    Don't use the wilderness stations, they're broken and daredevilk said he wants to cut his teeth on plugin development by fixing that feature.

    As for having a global music station, I'll look into that. It is worth noting, though, that some stations have a physical limit to the number of listeners they can handle. This means that if I did provide a way for you to set a global station, you might want to be careful and only choose streams that have a large capacity.
  15. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Note: I'm close to having support for OPTIONALLY streaming oggs via Spout. It won't be a requirement to have the Spout plugin. However, if you want to stream ogg music files directly from your hard drive without having to find Icecast or Shoutcast stations and/or hosting your own station using their streaming tools, then this will be an alternative. Please note that Spout does not support mp3, and there is nothing I can do about that. This would only be for ogg files, you can however convert many different music formats, including mp3, to the ogg format. Also, be aware that spout transmits the entire file, it does not stream tiny bits at a time. This means that for users with slow connections it will take a really long time to hear the music start.

    Even though I do have this working at the moment, I'm not yet ready to release this new plugin. It needs more testing. I just wanted to let those who keep asking for either a) Spout support, or b) the ability to stream your own music without having to use Icecast/Shoutcast, that this support is on its way.

    Also, worth noting that I will support the ability to queue up a play list of these ogg files on a region / faction. So, you could have a different playlist of songs on each land.

    It turns out to implement this I had to jot up some raw ogg vorbis reading code to determine the duration of the song, so I know when the song ends so I can begin playing the next song in the playlist. This is why it took longer to put out a release this time than normal. Also, Diablo 3.

    This post has been edited 1 time. It was last edited by palisade May 20, 2012.
  16. Offline

    TemplarVX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay so I read this part

    1. When you run the server for the first time with the plugin installed it will create a default config.yml that looks like:
      wwwPort: 8888
      refreshUrl: http://localhost:8888/
      ...You can edit this to point localhost at your domain or you can put your ip address instead if you don't have a domain:
      wwwPort: 8888
      refreshUrl: http://0.0.0.0:8888/
    2. Start your server and login with the Minecraft game client.
    3. Set up a Factions faction, Towny town, WorldGuard region, Regios region, or iZone zone.
    4. If you want icecast, use findice, but if you want shoutcast you just type (NOTE: /ms can be used instead of /music):
      /music findshout grunge
      You can also type your own search sentence there to find your own style of music.
    5. You should now see a list of ShoutCast stations (taken from Shoutcast.com), so now type:
      /music pick #
      Where # is the number of the station from the list that you want to play.
    6. Open your favorite web browser (Firefox has been reported to be having some trouble lately by some users). Requires Adobe Flash 9 or better.
    7. In your browser type: http://yourdomain.com:8888/
      You will be presented with a page that lets you type your name in, and then click the button to visit your music player page. Or, you can visit:
      http://yourdomain.com:8888/yourMinecraftId.html
    and something is going wrong for me, I am hosting this of a dedicated server
    which IP do I put in there can you create an alternative list of instructions for someone who is hosting it from a server where it has a different IP and such.
  17. Offline

    Corindian

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi, I'm new to Minecraft servers so I was wondering if this worked standalone? I don't have any regios/WorldGuard/Factions or anything but just wanted a radio to play on my server with my friends.
    Any advice? Thanks :)
  18. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A few versions ago we had support for building an antenna in the wilderness. daredevilk says he's working on fixing it so that it works again. If you're willing to set up your own webserver you can go back to version 1.2.4 which still had a properly working wilderness station.
  19. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    In the instructions where I mention 0.0.0.0, that's where you want to place the IP address, which is where your minecraft server is currently hosted. The port would be something like :8888 or whatever you decide you want it to be hosted on.
  20. Offline

    negiman4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I am thoroughly confused... I followed the instructions, i guess i'm just dumb. A tutorial on how to do that kind of setup would be nice, because i don't know any html code. well, i know a little bit. but nothing like this. I'm trying to use icecast but i'm having a tough time figuring out how to configure it, how to import music to it or even getting the plugin to work. I'm lost. Sorry, I am dumb haha. But a thorough explanation about what does what and why it needs to be done would be very much appreciated. This is a plugin i've looked for for so long it's not even funny and I'm dying to try it out. Requesting personal help, please :(
  21. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll add a brand new video tutorial on youtube on how to set it up and use it tonight.

    The video is now available at the top of our forum post and also on our bukkitdev page.

    This post has been edited 1 time. It was last edited by palisade Jun 11, 2012.
  22. Offline

    Foerster44

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great, that's exactly what I'm searching for. Thanks for developing it! :)
  23. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No problem.
  24. Offline

    wrentrillogy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    wtf it says no tower here on my server how do i build the towere and out of what block
  25. Offline

    negiman4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great vid, palisade. Very thorough. However, i have a couple of questions.
    1. Why can't I use my ex-ip for the refresh URL? like 64.89.219.53:8888. could I just do that?
    2. I'm not sure I want to pay for a SHOUTcast service to host music... But icecast is difficult to figure out. If I end up choosing icecast, how do I use it? I've looked everywhere for a tut on how to use it... ._.
    3. I want to host my own music. What do I have to do differently to host my own music via icecast or SHOUTcast? I want to host multiple stations... if that is possible.

    Thanks!
  26. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    1. You can use your external IP for the refreshUrl, e.g.

    wwwPort: 8888
    refreshUrl: http://64.89.219.53:8888

    2. Here's a video on how to configure DNAS support in the Winamp music player:
    http://www.metacafe.com/watch/yt-sKpJ6ebqon8/winamp_shoutcast_tutorial/

    NOTE: You don't have to fill in the aim/icq/irc areas that he fills in. And, also where he places the URL you can just put your IP address if you don't have a domain. Also, as he mentions in the video the bitrate at which you want to encode will need to be limited by your available upload bandwidth, he uses 128kbit as an example but you can raise or lower this to match your actual bandwidth capabilities. At the end of the video he tells you to put it on line input, don't do this unless you're a DJ in real life and have turntables/microphone/etc. You can just leave it on the option to play from the winamp playlist which you should load up with all your favorite music.

    I also found a tutorial for how to set up the commercial program on shoutcast.com called SAM, this is for SAM3 so it is not the latest version but it shows the general idea of how to use that product:
    http://sl.digistream.info/sam-encoder.html

    This guy has a tutorial on icecast:
    http://www.korokithakis.net/tutorials/icecast/

    By the way I found all of these by searching for either "shoutcast tutorial" or "winamp shoutcast tutorial" or "icecast tutorial" and they were the first few results at the top of the search results page.

    3. You can host multiple streams on the same machine, just give each stream a different port number. For example, if you use 8000 for the first stream you can use 8001 for the second, and 8002 for the third, and so on.
  27. Offline

    palisade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The tower code is disabled for now. You need to use towny, factions, regios, worldguard, izone or other supported region plugin so you can cordon off an area for the music to play in. Then while standing in the town or region you've created you can follow the directions in the tutorial I gave on how to use the music commands.

    This post has been edited 1 time. It was last edited by palisade Jun 16, 2012.
  28. Offline

    Emiya Shirou

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does it work with iZone or without any zone plugins? Like you set it for certain area and then it playes.
  29. Offline

    mobstarlife

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  30. Offline

    negiman4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You're my hero, palisade! :)

Share This Page