[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

    Fr0zenfr0g

    i have 2 problems, 1: No matter how I set up my PermissionsBukkit config file, if I attempt to use any function of /rm in the client, it tells me "[RyveMusic] You don't have the permission to use this command."
    2: every time i reload my server it is doing a new config file :(
     
  3. Offline

    Rellac

    Can anyone tell me what's wrong with this setting.txt/urls.php;

    Code:
    loopInRegion=true
    ListMusic=http://www.altummc.com/urls.php
    useURLs.txt=true
    playMessage=false
    moneyName=dollar
    onMove=true
    randomMusic=true
    loopNpc=true
    
    
    It keep reverting back to the originals. I've tried like this with the URL.txt file setup exactly the same as my php file. I've also tried running it with useURLs.txt set to false and my own file just doesn't work. Either way the entire settings file will reset every time I start the serrver up.

    I can't get my own music to work. :l
     
  4. Offline

    afmiller

    My server wont play my music for some reason, attached below is the settings file. I'm using the listmusic.php to list the music, and the file is a .mid file. The music from tims server playes, but mine won't. the Listmusic.php is under the web/music folder I have set up.

    http://pastebin.com/whMuFMF9 - the setting wording is not in the file on the server. I added it here

    http://romperroommc.com/music/end.mid is the file I am trying to play
     
  5. Offline

    Nocturnal7x

    This keeps happening to me also...every restart the file reverts back to default... 1060

    Fail we fail. I just read a few pages back, stop the server, then edit the file, then restart!

    if you edit the file while the server is running the changes will get undone.

    so just stop your server, then edit the file, then start the server back up! lol

    Ok, this I have searched for and have not found a solution to. When I enter a region, the musi starts, but if I leave it does not stop till the song ends. Its a midi does that matter maybe? ill try converting it I guess.

    If I leave the region,(music still playing) then enter it again, the music will start from the beginning, but it never stops :p

    any ideas?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  6. Offline

    Fr0zenfr0g

    Thanks i will give it a try :D
     
  7. Offline

    ju571n53

    Coucou, je ne sais pas si le message à été déjà proposée mais bon...

    est-ce que tu pourrais ajouter un système de playlist, gérer par un fichier yml ou une bdd ?

    Merci pour ce plugin ;)
     
  8. Offline

    Fr0zenfr0g

    Now i have only one problem left, 1: No matter how I set up my PermissionsBukkit config file, if I attempt to use any function of /rm in the client, it tells me "[RyveMusic] You don't have the permission to use this command."
     
  9. Offline

    darth2499

    can you make it so that you HAVE to burn the music to the cd to play a music instead of having to play a random one?

    because my server sells cd or discs for like 100 and if i sell the music for only 10 its unfair. so i want an option where you must have a cd in your hand to burn. so if you have 10 cds you can burn 10 different songs.

    thanks! :)
     
  10. Offline

    Fr0zenfr0g

    do this plugin eaven suport permissionsbukkit???
     
  11. Offline

    grifOndOr

    Can we burn cd without open a shop ?
     
  12. Offline

    Schlumpf

    Hello,
    I get this error:
    Is this a Spout error or is it from RyveMusic?
    Code:
    2011-09-16 20:07:57 [SEVERE] Could not pass event PLAYER_INTERACT to RyveMusic
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at com.bukkit.arthurh.RyveMusic.MusicPlayer.randomMusic(MusicPlayer.java:97)
        at com.bukkit.arthurh.RyveMusic.RyveMusicPlayerListener.onPlayerInteract(RyveMusicPlayerListener.java:54)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:573)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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:478)
        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)
     
  13. Offline

    sitrec

    Loving this! Works perfectly.
    Although i have a problem(not a bug or anything), when an npc play sounds they interrupt the other sounds.
    I have a zone where i play some awesome background sounds but as soon as my npc' start their sound the other music stops, the only way i could get around this was using jukeboxes for the background music, but since redstone is quite unreliable i couldn't get it to work completely, it sometimes stops and wouldn't work.
    Would it be possible to have a command for making zone music that works like a jukebox? so the sounds in that zone plays through the channel the jukeboxes use and maybe also having it fading while outside of the region just like a jukebox. So when you walk up to the "jukebox zone" the music gets louder and louder.
    This would be an awesome feature and i really hope its do-able.
    Thanks in advance!
     
  14. Offline

    BadDog

    Hmm, ça m'a l'air très sympathique, tout ça ! Je vais voir si mes joueurs sont chauds pour cet ajout, et je testerai certainement ça d'ici peu. C'est vrai que demander d'ajouter spoutcraft est quelque chose qui peut en refroidir certains, mais ça vaut sans doute le détour. Merci pour le plugin en tout cas !
     
  15. Offline

    paully104

    Testing on the latest Dev build of spout and it keeps just spitting out /rm list /rm list instead of anything else.
     
  16. Offline

    Stupid96

    Is this Plugin a dead Project?
     
  17. Offline

    paully104

    Don't believe so, most likely just waiting for the recommended build to come out, just keep in mind they are people to, so it takes awhile for some of the updates.
     
  18. Offline

    Stupid96

    Why crashes my minecraft if I play anything? Is it a fault from spoutcraft?

    Yes, it was!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  19. Offline

    Schlumpf

    Hello,
    are you still developing this Plugin or is it inactive??
    Long time ago you posted a comment :)?
     
  20. Offline

    Fr0zenfr0g

    Update plz :D
     
  21. Offline

    paully104

    @timoun Whats the status on this plugin. I'm willing to donate, one of my favorite plugins i don't want it dead ._.
     
  22. Offline

    Silvo

    same here
     
  23. Offline

    forceserver

    [SEVERE] Error occurred while enabling RyveMusic v1.4.1 (Is it up to date?): com/iConomy/iConomy
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at com.bukkit.arthurh.RyveMusic.RyveMusic.onEnable(RyveMusic.java:178)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
     
  24. Offline

    rudedoggx

    Is there a way to view multiple pages of the song list? I have 56 songs, but when I do /rm list, I can only see songs #37-56.
     
  25. Offline

    dougdashwitz

    Getting an error when this plugin is used at the same time as Citizens Plugin

    I pasted the error below

    Code:
    2011-10-03 15:58:48 [SEVERE] Error occurred while enabling RyveMusic v1.4.1 (Is it up to date?): com/citizens/Citizens
    java.lang.NoClassDefFoundError: com/citizens/Citizens
    	at com.bukkit.arthurh.RyveMusic.RyveMusic.onEnable(RyveMusic.java:196)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
    	at org.bukkit.Bukkit.reload(Bukkit.java:173)
    	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:349)
    	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.citizens.Citizens
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	... 16 more
    2011-10-03 15:58:48 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    2011-10-03 15:58:50 [INFO] [Citizens]
    2011-10-03 15:58:50 [INFO] [Citizens] Citizens Error Reporting - Powered by CreeperHost.net
    2011-10-03 15:58:50 [INFO] [Citizens] Below is the stacktrace that has been transmitted to the developers, no other information has been included other than Citizens version information.
    2011-10-03 15:58:50 [INFO] [Citizens] NPC types loaded: blacksmith, guard, healer, quester, trader, wizard
    2011-10-03 15:58:51 [INFO] [Citizens] version [1.1.1] loaded.
    2011-10-03 15:58:51 [INFO] [Citizens] Economy plugin found (iConomy v5)

    I also let the Devs over at Citizens know there is an issue

    you using spout, so hit 't' like your going to write something, and use your scroll wheel to see the chat history

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  26. Offline

    rudedoggx

    Oh, thanks. I didn't know you could scroll through the chat like that. I've already switched over to SpoutEssentials for music, though.
     
  27. Offline

    dougdashwitz

    The devs there say you guys need to rebuild ryve to handle the new citizens
     
  28. Offline

    paully104

    Timoun hasn't been on in forever we need someone to pick up this project
     
    Nox13last and bradgillap like this.
  29. Offline

    paully104

    @skawke Tagging you in this to take a look at the php system used for incorporating random music on the fly. If you can use this system in Spout Essentials that would be amazing!
     
  30. Offline

    Yurikoma

    yeah spout essentials fails for me

    so would like this updated
     
  31. Offline

    timoun

    hello,
    i'm sorry to not answer you but i have a lot of works so i haven't a lot of time.
    in add, i have stop minecraft and i will turn this plugin to inactive. Another developper can take care this plugin, he is welcome ;)
     

Share This Page