[INACTIVE] [FUN] RyveMusic v1.4.1 - Add your music in game [Spout] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by timoun, Aug 13, 2011.

  1. Offline

    timoun

    RyveMusic v1.4.1 - Add your music in game

    Version: v1.4.1
    [​IMG]

    NEW: Play loop music !!!


    This plugin use Spout to add music in your server. You can play a music in global or for only player.
    But the plugin doesn't stop here, you can put music in a jukebox, play a burn cd into a jukebox, start the music of the jukebox with redstone. You can also make little shop to buy cd burn and put music in a region with worldguard.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Pour les francophones vous pouvez voir le topic sur minecraft.fr ici
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Requirements:
    Features:
    • lang.txt to translate in your own langage
    • Put music on a jukebox
    • play music for one player
    • play music for all players
    • Loop music in a region, on an NPC or a player
    • play cd burn into a jukebox
    • Start music from jukebox with redstone
    • (optionnal) WorldGuard to start music when player enter on a area and stop the music when he leave area
    • (optionnal) iConomy to create shop to buy a burn cd wich contains a music
    • (optionnal) Citizens to put music on a npc
    • Permissions support
    • Start sometimes a random music
    How does it work?

    To start the plugin you must have a file wich contains all url music who want to play in game and after that you to put the url of your txt file in setting.txt into RyveMusic folder.
    For exemple, i have a php file wich list all music from a folder and made a list of url. To access to this file you have to put the link in setting.txt, the link is: http://mine-elite.fr/musique/listmusic.php
    (this link is use by default on setting.txt file)
    Now you put the url into setting.txt, here:

    Code:
    ListMusic=http://mine-elite.fr/musique/listmusic.php
    //Set it to true if you want use URLs.txt
    useURLs.txt=false
    moneyName=dollar
    //If you have lag add and set this line to false:
    onMove=true
    //Add and set to false to remove random music
    randomMusic=true
    //set to false if you don't want playing loop music on an NPC
    loopNpc=true
    //set to false if you don't want playing loop music in a region
    loopInRegion=true
    //set to false if you don't want see a message when the music is playing
    playMessage=true
    
    you just have to put link in your file of url and the plugin does the rest

    If you have no web host you can just set useURLs.txt to true (to do that you need to stop your server, modify setting.txt and finally restart your server) when it's done you have to put your song URL into URLs.txt in RyveMusic folder like that:
    Code:
    http://mine-elite.fr/musique/A-H.Marlene.ogg
    http://mine-elite.fr/musique/A-H.house.of.rising.sun.ogg
    http://mine-elite.fr/musique/A-H.the.messenger.ogg
    
    you don't have to do any reload on your server just put url into this file and my plugin see modification ! :D

    IMPORTANT: music must have to be in .ogg, .mid or wav

    if you want my code of the php file you can have here:

    listmusic.php (open)
    PHP:
    <?php
    $folderName 
    'musique';
    $folder './';

    define("SERVERNAME"'http://'.$_SERVER['SERVER_NAME'].'/'$folderName .'/');
    $image_valide =  Array('wav''mid''ogg');

    if(
    $parcourir scandir($folder0)){
        foreach(
    $parcourir as $clef => $fichier){
            
    $pathinfo_fichier pathinfo($fichier);
            if (
    in_Array(strtolower($pathinfo_fichier['extension']), $image_valide))
        {
                echo 
    SERVERNAME $pathinfo_fichier['basename'];
                echo 
    "\n";
            }
        }
    }
    ?>



    Play music for a player or in global:
    to see all music in your server you have to use "/rm list" and the plugin list all the music from your file of url wiith an number on the left, this is the music number:
    /rm list (open)

    [​IMG]

    to start a music for your own you can use "/rm play <music number>", for start music for an other player you can use "/rm play <music number> <player name>".
    Exemple, to play A-H.marlene.ogg you must do "/rm play 1"

    you can stop music for you with the command "/rm stop"
    To play music in global use "/rm global <music number>"

    Now, with the release 1.4 you can loop play a music with the command "/rm playLoop <music number".

    Put music on a jukebox:
    To put music you must use the command "/rm setJuke <music number>" and hit a jukebox, the music is playing. If a player hit the jukebox the music is restart.
    After, put music on a jukebox, you can start music with redstone so you can use a jukebox in redstone circuit.
    To delete music from jukebox you have to break it.

    Put music in a region:
    To put music in a region you must have wolrdguard on your server.
    You can put music in a region with this command: "/rm setRegion <music number> <region name>"
    When a player enter the area the music is played and when he leaves the music stop.
    To remove music from a region use "/rm delRegion <region name>"

    Put music on NPC:
    You must have Citizens on your server.
    To put music on an NPC, you have to do a right click on your NPC like for citizens, when citizens send its message, now you just to perform this command "/rm setNpc <music number>".
    If you want remove a music from an NPC, perform this command "/rm delNpc" after you have selected your npc.

    Burn cd with shop:
    You must have iConomy to use that!
    To create a cd shop you have to take sign. On the first line you have to write RyveMusic, on the second the music number and on third line, the price.
    like that:
    shop (open)

    [​IMG]

    You can see the music name when a player hit with left click the sign.
    To buy a cd you have just to use right click on the sign and the cd is burn.
    You can see directly on your inventory the music name:
    music name (open)

    [​IMG]

    To play a cd you have to put your cd in the jukebox.
    If a cd is not burn a random music is played in the jukebox

    Commands:
    Command (open)

    • /rm global <music number> - play a global music
    • /rm play <music number> [Player] - play music for a player, if [Player] is empty it's play music for you
    • /rm playLoop <music number> [Player] - Loop play music for a player, if [Player] is empty it's play music for you
    • /rm stop - Stop the music only for you
    • /rm list - a list of your musics in the file of url
    • /rm setJuke <music number> - To put music on a jukebox
    • /rm setRegion <music number> <region name> - To put music into a region
    • /rm delRegion - To remove music from a region
    • /rm setNpc <music number> - To put music on an NPC
    • /rm delNpc <music number> - To remove music from an NPC
    • /rm reload - To reload setting file with your new configuration


    Vidéos:
    Video in french (open)


    Permissions node:
    Permission (open)

    -RyveMusic.playGlobal -- To use /rm global
    -RyveMusic.play -- To use /rm play
    -RyveMusic.list -- To use /rm list
    -RyveMusic.stop -- To use /rm stop
    -RyveMusic.setJuke -- To use /rm setJuke
    -RyveMusic.setRegion -- To use /rm setRegion
    -RyveMusic.setNpc -- To use /rm setNpc
    -RyveMusic.delNpc -- To use /rm delNpc
    -RyveMusic.haveShop -- To have the permission to create cd shop


    Configuration:
    Configuration (open)

    Code:
    ListMusic=http://mine-elite.fr/musique/listmusic.php
    //Set it to true if you want use URLs.txt
    useURLs.txt=false
    //set your money name
    moneyName=dollar
    //If you have lag add and set this line to false:
    onMove=true
    //Add and set to false to remove random music
    randomMusic=true
    //set to false if you don't want playing loop music on an NPC
    loopNpc=true
    //set to false if you don't want playing loop music in a region
    loopInRegion=true
    //set to false if you don't want see a message when the music is playing
    playMessage=true
    


    Support me:
    To help me and for give me the courage to make other big plugin you can donate or/and thank me for my job :D , you can also support Ryve ;)
    To donate:
    [​IMG]

    Support Ryve:
    Ryve is an independant musician and song writer, you listen to his music with this plugin (All music with the prefix M-E are the job of Ryve ) or go to this website:
    Ryve's Music (For french it's here)

    My favorite musics of ryve are (direct link to listen):
    Between sky and clouds (acoustic guitar)
    Strange Habit (close daft punk)
    Rise of factions (for metal)
    Its just in progress (acoustic guitar)
    Wind of time (electronic)


    To help him you have just to talk about him with your friend and family ;)

    Download:
    • RyveMusic V1.4.1 - Download (Source into the jar)
    • RyveMusic V1.4.1 for french (yeah i'm french) - Download
    Notice:
    • All my apologize for my english, forgive me I'm french :D
    • All music in the default file with prefix M-E are under our own license ( Licence Creative Commons ) so please ask to Ryve to use his music
    ChangeLog:
    v 1.4.1
    • Add setting playMessage to remove the message when a music is playing
    • Add reload command to reload setting file
    v 1.4
    • Ability to loop music
    • Add the command /rm playLoop
    • Add the possibility to set loop music on npc
    • Add the possibility to set loop music in region
    v 1.3
    • Fix few bugs
    • Give the possibility to have a simple txt file in RyveMusic folder to list music url (Set useURLs.txt to true in setting file and put url into URLs.txt in the same folder)
    v 1.2.2
    • Add the possibility to set event for start music
    • Add the possibility to remove random music
    v 1.2.1
    • Fix region parent and children (Need to set a parent for an imbricated region)
    v 1.2
    • Add music on npc
    v 1.1.2
    • Fix bugs like cast exception
    v 1.1

    • Add urldecode to parse an url
    • Retranslate some text
    • remove extension in the list of music
    Todo:
    • Give the possibility to have a simple txt file in RyveMusic folder to list music url
    • Put music on npc (It will be required to have citizens)
    • Play loop music into a region (need spout update) have i good idea to do that :D
    • Stop music on jukebox when you break it (need spout update)
    If you have problems, read that before asking:
    • trys to modify AuthenticateTicks in config.yml of spout and set it to 100
    • If you have a mac go to this topic to fix sound problem: here
    • Finally, see if you have set up the volume :)
    • I have get around spout for playing loop music so please don't annoying me if there are no bug with this.
    • Loop music only works with ogg and wav
     
    Noppoly likes this.
  2. Offline

    timoun

    for the moment, i can't because i need to know if a music is stop and spout api doesn't haves yet this function.

    I maybe found a solve for this and i will try it for playing loop music.

    EDIT: it's works see the new release :)
     
  3. Offline

    djrazr

    Seems to be very nice.. but he is french..
     
  4. Offline

    timoun

    you say that it's not good because i'm french ?!
     
  5. Offline

    darth2499

    i simply cannot play any music. i have spout installed because i noticed the multiplayer menu changed! it says its playing and theres no error. also when i try to make a sign it just destory itself even though it says successfully created. HELP!

    EDIT

    ok i updated spout and it plays songs. but i still cannot create a sign/shop to burn the cd! also when i break the jukebox the music doesnt stop unless i QUIT minecraft

    EDIT EDIT

    ok i found out why i cant make the shop, its because i have iconomychestshop and thats interfering it. please make it work somehow.
     
  6. Offline

    Schlumpf

    Oh really nice you added it :D
    I will test it tomorrow :)
    Thanks!
     
  7. Offline

    toro_m16

    Well, thx for the files. Now Spoutcraft worked, but the song still not works.
    I enter the game, type /rm global 1, and nothing plays. This time said that it had downloaded the music, but it doenst plays nothing.
    What could it be?
     
  8. Offline

    Schlumpf

    Hmm, do you hear other Minecraft Sounds? By me Windows set all Minecraft Music to 0 in the Mixer. Do you get a sound by hitting a dirt block or something?
    Or theres something other wrong with your Client. Do you have Mods or something installed in your Client?
     
  9. Offline

    sephiroth7240

  10. Offline

    timoun

    and you think i will answer to that? Oo
     
  11. Offline

    toro_m16

    All the sounds are working, only the music doesnt work.
    I dont have mods, but i have plugins in my server.
     
  12. Offline

    operatic

    this plugin and region market have same commands please fix it thanks
     
  13. Offline

    DilltheThrill

    Do you think its possible to have loops with jukeboxes in the future? Also the playloop command only plays the song once for me.
     
  14. Offline

    timoun

    i have to use tips for using loop with my plugin so for the moment i need from spout to perform loop with jukebox.
    you need to move for play again a song because like i already said i used tip to do that :)
     
  15. Offline

    DilltheThrill

    what exactly is tip?
     
  16. Offline

    timoun

    to loop a music you have to know if the music is stop, for that you have two solves:
    -Check if your program is being playing music
    -Check the duration of a song and compare current time and this duration

    But for the moment, spout don't give us a method to see if music is stopping
    For the first one, i need to modify spout in the client side so i couldn't
    I use the second option, in this option you have few tips to think:
    -how can i get the duration of music then spout doesn't delivery method to do that?
    you have two possibility:
    -force the server adin to download library/jar to get duration of the music
    -Use other thing to reduce server memory

    i use the second, i do a php script wich give the duration of ogg and wav and i exploite this with my plugin
     
  17. Offline

    superbomb17

  18. Offline

    CorruptionEX

    anyone know how to change the music to play on Sound Efeects instead of Music?

    plz help me.... =(
     
  19. Offline

    sephiroth7240

    sorr about that random post earlier, when either i or soemone does /rm play global 1 it shows "internal command error" then on the server tht long list of stuff http://paste.ubuntu.com/670426/
     
  20. Offline

    timoun

  21. Offline

    superbomb17

  22. Offline

    DeeLaYz

    I love the plugin and i get 4/5 from me but if you add this it will have 5/5. When you right-click with the cd on the jukebox the cd should disappear from your hand and into the jukebox ( like in normal minecraft ) and if you right-click the jukebox when it has a cd in it the cd will pop out and the music stops. I want you to add this because now you can just go around and spam with one cd on every jukebox. I hope you will add this.
     
  23. Offline

    TehAndrewRyan

    Hi.
    I have a couple of errors and some suggestions. I got Citizens and another plugin which displays a health bar when you right click mobs. I get
    Code:
    12:02:55 [SEVERE] Could not pass event PLAYER_INTERACT_ENTITY to RyveMusic
    java.lang.NoClassDefFoundError: com/citizens/npcs/NPCManager
        at com.bukkit.arthurh.RyveMusic.RyveMusicPlayerListener.onPlayerInteractEntity(RyveMusicPlayerListener.java:228)
        at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:321)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:870)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    if I right click them.
    Also, the looping doesn't work, it only plays the song once.
    Now to the suggestions:
    - Add compability with Towny so that you can play music when you enter a town
    - Add an option to play music when a player enters a certain world
    - Add an option to hide chat messages when a song starts to play (it'll confuse people if it says [RyveMusic] every time you enter a region with music, imho)
     
  24. Offline

    Lotos

    Found a bug.
    ex.
    If i enter the selected region it turns on the music, but when i come to NPC, he starts talking to me. When i get back from him, the music from region won't play again. To get it working again, i need to leave region and enter it again.
     
  25. Offline

    Schlumpf

    Hi,
    hmm how I let play a NPC random music? Must I type in /rm setNPC 1, /rm setNPC 2 and so on ...
    And then he palys the titles randomely or how dows it work exactly? Can you add a Command to reload just this Plugin? for example /rm reload that the config is reloaded? This would be great :).
     
  26. Offline

    timoun

  27. Offline

    Schlumpf

    Oh ok, I thought it was Loop :D Sry, now I translated it. Does loop mean that when the music stops because its over that it start new, or what exactly means loop?
     
  28. Offline

    timoun

    That means it plays music again and again :)
     
  29. Offline

    papand13

    I have an error. Everytime someone who has SpoutCraft installed. Those who don't have SpoutCraft gets kicked?

    Anyway to fix this? Beacuse i don't want to restrict my server to SpoutCraft users.

    Regards, Papand13.
     
  30. Offline

    timoun

    this is not the appropriate thread. You have to setting config.yml into spout folder and modify this ForceSinglePlayerClient: true by ForceSinglePlayerClient: false
     
  31. Offline

    TehAndrewRyan

    Excellent! Now the only feature I'm missing is to add music to certain worlds! That would make this plugin perfect!
     

Share This Page