1. Important information on Next Recommended Build

    Hi Guest,

    We're cleaning up our code to help us better prepare for the release of Minecraft 1.2. As a result, a lot of old, inefficient and buggy code is being removed and plugins will need to be updated.

    Please check your plugins, find out if the plugin developers have been keeping everything up to date and kindly let them know that they need to update their plugins to make sure they will be ready for R5.

[FUN] CustomMusic v0.9 - Webradio, MP3 and more to hear for everybody! [1.0.1-R1]

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

     
  1. Offline

    WegFetZ

    CustomMusic - Your music for Minecraft!

    Version: v0.9

    CustomMusic allows you and your users to set imaginary jukeboxes or cuboid areas which play your own music or even webradio streams.
    Everybody in range of the box or area can hear the music - the closer to the box, the louder.
    This requires the CustomMusic-AudioClient for everyone who wants to hear the music.



    Now on BukkitDev:




    Here is a video :


    Features:
    • works with Mp3 Midi and webradio streams (pls, asx, ram) that are in mp3 or ogg format
    • imaginary jukeboxes or areas can be set/ deleted
    • songs can be played globally for everyone or only for yourself
    • uploads your own music via the AC
    • downloads other person's uploaded music in order to be played by the AC
    • a lot of configurable properties: range of boxes, max mp3/midi files per user, max mp3/midi size, max boxes per player, overlapping boxes, ...
    • BukkitPermissions/ Permissions/ PermissionsEx/ GroupManager support
    • and many more...
    Before you post any Issues/ Bugs:

    This post has been edited 62 times. It was last edited by WegFetZ Nov 7, 2011.
  2.  
  3. Offline

    YpSeN

    That's pretty cool dude !
    But seems that it's not really flexible...
    I'll try it soon.
  4. 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.
  5. 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.
  6. 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.
  7. Offline

    WegFetZ

    Yes they will still be able to play.
  8. Online

    Waffletastic

    dev.bukkit.org profile:
    waffletastic2
    My Plugins
    Anyone have a youtube video of this or something?
  9. 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.
  10. 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
  11. 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... :()
  12. Offline

    Juze

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

    niccholaspage

    dev.bukkit.org profile:
    niccholaspage
    My Plugins
    I'll make a youtube video of this, it's pretty interesting!
  14. 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
  15. Online

    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.
  16. 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.
  17. Online

    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$
    
  18. 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:
  19. 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.
  20. 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.
  21. Online

    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>
  22. 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?
  23. Offline

    The PC Tech Guy

    It's impossible at the moment, due to Minecraft's client/server limitations.
  24. 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
  25. Offline

    Tottely

  26. Offline

    petteyg359

    Any reason you're using MP3 instead of Ogg? Could save some bandwidth that way.
  27. 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
  28. Online

    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
  29. 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.
  30. 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?
  31. Online

    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