[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

    rtcabooservb

    :confused: So if we don't have a site, no sounds for us?
     
  3. Offline

    Koutacles

    @rtcabooservb That is correct. You could use something like DropBox which has public URLs (I think), but if you have a heavy traffic server then you'll break the bandwidth easy and it will stop working.
     
  4. Offline

    rtcabooservb

    ^_^ Going to have to purchase a website later in the future then. Bummer I can't use it now.
     
  5. Offline

    Moe041991

  6. Offline

    KingPin

    for those without a webserver use this as your config :

    Code:
    sound:
        desert: http:/www.kpsden.com/mine/bsound/desertwind.ogg
        range: 45
        forest:
            night: http:/www.kpsden.com/mine/bsound/forest_night.ogg
            day: http:/www.kpsden.com/mine/bsound/forest_day.ogg
        boat: http:/www.kpsden.com/mine/bsound/rowing.ogg
        rainforest:
            night: http:/www.kpsden.com/mine/bsound/rainforest_night.ogg
            day: http:/www.kpsden.com/mine/bsound/rainforest_day.ogg
        nodeseparation: 20
        open:
            night: http:/www.kpsden.com/mine/bsound/nighttime.ogg
            day: http:/www.kpsden.com/mine/bsound/daytime.ogg
        volume: 70
        train: http:/www.kpsden.com/mine/bsound/train.ogg
        arctic: http:/www.kpsden.com/mine/bsound/arcticwind.ogg
        nether: http:/www.kpsden.com/mine/bsound/nether.ogg
        underground: http:/www.kpsden.com/mine/bsound/underground.ogg
        swamp:
            night: http:/www.kpsden.com/mine/bsound/swamp_night.ogg
            day: http:/www.kpsden.com/mine/bsound/swamp_day.ogg
        lava: http:/www.kpsden.com/mine/bsound/lava.ogg
     
  7. Offline

    GameCharmer

    Excellent mod! May I make a few suggestions?

    1) Continue to use a default config file like usual, but add optional config files for different worlds. This way, you can different sounds on different worlds.
    2) Add a generic tag like open for the nether. Grab one of those hour long "scary Halloween" tracks and load it up!
    3) Looping would be nice, but I don't know if the system has a way to determine if a track ends. Would it be possible to allow a user to enter a time value (in seconds for ease of programming) so the local client would know when to replay the track? Multiply seconds value by 20, count ticks, then reissue the command?

    Thanks for the awesome mod!
     
  8. Offline

    Laurina

  9. Offline

    yakasuki

    can we use media fire?
     
  10. Offline

    Laurina

    You're welcome :)
    1) A good idea. I'll look into it when I find the time.
    2) Nether already has only one track, which is generic. Perhaps what you mean is a background music track. This would work, but background music cuts off after a while; something like 15 minutes, though I haven't timed it exactly. Also, I haven't felt the need so far to include music in this plugin, as BukkitContribEssentials has performed well in that regard.
    3) Looping is a problem. The system doesn't have a way of determining when a track ends. Your timing idea would work in principle, though ANY server lag would throw the timing off. This could get quite ugly over the course of 10+ minutes.
     
  11. Offline

    Moe041991

    prolly not. Try dropbox instead.
     
  12. Offline

    yakasuki

    do i have to pay for dropbox?
     
  13. Offline

    Moe041991

    nope. there is a free membership with up to 2 Gigs of space.
     
  14. Offline

    yakasuki

    :D thx for telling meh ppl tell me it cost 15 bucks a month but what your telling me is there wrong so ill try it out XD
     
  15. Offline

    Emperor_Face

    my config~
    Code:
    sound:
        desert: http://dl.dropbox.com/u/34449078/desertwind.ogg
        range: 45
        forest:
            night: http://dl.dropbox.com/u/34449078/forest_night.ogg
            day: http://dl.dropbox.com/u/34449078/forest_day.ogg
        boat: http://dl.dropbox.com/u/34449078/rowing.ogg
        rainforest:
            night: http://dl.dropbox.com/u/34449078/rainforest_night.ogg
            day: http://dl.dropbox.com/u/34449078/rainforest_day.ogg
        nodeseparation: 20
        open:
            night: http://dl.dropbox.com/u/34449078/nighttime.ogg
            day: http://dl.dropbox.com/u/34449078/daytime.ogg
        lava: http://dl.dropbox.com/u/34449078/lava.ogg
        volume: 70
        train: http://dl.dropbox.com/u/34449078/train.ogg
        arctic: http://dl.dropbox.com/u/34449078/arcticwind.ogg
        nether: http://dl.dropbox.com/u/34449078/nether.ogg
        underground: http://dl.dropbox.com/u/34449078/underground.ogg
        swamp:
            night: http://dl.dropbox.com/u/34449078/swamp_night.ogg
            day: http://dl.dropbox.com/u/34449078/swamp_day.ogg
    Running spout build 58
    Running BiomeSound_Spout v1.1

    my pile of errors that would not fit in last post.
    Code:
    2011-08-08 21:21:38 [SEVERE] Player: Admiral_Face was not properly updated during login!
    2011-08-08 21:21:40 [SEVERE] Player: Admiral_Face was not properly updated during login!
    2011-08-08 21:22:33 [SEVERE] Player: Admiral_Face was not properly updated during login!
    2011-08-08 21:22:33 [SEVERE] Could not pass event PLAYER_MOVE to BiomeSound
    java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
        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:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:165)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:526)
        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:86)
        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)
    2011-08-08 21:22:33 [SEVERE] Could not pass event PLAYER_MOVE to Regios
    java.lang.NullPointerException
        at me.Adamki11s.Regios.RegiosPlayerListener.onPlayerMove(RegiosPlayerListener.java:738)
        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:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:165)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:526)
        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:86)
        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)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  16. Offline

    GameCharmer

    The lag would throw things off. I know there are things that track lag, but I don't know what type of overhead tracking overhead would cause.

    Regardless, looping on time or a little late is better than not looping at all, right? If lag is an issue, and your track is 300 seconds long, just set it to 280 or something. you might wind up with overlap, but who knows...

    Bah...
     
  17. Offline

    Laurina

    Code:
    [SEVERE] Player: Admiral_Face was not properly updated during login!
    That suggests you're having a problem with Spout rather than this plugin. Or that you're using the BukkitContrib version of the plugin with Spout or vice-versa.
    Also, make sure you don't have both bukkitcontrib.jar and spout.jar in your plugins folder at the same time. Check that you don't have both versions of the plugin at the same time, too.
    Code:
    java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    This claims my code is casting from a bukkitcontrib to spout, which it's not.
    I am casting from org.bukkit.entity.Player to org.getspout.spoutapi.player.SpoutPlayer
    So, I think something is off with your installation.
     
  18. Offline

    Stales89

    This was working for me a few days ago...
    No all of a sudden I am getting nothing. No sounds. It makes no sense. I literally played for a bit, all working. Logged out. Went to bed. Woke up, loaded it up... NOTHING.

    Any ideas?
     
  19. Offline

    Laurina

    No error messages in the server console?
     
  20. Offline

    Stales89

    Nope. Nothing.
    Says BiomeSounds activated or something, then carries on loading other plugins.
     
  21. Offline

    Laurina

    This may sound silly, but check minecraft's sound volume settings. Errors can cause it to set itself to off.
    Also, verify that you do have the Spout/BukkitContrib client mod installed.
     
  22. Offline

    Dark_Balor

    Mmh seems that the user have Spout AND BukkitContrib installed... He have uninstall BukkitContrib, else like you see there is a conflict between them.

    That the problem with Spout/BukkitContrib, since they changed the name, if a plugin was not updated, and other yes ... conflicts happen.
     
  23. Offline

    Laurina

    True, especially if one of the old BukkitContrib plugins auto-downloads BukkitContrib.
     
  24. Offline

    Stales89

    Yup got both Spout plugin and SputLauncher as everything else works. Volume is on 100% on sound and music.

    Seriously it was a case of turn it off, log back in and it stopped. I even have all the sounds cached in the spoutcraft directory so I know it downloaded them from my server...
     
  25. Offline

    Laurina

    Strange. I don't know what's going on, so I'm fishing randomly. Try deleting the cached files.
    Note that on occasion, PaulsCode crashes, rendering either all sound or just the ones coming through Spout, inactive. A restart of the minecraft client is needed then. Just in case you never actually closed the client fully.
     
  26. Offline

    Stales89

    Will do. Try joining my server and see if it works for you?
     
  27. Offline

    staxx6

    A Command to stop the sounds if the players doesn't like the sounds?
     
  28. Offline

    Thyme676

    Are multiworld or permissions in the works for this plugin? It would really bump it up a notch. So say, I could have spacey sounds etc. Just even being able to choose which of the sounds you could use on each world would be awesome. Great plugin!
     
  29. Hey, sorry if this has been asked before, but because i host the server on my own computer, I set the path to the files as C:/Users/......./plugins/BiomeSound/sounds.ogg

    I can't hear any sounds at all, where should I put the links to if it is on my own computer??
     
  30. Offline

    kwijy

    Awesome idea for a plugin. It's really improving the depth of immersion from the game.

    Some ideas:

    .) it sounds a little strange having biome sounds while indoors, is it possible to affect the sound's volume/filter similarly to how the rain is implemented?
    .) would it be possible to have a zone attribute that fades out the biome sound the higher/lower you go, regardless of biome? as you gain height, it starts fading in an alternate wind sample.
    .) volume per sound biome option
    .) also an in-game /command to turn biome sounds on/off *edit

    Cheers again for the nice plugin.
     
  31. Offline

    fatmarley

    Have i missed something?
    I installed Spout on my server. then I installed biomesounds, uploaded the files to my webserver...tested the links (all working)
    Downloaded the Spout-client jar, ran it and connected. and nothing, no errors in cosole, no cached files (though im not sure weere to look) and no ambiance.
     

Share This Page