[MISC] BiomeSound v1.1 - Biome-based Ambient Sounds [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Laurina, Jul 28, 2011.

  1. Offline

    Laurina

    BiomeSound - Biome-Based Ambient Sounds:

    Version: v1.1

    This plugin requires BukkitContrib or Spout, and only clients using the BukkitContribSP mod or SpoutCraft client will benefit.
    Running the server once with BiomeSound installed will generate an example config.yml in the BiomeSound folder.
    Edit this as required (it will do nothing in its default state).

    Code:
    sound:
        desert: http://your.site.here/desertwind.ogg
        range: 45
        forest:
            night: http://your.site.here/forest_night.ogg
            day: http://your.site.here/forest_day.ogg
        boat: http://your.site.here/rowing.ogg
        rainforest:
            night: http://your.site.here/rainforest_night.ogg
            day: http://your.site.here/rainforest_day.ogg
        nodeseparation: 20
        open:
            night: http://your.site.here/nighttime.ogg
            day: http://your.site.here/daytime.ogg
        volume: 70
        train: http://your.site.here/train.ogg
        arctic: http://your.site.here/arcticwind.ogg
        nether: http://your.site.here/nether.ogg
        underground: http://your.site.here/underground.ogg
        swamp:
            night: http://your.site.here/swamp_night.ogg
            day: http://your.site.here/swamp_day.ogg
        lava: http://your.site.here/lava.ogg
    The plugin works by causing a client-side sound to play at the player's current location.
    Another sound will play when the player has moved a certain distance from the last location where a sound started playing.
    You can adjust this distance with the nodeseparation parameter.
    The reason for doing it this way is to create subtle volume variations and the possible mixing of sounds (i.e. between two biomes).
    Exceptions are the boat and train sounds; these have no world locations and play at a uniform volume.
    The range parameter defines how far away the sound is audible.
    The volume parameter defines the absolute volume at which sounds play. Adjust this to taste.
    Sounds must reside on a webserver from where clients download them automatically. Downloaded sounds are cached, and so will only be redownloaded if the cache is deleted.
    Soundfiles must be long (10-15 minutes), with the exception of the boat and train sounds (these should be about 10 seconds long)..
    A set of royalty-free soundfiles that work well can be downloaded below.
    A silence.wav file is included, and can be used in case there are instances where you don't want a sound to play.

    Credits:
    This plugin is based on BiomeMessage by robin0van0der0v, and retains the /biome command functionality from it.

    Features:
    • Causes client to play ambient sound appropriate to Biome.
    • Plays different sounds in the day and in the night, where appropriate.
    • Plays specific ambient sound when the player is deep enough underground.
    • Plays sound effects when the player is using a minecart or boat.
    • Plays sound effect when the player is near lava.
    • Use the /biome (or /b) command to learn what biome you're standing in.
    • Ops can use the command to check the biome locations of other players.
    Download BiomeSound v1.1 (for BukkitContrib 0.1.7)
    Download BiomeSound v1.1 (for Spout 1.0.1)
    (source code included in .jar)

    Download Sound Pack
    (85 MiB)
    Download only the lava sound (for those who have the old Sound Pack)

    Changelog:
    Version 1.1
    • Project split into continued BukkitContrib support as well as Spout support.
    • Lava effect added.
    • Clients now always play ambient sound at their login location. Before, they would only do so the first time they logged in after a server restart.
    Version 1.0
    • Release
     
    Moe041991 likes this.
  2. Offline

    ArtBot


    Well I tried Spout as soon as a heard about it, and using it caused internal server errors every time someone logged in(probably because plugins have to be updated to Spout). Also using another client that isn't mod friendly is something that I don't think very many people will do willingly.
    So basically I haven't found any plugin that works with out any major errors, but with a few changes I see Spout as being the WOM equivalent of a beta client mod.
     
  3. Offline

    Laurina

    Yes, it is sad :(
    The "official" word on the SpoutCraft client is that it can't be modded at all. Some sort of equalizing anti-cheat measure-thingy, I guess. If any client mods are incorporated, it will be done by the Spout team exclusively. All our mods are, in fact, belong to them.
    Now, I realize that BukkitContrib always stated that it would become increasingly incompatible with other mods, but this is a bit too draconian for my tastes. At least, while it was still called BukkitContrib, I could monkey around with the client mod and make it compatible with other mods I use (such as modloader). I can't do that with SpoutCraft.
    So I'll stick with the BukkitContrib I have. With any luck, I'll be able to update it as needed for myself and the users on my server.
    This plugin, however, is pretty simple. It shouldn't be difficult for anyone to take it over.

    WOM?
    Anyway, I think you're correct that it'll have a hard time becoming widespread while it doesn't support client mods beyond what the Spout team deigns to integrate.
    I'm getting those errors too with Spout. With just Spout and no plugins that make use of it, even. It starts up ok, but as soon as I log in with SpoutCraft, exceptions fill the console window.
    I'm sure they'll sort those problems out, though.
    It's the no client mods thing that really puts me off.

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

    IncendiaDrakon

    Well, they're aiming towards client side plugins, which means you can customize the game as you see fit, so long as you have the programming knowledge and the Spout API allows it. If I understand they're aiming for the client to act like CraftBukkit, plus custom content.
     
  5. Offline

    F_Synchro

    Is there still a possibility you can make it Spoutcompatible? I'm really looking forward to have this on my server...
     
  6. Offline

    Laurina

    Well, I haven't stopped trying yet, so there might be a chance ;)
    Going to have another go at it now.

    Success! :)
    Main post updated.

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

    Montpelier

    Spout will (in time, it's not even out the submissions folder yet) support mods via an API, but to do that it needs to not support single version hacks that just reach directly into the source and jiggle it about a bit, which is what all Minecraft 'mods' currently are. To try and support both would I assume be even more frustrating than spending several hours a day dealing with people who crash into support threads screaming Y U NO MAKE ITEMS HAX GO???? for the twenty-seventh time, expecting a calm and detailed reply just like the one two posts above the question.
     
  8. Offline

    Laurina

    lol, you make a good point ;)
    But my server is for a select group of friends and relatives only, so keeping a common standard is rather easy. We all use the same modded client, except for the texturepack of which I support two resolutions.
    So, my continued support for BukkitContrib, even though it has been superseded by Spout, is really for the benefit of myself and the users on my server. We don't want to lose any of the mods we use - not even temporarily.
    The version upgraded for Spout compatibility is, at this time, for the benefit of everyone else :)

    I am aware of the design philosophy of Spout (and of BukkitContrib before it), and I know it makes sense. It's just that right now, the mods are not SpoutAPI mods. Returning to a bare-bones client now is not an attractive idea.
    I don't want it, and my users don't want it.
    If it catches on in the client modding community, I will of course reevaluate my stance :)
     
  9. Offline

    F_Synchro

    Right now, for me, Spout works only on my computer, on ALL of my other clients *almost all of them use laptops* cannot run Spout due to memory issues, spout just uses so much memory it's saddening, Anyhow, thanks for the update.

    My server is alot like yours, only friends and relatives. But we are looking for more people though, does it sound attractive to have a combination of our servers by linking them with portals?
     
  10. Offline

    Adelion

    Nice work Laurina.
    Perfect on : Bukkit Build 1000, Spout 1.0.1 and BiomeSound 1.1
    And thanks for the sound pack.
     
  11. Offline

    IncendiaDrakon

    You're awesome, thanks for adding Spout support! Hopefully the bugs with sounds not playing correctly, or at all are fixed. I haven't experienced these errors, but my users have.

    Could anyone recommend a good file host? I'm using mediafire, which worked yesterday. Now it seems my client isn't downloading the files, so I just manually placed them in my BiomeSound directory. I'm not sure if this is a problem due to mediafire or Spout. Yesterday it worked using BukkitContrib for myself and another player.

    The sounds seem to work flawlessly when I put all the files in my directory.

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

    ArtBot

    WOM
     
  13. Offline

    Graytico

    Help! Every time I go onto my server I get this error in the log and no music plays D:
    Code:
    16:50:11 [SEVERE] Could not pass event PLAYER_MOVE to BiomeSound
    java.lang.ClassCastException: org.getspout.spout.player.SpoutCraftPlayer cannot
    be cast to org.bukkitcontrib.player.ContribPlayer
            at net.laurina.BiomeSound.BiomeSoundListener.onPlayerMove(BiomeSoundList
    ener.java:199)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:286)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :491)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  14. Offline

    Chuckster

    ok i downloaded the sound pack and my config looks like this
    Code:
    sound:
        desert: file:///Users/bpmh/Downloads/biomesound_effects/desertwind.ogg
        range: 45
        forest:
            night: file://localhost/Users/bpmh/Downloads/biomesound_effects/forest_night.ogg
            day: file://localhost/Users/bpmh/Downloads/biomesound_effects/forest_day.ogg
        boat: file://localhost/Users/bpmh/Downloads/biomesound_effects/rowing.ogg
        rainforest:
            night: file://localhost/Users/bpmh/Downloads/biomesound_effects/rainforest_night.ogg
            day: file://localhost/Users/bpmh/Downloads/biomesound_effects/rainforest_day.ogg
        nodeseparation: 20
        open:
            night: file://localhost/Users/bpmh/Downloads/biomesound_effects/nighttime.ogg
            day: file:///Users/bpmh/Downloads/biomesound_effects/daytime.ogg
        lava: file://localhost/Users/bpmh/Downloads/biomesound_effects/lava.ogg
        volume: 70
        train: file://localhost/Users/bpmh/Downloads/biomesound_effects/train.ogg
        arctic: file://localhost/Users/bpmh/Downloads/biomesound_effects/arcticwind.ogg
        nether: file://localhost/Users/bpmh/Downloads/biomesound_effects/nether.ogg
        underground: file://localhost/Users/bpmh/Downloads/biomesound_effects/underground.ogg
        swamp:
            night: file://localhost/Users/bpmh/Downloads/biomesound_effects/swamp_night.ogg
            day: file://localhost/Users/bpmh/Downloads/biomesound_effects/swamp_day.ogg
    
    But i dont get any errors but no music plays ?
     
  15. Offline

    Oscarius

     
  16. Offline

    Laurina

    The sounds are cached forever by your client. That's probably where they're playing from.
    Putting them in the BiomeSound directory shouldn't do anything at all :)

    They're large files, so maybe you exceeded a limit on mediafire.
    If you're running the server yourself, why not run a webserver as well?

    I'm guessing the file:// isn't supported.
    If you're only interested in it for solo use, which you must be with that configuration, install a lightweight webserver. Then you can point at http://localhost

    You might try this first:
    file:///C:/ and so on, instead of localhost. It might work.
    Localhost is an alias for 127.0.0.1, after all, so it doesn't belong with file://
    But I doubt it'll work.

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

    IncendiaDrakon

    I'm not sure if I was clear, I meant I put the .ogg files in my .spoutcraft\spout\audiocache\BiomeSound folder. After that ALL sounds worked immediately. I don't run a webserver because the machine I use for the server can only really handle the Minecraft server, plus I don't want to exceed my monthly bandwidth.
     
  18. Offline

    Laurina

    oh, well, yes - then it will work :)
     
  19. Offline

    Rocky

    Is there any way you can Write out a bit of documentation for setting this up with a webserver? It will probably scare away alot of administrators, including myself (earlier today) because i couldn't skim over and see how complicated or a bit of an instruction on getting it setup.
     
  20. Offline

    Chuckster

    Ok well now i uploaded it to media fire and i get this
    Code:
    00:35:35 [SEVERE] Could not pass event PLAYER_MOVE to BiomeSound
    java.lang.UnsupportedOperationException: All audio files must be ogg vorbis, wav, or midi type
        at org.getspout.spout.sound.SimpleSoundManager.playCustomFile(SimpleSoundManager.java:224)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomSoundEffect(SimpleSoundManager.java:200)
        at net.laurina.BiomeSound.BiomeSoundListener.onPlayerMove(BiomeSoundListener.java:190)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:491)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    my config is this
    Code:
    sound:
        desert: http://www.mediafire.com/?ppr6spnsdjdzmlw
        range: 45
        forest:
            night: http://www.mediafire.com/?i7j0cfzwfj4mn43
            day: http://www.mediafire.com/?0mtvd6itgx7j115
        boat: http://www.mediafire.com/?92ps0vd1udvd0zxrowing.ogg
        rainforest:
            night: http://www.mediafire.com/?7c0cbjky01wzrt7
            day: http://www.mediafire.com/?zi19xidp3cpjm9a
        nodeseparation: 20
        open:
            night: http://www.mediafire.com/?yhu8y9htbl6cg75
            day: http://www.mediafire.com/?7gzwxu6r5kkcz50
        lava: http://www.mediafire.com/?p822brg1zhw1ijg
        volume: 70
        train: http://www.mediafire.com/?xgi8zwn3oueebe9train.ogg
        arctic: file://localhost/Users/bpmh/Downloads/biomesound_effects/arcticwind.ogg
        nether: http://www.mediafire.com/?nxqddbjgas1vg1f
        underground: http://www.mediafire.com/?8buf8sbszn8oc9wunderground.ogg
        swamp:
            night: http://www.mediafire.com/?runwp49ay421u8b
            day: http://www.mediafire.com/?h2knkd6inb554yy
    
     
  21. Offline

    Rocky

    Okay, so i setup the plugin with a webserver on the same machine. I tried http:/localhost/train.ogg (example)
    and it didn't actually send the files to the client, i'm using 1.01 spoutclient, and the latest spout plugin for craftbukkit, which is build 1000 btw.

    Maybe i'm doing something wrong? Like stated above, the plugin and client cooperates when the files are inside of the AudioCache folder.


    EDIT: Nevermind, right after this post it hit me, i didn't have my webserver's port open, i had just installed OpenWrt on my router and forgot to write the configuration in the firewall for it, Thanks for the great work on this plugin!
     
  22. Offline

    Laurina

    I see you've left some file:// stuff still in there. Also, in some cases, you forgot to remove filename.ogg from the end of the mediafire links.

    I just assumed people would use whatever web hosting they have access to. Instructions on how to set up a webserver depends entirely on the webserver software, and is usually included with it in some form.
    For a very simple one, try http://code.google.com/p/mongoose/

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

    Rocky

    Interesting software you posted, personally i got it all setup, its just for the average user, that doesn't like to setup most things in the first place for their server (Mysql for example) then the average user wouldn't want to have to "figure out" so to speak how to get the files working, if there's rules to how its supposed to be setup in the config.

    I love the plugin, the work you've done and what you have provided for support, but all im saying is that maybe it might be better for you and the people that come across this plugin to have a bit more information regarding how the configuration should be setup. Not the webserver. Maybe simple rules that seem "implied" to you, or to most people but not to all.

    Just a thought=P
     
  24. Offline

    Chuckster

    im getting the same error even though i fixed my config
    Code:
    sound:
        desert: http://www.mediafire.com/?ppr6spnsdjdzmlw
        range: 45
        forest:
            night: http://www.mediafire.com/?i7j0cfzwfj4mn43
            day: http://www.mediafire.com/?0mtvd6itgx7j115
        boat: http://www.mediafire.com/?92ps0vd1udvd0zx
        rainforest:
            night: http://www.mediafire.com/?7c0cbjky01wzrt7
            day: http://www.mediafire.com/?zi19xidp3cpjm9a
        nodeseparation: 20
        open:
            night: http://www.mediafire.com/?yhu8y9htbl6cg75
            day: http://www.mediafire.com/?7gzwxu6r5kkcz50
        lava: http://www.mediafire.com/?p822brg1zhw1ijg
        volume: 70
        train: http://www.mediafire.com/?xgi8zwn3oueebe9
        arctic: http://www.mediafire.com/?4p30ncq2mo7e3cg
        nether: http://www.mediafire.com/?nxqddbjgas1vg1f
        underground: http://www.mediafire.com/?8buf8sbszn8oc9w
        swamp:
            night: http://www.mediafire.com/?runwp49ay421u8b
            day: http://www.mediafire.com/?h2knkd6inb554yy
     
  25. Offline

    Me4502

    you should put somewhere you recommend dropbox

    TO OTHERS

    if youd like a dropbox accout get me to refer you and youll get extra 250mb free, pm me
     
  26. Offline

    Laurina

    Dropbox is nice, but there's a download limit. When that's reached, the files become unavailable for a while.
    If you don't have many users all downloading the sounds at the same time, I guess dropbox would work fine :)
     
  27. Offline

    BioRage

    Okay, well I've been reading about Spout a lot, so I think I will ask you the question.

    1. So, your plugin offer's <certain area day> for example, for user's to download the music through the server or where ever it hosted, dropbox, www.xyz.com, etc.

    2. So does this means each time the player enters <Desert or day> it trigger's a download? or once the download, leave, and join two days later, it will be as if they have already downloaded it from before..

    3. If a song, example is 4 minutes long, will it repeatedly play? or will it be the same as default minecraft music (cease after it's played, and continue later)

    4. Does this replace minecraft music? Or will it just be in a playlist loop?

    Thanks for looking @ my questions, this plugin looks great, keep up the good work
     
  28. Offline

    Koutacles

    Very simple multiworld support would make this very awesome. Just a list of worlds in the config file that this happens in, so for example my constant-night dungeon world would have a sinister soundtrack, while my normal server would be unaffected.
     
  29. Offline

    Laurina

    1. The plugin instructs the client-side Spout/BukkitContrib mod to download from the specified webservers.

    2. When the player has moved <nodeseparation> distance in blocks from the last location where a sound played, another one will play. Which one it is will depend on factors such and biome and time of day. The sound has a location and a falloff <range>. Files are cached indefinitely by the clients, who only download them again if they have deleted the cached files.

    3. If the player never moves sufficiently away from the location of a sound, no new sound will play. The playing track ends.

    4. This plugin is not meant for music, but rather ambient soundscapes (i.e. birds singing, crickets chirping). You may of course use it with music, but I doubt you'd like the effect. This replaces nothing whatsoever, and there's no playlist or loop.
     
  30. Offline

    BioRage


    Thanks for the reply, I have ambient music, that I would like to integrate, and try it out, thanks!
     
  31. Offline

    5slammer

    Looking for some good Zelda music for my server! This is going to be AWESOME =3

    cant find much in .ogg tho D=

    if you find any link me the download plz =D
     

Share This Page