[FUN] CustomMusic v0.9a - Webradio, MP3 and more to hear for everybody! [1.2.4-R0.1]

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

     
  1. Offline

    WegFetZ

    CustomMusic - Your music for Minecraft!

    Version: v0.9a

    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 63 times. It was last edited by WegFetZ Mar 4, 2012.
  2.  
  3. Offline

    kmccmk9

    Hi, I can't get the AudioClient working. This is the error I get when trying to run it as administrator
    Code:
    C:\Users\Kyle\Downloads\CustomMusic_AudioClient>java -jar MC_AudioClient.jar
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
            at Client.main(Client.java:49)
  4. Offline

    jmcneely

    I can't seem to get the audioclient to work. I followed all the direction but when I try and start it the window just blinks. Comes up then disappears, nothing happens.
  5. Offline

    kmccmk9

    Ok I finally got it working using craftbukkit # 670. If anyone needs help I can make a tutorial on how I did it and post it here...
  6. Offline

    Kartus

    probably at first repeat of a mp3 file ca. 4 minutes, i heard this "chchrchr" noise in the musicstream like radios with bad antenna ;)
    and got this error:
    Code:
    Exception in thread "BasicPlayer" java.lang.NullPointerException
            at javazoom.jlgui.basicplayer.BasicPlayer.run(BasicPlayer.java:603)
            at java.lang.Thread.run(Unknown Source)
    
  7. Offline

    waytodusk

    Heya. So I've placed the music in my computer's directory
    C:\Users\Yongzheng\Desktop\Audioclient\Music\craftplayer{name=waytodusk}

    When i go into minecraft and type in the command /cm setbox 1, they say that I have no mp3 files in the folder. why is that so? My files are of .mp3 format.
  8. Offline

    waytodusk

    Go to your audioclient folder, right click startclient.bat.
    Replace the word 'java' with "C:\Program Files (x86)\Java\jre6\bin\java.exe" with the quotes on.
    I'm running Windows 64bit. If you're running on 32bit, replace it with "C:\Program Files\Java\jre6\bin\java.exe" instead.
    Remember to replace YourMinecraftName with your minecraft username :)
    WegFetZ likes this.
  9. Offline

    Demon Boy

    Not working for me either the .bat isn't doing what its meant to and using cmd as a substitute is failing
  10. Offline

    Nuinbot

    Me gusta. Now if only you got this to work with streaming audio sources, such as Shoutcast-type stations (I personally listen to SomaFM), this would be a totally kick-ass plugin. :D
  11. Offline

    WegFetZ

    Sorry for not replying for so long, I was pretty busy this week.
    This will be possible in the next version. I'm already done with that but I still need to do some testing.
    Most likely it will come tomorrow.

    @madzz
    Are you sure the MC_AudioClient.jar is in the same folder as your startclient.bat?
    You can try to redownload it, just to make sure that there was no error during the download.

    Did you replace YourMinecraftName with your name?
    How did you fix this?

    Locate the "java.exe" on your computer and replace "java" with the path to your java.exe (in the startclient.bat)
    It could look like this:
    Code:
    "C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar MC_AudioClient.jar YourMinecraftName
    Maybe you haven't set your properties file correctly. Read the how-to in the OP for more information.
    Same for @Demon Boy

    I know this bug but I couldn't fix it yet. Us /cm toggle twice to get rid of this.

    Does it say that your AudioClient is initialized?
    That's weird. If your Music folder is in the same directory as your MC_AudioClient.jar it should actually work.

    This would be cool, but it isn't what this plugin is meant to do.
  12. Offline

    kmccmk9

    Have you issued the upload command from the MC_AudioClien.jar?
  13. Offline

    jmcneely

    Well that helped, it created the folder for me but it gives me this error:

    Code:
    15:49:18 [SEVERE] java.io.IOException: Bad packet id 48
    15:49:18 [SEVERE]       at net.minecraft.server.Packet.b(Packet.java:84)
    15:49:18 [SEVERE]       at net.minecraft.server.NetworkManager.f(NetworkManager.
    java:130)
    15:49:18 [SEVERE]       at net.minecraft.server.NetworkManager.c(NetworkManager.
    java:229)
    15:49:18 [SEVERE]       at net.minecraft.server.NetworkReaderThread.run(SourceFi
    le:68)
    15:49:18 [INFO] /24.162.172.127:50286 lost connection
    It gives me this error on the server console every time I start audio client then audio client closes it's self.
  14. Offline

    The PC Tech Guy

    This happens when you attempt to connect directly to the Minecraft server port. Check what port you have configured for the CustomMusic plugin (by default, 4224), and set that into your AudioClient's properties file.
    WegFetz, you should add in your OP that if you get a "Bad packet id 48," this means you are not connecting to the plugin's port, but instead you are connecting directly to the Minecraft server.
  15. Offline

    waytodusk

    Heya peeps! It was fixed :) Apparently the IP address in my AudioClient.properties was set wrongly. Sorry! And thanks for all your help! :D
  16. Offline

    kmccmk9

    Its important to do the commands yourself in a elevated command prompt. Its also important to have your server running first, and to also make sure you have everything ported correctly
  17. Offline

    WegFetZ

    Version 0.4

    • added option to choose which songs a box plays (more info in the how-to section)
    • added multiworld support
    • added check to prevent the AC to delete songs which are not downloaded by the AC
    • little bugfixes
    By default every box will play every song of the owner until he uses the '/cm choose' command.
    Please note that every box that was set before 0.4 will be transferred to the default world.
  18. How much memory does this plugin use?
  19. Offline

    jmcneely

    @The PC Tech Guy

    The reason why I put 25565 is that 4224 doesn't work. When I start up audio client with port set to 4224 it says:

    Code:
    C:\Users\Zombie\Desktop\McCraftBukkit_Server\Audio Client>"C:\Program Files (x86
    )\Java\jre6\bin\java.exe" -jar MC_AudioClient.jar YourMinecraftName" -jar MC_Aud
    ioClient.jar YourMinecraftName -jar "MC_AudioClient.jar" jmcneely
    Connected!
    Name registered! Log into Minecraft within 60s or use '/cm init' if you are alre
    ady logged in.
    
    But when I log into the server it says "CustomMusic: Initialization failed! Make sure you started the AudioClient!"

    Here are my configurations:

    Code:
    #===CustomMusic configuration===
    #Fri Apr 15 13:45:09 CST 2011
    Maximum-Boxes-per-Player=3
    Maximum-MP3-per-Player=5
    Music-range=15
    Maximum-MP3-Size-MB=15
    Server-Port=4224
    
    Code:
    #===MC-AudioClient configuration===
    #Fri Apr 15 13:45:48 CST 2011
    Server-IP=24.162.172.127
    Server-Port=4224
    
    I really have no idea what I'm doing wrong, I keep repeating the instructions and end up in the same spot.
  20. Offline

    WegFetZ

    @jmcneely
    Looks like your startclient.bat contained
    Code:
    "C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar  MC_AudioClient.jar YourMinecraftName" -jar MC_AudioClient.jar  YourMinecraftName -jar "MC_AudioClient.jar" jmcneely
    instead of
    Code:
    "C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar "MC_AudioClient.jar" jmcneely
  21. Offline

    The PC Tech Guy

    I thought this too at one time, even with the startclient.bat file correctly configured. (however the reason why it didn't work is different (see first few pages), in this case WegFetZ may have found out why.)

    Whatever you do, do NOT set the port as your server's port! That is a No-No!
  22. Offline

    jmcneely

    Alright I think I got it, I just messed up my startclient.bat, I had difficulties setting it up and overlooked somethings. thank you WegFetZ and The PC Tech Guy so very much.
  23. Offline

    MCPAN

    GJ, I have a suggestion can make plugin support internet music/radio (like SHOUTcast Radio)?
  24. Offline

    Kartus

    bug CM 0.4 #678: my player with moderator permissions and inherited following permissions can upload mp3 receives message "You already have 3 boxes!" and can't add a box. but my BoxList.db hasn't got any boxes from him, even after server restart.
    Code:
        - cm.init
        - cm.setbox
        - cm.upload
    Code:
    CraftPlayer{name=Kartus}:35.5:64.0:-10.5:1:CraftWorld{name=world}
    CraftPlayer{name=Kartus}:41.529324:64.0:24.760504:2:CraftWorld{name=world}
  25. Offline

    WegFetZ

    Which command does he use when he gets this message?
  26. Offline

    WegFetZ

    @Victueno
    Your server only needs the CustomMusic.jar
    The AudioClient is needed on your pc where you play minecraft.
    Follow the instructions in the OP
    Victueno likes this.
  27. Offline

    Kartus

    /cm setbox 114. it's no real bug, it's only wrong message ;) it should say "you can only set box until number x". x = maxboxes. he can use "/cm setbox" and "/cm setbox {1-3}".

    at which bps rate is the server streaming the music?
  28. Offline

    Kartus

    Suggest 1
    set in config only "max-music-range=30" and "default-music-range=15". and settable maximum in permissions, like plugin DorpChest does:
    Suggest 2
    give a permission "cm.admin" which grants unlimited boxes/song's/range. and for each "cm.admin.box", "cm.admin.song", "cm.admin.range".
  29. Offline

    WegFetZ

    You're right, it's a wrong message :D
    The music isn't really streaming, the files are just transferred to the clients which is limited by the speed of the clients/ server's internet connection.
    It's already on the to-do list but thanks for the DropChest example. I didn't know that this is possible.
  30. Offline

    Kartus

    is CustomMusic also usable with MAC? if yes, same installationsteps like in windows, or how?
  31. Offline

    WegFetZ

    Read the FAQ
  32. Offline

    Bradley Hilton

    Got a bug to report. I updated to 0.4 and all was going well. Set a box, choose the song to play with it but yet it didn't work. So I then looked at the AudioClient and saw that I had some errors. It seems that you're basing it off of windows and how windows doesn't really care about case sensitivity, but since I'm on Linux "song" is completely different than "Song" because of the case difference. Once I renamed the song locally it played fine. So I recommend maybe having it keep the case the same.

    I just tested it again to be sure that it wasn't working the correct way and I got the same results. My server and client are both linux based, so if you need any help or got questions please let me know.

    Code:
    Uploading 02 Lord You're Mighty.mp3...
    Upload done!
    
    java.io.FileNotFoundException: Music/craftplayer{name=graywolf336}/02 lord you're mighty.mp3 (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:137)
        at org.tritonus.share.sampled.file.TAudioFileReader.getAudioFileFormat(TAudioFileReader.java:108)
        at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioFileFormat(Unknown Source)
        at Player.getDuration(Player.java:132)
        at Player.getSongOffset(Player.java:90)
        at Player.run(Player.java:35)
    Missing MP3!
    
    And here's a screen shot to show that the original file is there:
    file_is_there.png

Share This Page