[FUN] SoundCenter - Music, Sounds and Voice Chat for your Server! [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by WegFetZ, Mar 18, 2011.

  1. Offline

    WegFetZ

    SoundCenter - Music, Sounds and Voice Chat for your Server!

    Version: v0.1

    CustomMusic is back! Now as SoundCenter!

    SoundCenter (formerly CustomMusic) allows you to set music boxes or regions that stream your own music, sound effects or webradio to all players in realtime.
    It also implements a simple voice chat for Minecraft.
    In the future SoundCenter will add a lot of cool audio features to minecraft, such as sound effects on events.


    To give you a very little idea of what it does (video is not up-to-date):



    More info on:

    or on BukkitDev



    Features:
    • You can set imaginary jukeboxes, cuboid areas or worlds and biomes as music stations
    • Stations can either play your own music or sound effects, or webradio streams
    • You can also play music globally on the whole server
    • You can upload your own music files easily via the SoundCenter client
    • Supported audio formats: mp3, midi, ogg (for webradio only)
    • Everything is easily and intuitively managable with the clients user interface
    • Every feature is configurable and you can limit access with permissions
    Extra Features:
    • Voice chat
      • SoundCenter adds a simple voice chat to your Bukkit server
      • You can speak locally (only players that are not far from you can hear you. Volume depends on their distance)
      • But you can also speak globally (The whole server can hear you)
      • You can disable voice chat on your server if you don't like this feature
    • many more to come
    How does it work?

    Okay so I have SoundCenter installed on my server, what to do now?
    It's easy: Login to your server. If you are not running the client yet, you will see a message with a link to www.sound-center.com. If you follow this link, the SoundCenter client will load and automatically fill in the required information to connect to your server.
    Press connect - now you can add and upload your songs in the "Music" tab, or add biomes or worlds to your stations. If you want to set boxes and areas, you can do this ingame via /sc set <area|box>. That's easier, because the box will be created at your coordinates.
    You can edit all properties of your stations by pressing the "Edit Station" button in the "Stations" tab.

    For detailed instructions on how to install or use the commands visit the HOW TO USE section on BukkitDev.


    Before you post any Issues/ Bugs:
     
    Goblom, Maxster99, gnftoxic and 10 others like this.
  2. That's pretty cool dude !
    But seems that it's not really flexible...
    I'll try it soon.
     
  3. Offline

    Direct1221

    Few questions..

    Will this be ignored by other users clients? The ones that DO NOT have this installed?

    Second, Any possibility of this having permissions? so that I can block specific users from being able to upload songs.
     
  4. Offline

    WegFetZ

    @YpSeN
    I'm glad you like the idea. This was never meant for big servers, so yes, it is indeed not very flexible.

    @Direct1221
    Players without the AudioClient will get a message on login which says that they are not connected to the AC. They will be ignored until they start the client.

    About Permission support: I will think about adding GroupManager or Permissions but it will take some time, since i'm quite busy the next few days.
     
  5. Offline

    Direct1221

    Ok to verify, they will still be able to login and play? I just want to make sure as I know not many of my users will wanna have the client side.

    No worries about the permissions. I will just find a way to "Disable" commands myself.
     
  6. Offline

    WegFetZ

    Yes they will still be able to play.
     
  7. Offline

    Waffletastic

    Anyone have a youtube video of this or something?
     
  8. Offline

    QQCucumber

    Oh wow! This looks cool! Two things: Can you include midi support? They're really small and don't use much server bandwith.

    Also, and this would probably be long term, I would love to use something like this to give music to certain areas. Like, when you enter a certain region, that region's music plays, just like an MMO.
     
  9. Offline

    Direct1221

    It does this... Kinda... The music only plays in a certain radius, and it fades away as you walk farther away from it.

    But.. I honestly am in love with this plugin. Can I marry it? :D
     
  10. Offline

    The PC Tech Guy

    I'm getting outofmemory errors, and I've tried different memory settings.
    I'm using CB 556 and have encountered the same errors when removing all other plugins.
    Code:
    [SEVERE] Requested array size exceeds VM limit loading CustomMusic v0.2c (Is it up to date?)
    java.lang.OutOfMemoryError: Requested array size exceeds VM limit
        at java.lang.reflect.Array.newArray(Native Method)
        at java.lang.reflect.Array.newInstance(Unknown Source)
        at WegFetZ.CustomMusic.GlobalData.resizeArray(GlobalData.java:22)
        at WegFetZ.CustomMusic.GlobalData.setArraySize(GlobalData.java:12)
        at WegFetZ.CustomMusic.CustomMusic.onEnable(CustomMusic.java:38)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    And, if I do get this to work eventually, maybe an option to disable user uploads? (Unless it is in the config, I do not see it, of course, because the plugin breaks for me... :()
     
  11. Offline

    Juze

    MidiBanks, MusicCraft... those two make this simplier.
     
  12. Offline

    niccholaspage

    I'll make a youtube video of this, it's pretty interesting!
     
  13. Offline

    WegFetZ

    I think there are other plugins which can play midi but i will think about this.

    what is the number of maximum players in your server.properties?
    About the uploads: i am planning to add groupmanager or permissions support, but i won't be able to work on this plugin until wednesday.

    I would really appreciate this and would like to put it into my first post if i am allowed to :D
     
  14. Offline

    AgentKid

    Wow, this is a pretty cool plugin :D One thing that you should mention in the instructions, though, is that you'll have to port forward 4224-4227 if you have a router that doesn't forward all ports (took me ~15 minutes to figure that out). Also, it'd be AMAZING if you could incorporate it directly into a client modification, thatway you just have to run a modded .jar rather than start another separate process clientside.
     
  15. Offline

    QQCucumber

    They play midi over noteblocks. Big difference. Note blocks have severe syncing issues in SMP.

    And there's of course the extremely limited choice of instruments for said note blocks.

    As it stands I'd love to use your plugin, it looks fantastic, but mp3s are large and it's just too bandwith intensive.

    Edit: Also, have you ever been to vgmusic.com? Nothing but midis. Ginormous selection, I'd be able to spread them around and it'd be just fantastic.
     
  16. Offline

    AgentKid

    O.O Uhhh, tiny bug: Reloading the server doesn't seem to make the plugin release control of those ports, so then when it tries to enable the plugin again, it can't bind to them and completely crashes java. (Just lost 3 minutes of work on my tower :( )

    EDIT: Actually, it might not be that. Last few lines on console read:

    Code:
    14:42:32 [INFO] Lockette version 1.3 is being enabled!  Yay!
    14:42:32 [INFO] Lockette: Detected craftbukkit build [556] ok.
    14:42:32 [INFO] Lockette: Linked to Nijikokun's Permissions plugin version 2.0
    14:42:32 [INFO] Lockette: Ready to protect your containers.
    14:42:32 [INFO] Minecart Mania Core version 1.03 is enabled!
    14:42:32 [INFO] [MidiBanks] Enabled! Version is 1.2
    14:42:32 [INFO] [MidiBanks] Auto-starting A banks in currently loaded chunks...
    14:42:32 [INFO] [MidiBanks] Done; found 0 A banks.
    14:42:32 [INFO] Minecart Mania Sign Commands version 1.03b is enabled!
    14:42:32 [INFO] [AutoSave] Version 1.1.4 is enabled!
    14:42:32 [INFO] [AutoSave] Loading config file
    14:42:32 [INFO] [AutoSave] AutoSaveThread Started: Interval is 300 seconds
    14:42:32 [INFO] WorldEdit 4.2 enabled.
    14:42:32 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    14:42:32 [INFO] HelpPages: GroupManager found.
    14:42:32 [INFO] HelpPages: Version 1.2 is enabled!
    14:42:32 [INFO] [MultiVerse] Permissions Found
    14:42:32 [INFO] [MultiVerse] - Version 1.5 (Permissions 2.1+) Enabled
    14:42:32 [INFO] [MultiVerse] Found iConomy, enabling payments.
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'FortZero' - NORMAL
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'Wilds' - NORMAL
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'nether' - NETHER
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'Airfield' - NORMAL
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'Build' - NORMAL
    14:42:32 [INFO] [MultiVerse] Loading World & Settings - 'Airport' - NORMAL
    14:42:32 [INFO] [MultiVerse] 6 - World(s) loaded.
    14:42:32 [INFO] [MultiVerse] Loading Portals
    14:42:32 [INFO] [MultiVerse] 11 - Portal(s) loaded.
    14:42:32 [INFO] [MusicCraft] Enabling! Version: 1.3.4 by bekvon
    14:42:32 [INFO] [MusicCraft] Found Permissions Plugin!
    14:42:32 [INFO] [iChat] Using Permissions 2.0 (2.0) for permissions
    14:42:32 [INFO] iChat (v2.11) enabled
    14:42:32 [INFO] Take yourself wonder by wonder, using /magiccarpet or /mc. MagicCarpet version 1.4.5 is enabled!
    14:42:32 [INFO] Lampstone version 0.3 is enabled.
    14:42:33 [INFO] [iConomy] Logging is currently disabled.
    14:42:34 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    14:42:34 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    14:42:34 [INFO] [MultiVerse] Found iConomy, enabling payments.
    14:42:34 [INFO] [iConomy] hooked into Permissions.
    14:42:34 [INFO] 0 Jukeboxes loaded
    14:42:34 [SEVERE] Could not listen on port: 4224
    14:42:34 [INFO] [CustomMusic] Servers started on port 4224-4227.
    14:42:34 [SEVERE] Could not listen on port: 42241
    14:42:34 [INFO] CustomMusic version 0.2c is enabled!
    14:42:34 [SEVERE] Could not listen on port: 42243
    14:42:34 [INFO] Spyer version 0.203 is enabled!
    14:42:34 [INFO] FalseBook Extra 0.71alpha by GeMo enabled
    agentkid@Server3:~/Server6$
    
     
  17. Offline

    The PC Tech Guy

    I use a server wrapper (SimpleServer) and it puts the maximum number of players in server.properties as 2147483647. I cannot change this, as SimpleServer overwrites that number. (And all users connect through the wrapper, so that's what manages who gets on or not. Why does this plugin rely on this number?)

    Anyways, I tried it with 16, and it loaded fine (without the wrapper). However, I got the same error message (I didn't report) that I tried before finding out that I was getting the plugin error message. It said something about a bad packet, id 48. Why is it working for everyone else? :mad:
     
  18. Offline

    WegFetZ

    I added the port forwarding to the instructions, thanks for the advice.
    About client mod: i don't know how to do this, because this is my first java project and i never did anything like this before. Maybe i will try to do this but for now this has low priority for me.
    Also thanks for reporting the reload bug; i think i fixed this.

    Take a look at the new version. I'm not sure but it could be fixed now.
     
  19. Offline

    The PC Tech Guy

    Looks good now! As for the id error, that was during my diagnosis to find out which port it is to use (4224 or 25565). It didn't work either way at first, because of the error. Appears to work now! Now attempting to test it out...

    Hopefully you can add an option to allow users to upload music or not... unless the maximum MP3 setting is what I should use? I guess I'll play around with it.

    Update: looks like I can upload my music (with the option mp3-per-player=n), then I can disable it with n=0. I guess I can also limit it with the craftplayer folders.
     
  20. Offline

    AgentKid

    Yep, works great now :D One request, though, is a way to pick which song to play while in game, something like /cm play <FileName w/o .mp3>
     
  21. Offline

    thers_none

    i like the fact that i can have my own music in mine craft really cool but can you make so oter people dont have to have audio client?
     
  22. Offline

    The PC Tech Guy

    It's impossible at the moment, due to Minecraft's client/server limitations.
     
  23. Offline

    FrozenPenguin84

    IT WORKS! =D

    Would it perhaps be possible to set which song each box plays? I'd like to have different songs in various locations
     
  24. Offline

    Tottely

  25. Offline

    petteyg359

    Any reason you're using MP3 instead of Ogg? Could save some bandwidth that way.
     
  26. Offline

    WegFetZ

    Added to To do list.

    Thank you! I'll put it into my first post.
    Didn't know that music is still playing after deleting the box - I'll try to fix this.

    The reason I use MP3 is that all my music are MP3 files.
    But i added Ogg support to my to do list; thanks for the suggestion :D
     
  27. Offline

    AgentKid

    Awesome! :D Another request when you're done with that one xD :
    The ability to set a music box to play only a certain song in a loop, possibly with an adjustable pause time. Reason I want this is to have custom dungeons which, well, play dungeon-y music :p
     
  28. Offline

    alkahest

    I would like to have a possibility to choose songs only played on certain jukebox (explanation-> when i'm near ship i would like to listen to Pirates of the Caribbean music and Indiana Jones theme near my Aztec temple etc... )
    I would be grateful if you could make it possible.
    Apart from that great plugin.
     
  29. Offline

    bigbass1997

    when i start up audio client and then log into the server it doesnt do anything and in MC it says, "Initialization failed! Make sure you started the AudioClient!"
    what did i do wrong?
     
  30. Offline

    AgentKid

    Make sure that before starting the .bat file, you open it and change YourPlayerName to.....well....Your player's name..... If that's not working, open command prompt and try this:
    Code:
    cd <Path to the folder that MC_AudioClient is in>
    java -jar MC_AudioClient <Your name>
     

Share This Page