[MECH/MISC] Seasons - Snow Snow Snow Edition. I can see it ! [1.5.2]

Discussion in 'Archived: Plugin Releases' started by rominos2, Apr 29, 2011.

  1. Offline

    rominos2

    Seasons - The Great Weather Plugin
    Version: v2.0.3 (Snow Snow Snow Edition)

    This plugin is now on BukkitDev
    Still want more ?
    Take a look at the SeasonsPlusPlus plugin on BukkitDev
    Metrics Stats (Thanks to you) :​
    [​IMG]
    Old Thread
    Old Thread


    Add differents seasons to your server.
    Change the duration of Seasons using the in-game time in days
    Each season has its own weather probability and its own duration
    Just put the Jar in yout plugin Folder and let's go !
    Using Spout (optional), you can put only snow on snowSeasons (configurable)

    Features:
    • Add as many seasons you want with properties
    • Insert special Days that will be anounced
    • Change the duration of each season and of each weather
    • Save your current season when you stop the server or disable the plugin
    • Change season and weather in live with commands
    • Able to stop Snow and Ice Regen
    • Added to Minecraft UpToDate
    • You can set Textures packs for each seasons with Spout (optional)
    Download Links :
    Seasons v1.6.2


    An Explaining Video by Specops343 (Version 1.1) (Outdated):


    Thanks to him for this great Video

    Commands & Permissions :
    Commands & Permissions (open)

    Commands :
    For Players :
    • /season - See the current season and the remaining days
    • /setseason [shortname] - Change the current season (Permissions)
    • /sweather [sun|rain|thunder] - Change the current weather (Permissions)
    For Console :
    • /season [world] - See the current season and the remaining days
    • /setseason [world] [shortname] - Change the current season (Permissions)
    • /sweather [world] [sun|rain|thunder] - Change the current weather (Permissions)
    Permissions :
    • /sweather : seasons.weather
    • /setseason : seasons.change
    • Prevent texture changes : seasons.textures.exempt


    TODO :
    • World Edit Region Optional Limit for a season
    Known Issues :
    • Have NullPointerException on nonSpout clients on snow season
    Changelog:
    Version 1.6.2 (04-09-2011)
    • Add a snow config on Seasons to put only snow when raining (Spout)
    • Big code cleaning to avoid NullPointerException errors
    Changelog (open)

    Version 1.6.1 (02-09-2011)
    • Add a permission node seasons.textures.exempt to prevent texture changes
    Version 1.6 - Spout Edition(02-09-2011)
    • Add in-build Permissions system support
    • Fix the NullPointerException when no SpecialDays
    • Add Spout support with a texture pack for each seasons (optional)
    Version 1.5.2(22-08-2011)
    • Add Ice Regen config
    • Fix the problem with restarting from begenning
    • Updated to 1060 (new methods)
    • A bit of code cleaning
    Version 1.5.1(21-07-2011)
    • OutOfBounds Error has been banished to another universe for good
    Version 1.5 - Mighty Yaml(20-07-2011)
    • Properties and Seasons Properties now in ONE .yml config
    • Save of seasons are now in ONE .do-noy-touch file
    • Properties are not loading for Nether worlds (set active to false, color to Aqua and Log to true)
    • Should really fix the load of special Worlds
    • Add of shortnames for each season
    • Change /setseason [number] to /setseason [shortname]
    • Beginning of Version's Name because Edition named are a lot funnier ^^
    Version 1.4.2(03-07-2011)
    • Correcting the OutOfBounds errors with special worlds
    Version 1.4.1(27-06-2011)
    • Fix a scheduler issues when disabling Seasons
    Version 1.4(16-06-2011)
    • Add Snow Regen control
    Version 1.3.5(13-06-2011)
    • Fix the OutOfBounds error (because of blank lines)
    • You can now add blank lines to your .seasons files
    Version 1.3.4(03-06-2011)
    • Fixing the console use command by adding an beautiful message
    • Should Fix the GetDayListener Error on Weather_Change
    Version 1.3.3(02-06-2011)
    • Fix a bug with double numbers
    Version 1.3.2(01-06-2011)
    • Compiled for build 818
    • Fix another bug in /season on special Day (shouldn't be another bug on it ^^)
    Version 1.3.1(27-05-2011)
    • Fix a bug in /season on a special Day
    Version 1.3(26-05-2011)
    • Agin Try to fix the Double displays
    • Add a different SeasonLenght and MeteoLength for each Season
    • Suppression of the SeasonTime and MeteoTime
    • Add a configurable Resolution
    Version 1.2.4(22-05-2011)
    • Fixing the LoadSave Error
    Version 1.2.3(18-05-2011 too)
    • Correct /setseason because it's wasn't doing what it should do ^^
    • Modify /weather -> /sweather because of conflict between plugins
    Version 1.2.2(18-05-2011)
    • /season return one number after the comma
    • No more /rain /thunder /storm --> Now /weather [sun|rain|thunder]
    • Log options in the configs to active a log on Seasons Change and players' commands
    Version 1.2.1(12-05-2011)
    • Fix the Nag Author Error of the build 766
    Version 1.2(07-05-2011)
    • MultiWorld Support with possibility to not active seasons
    • Time Resolution to 0.1
    • Command to change Season (Permissions)
    • Configurable texts to display
    Version 1.1(02-05-2011)
    • Time Support now in-game with days
    • Names for seasons
    • /seasons to see the current seasons and the number of remaining days
    • Permissions support for the two next commands
    • /rain or /storm to force weather to rain
    • /thunder to force rain and lightning
    • Display the Seasons Changes
    Version 1.0(20-04-2011)
    • Release of this awesome plugin with a lot of enjoyable features !


     
  2. Offline

    rominos2

    Ok, will modify it
    Today on MutliWord .... not easy at all ^^
     
    bellardie likes this.
  3. Offline

    Gusang

    Man, i have a problem :(!
    I installed your plugin, and today i entered in my server, and the season is Wet or Dry, and the colors are dead! I passed the 30 days so many times, and stay Wet or Dry! How i put the season that all things is more "colorfull" some command? i tryed too remove the plugin, but dont back normal.

    (Sorry about the bad english)
     
  4. Offline

    rominos2

    Sorry but my plugin doesn't do nothing with colors
    Rain set the world darker but It's not the Seasons plugin fault if colors are "dead"
    And first what do you want to say by "dead" ?
     
    bellardie likes this.
  5. Offline

    Gusang

    Example:
    The grass and trees, with your plugin the tone more dark, look:

    Normal :

    [​IMG]

    With the plugin:

    [​IMG]


    I want put the normal way, and i tryed delete your plugin, but don't come to normal...
     
  6. Offline

    ultimak

    The plugin cant do that, what you are looking at is grass color differences due to the different biomes minecraft has.
     
  7. Offline

    Gusang

    Yes, but this happened after i installed the plugin
     
  8. Offline

    rominos2

    I made this plugin and I can assure you it doesn't had effects on biome and colors
    Trust Me !
     
    bellardie likes this.
  9. Offline

    Gusang

    Oh, ok!
    your plugin is aewsome. :D
    About Bioma, this change with the time? so i will play, and some day it will get normal?

    Thanks, Gusang
     
  10. Offline

    Zarius

    @rominos2

    Eagerly awaiting next version - my players are complaining that the rain last too long so I'd like to configure shorter weather cycles (I'd probably set the weather to change twice a day rather than just the current once a day).
     
  11. Offline

    rominos2

    Right now, I have added MultiWorld and a configuration resolution to 0,1
    Now I am completing multiWorld and add some configurable text.
    Also added Seasons change with command
    Version 1.2 soon !
     
    bellardie likes this.
  12. Offline

    Sphax

    Is it possible to customize the color for each name of seasons and be able to customize the season message ?

    Thanks :)
     
  13. Offline

    rominos2

    --- Release of the Version 1.2---
    See changelog with awesome changes
    New types of files
    You should erase the older to put new ones
    Also added to Minecraft UpToDate plugin

    --> Sphax The Seasons message if now configurable but not the Seasons color
    But each world can have its proper color for messages
     
    bellardie likes this.
  14. Offline

    Sphax

    I just realise that's impossible (for the moment ?) to set a "winter" season where everything would be covered by snow... and in "spring" season, all the snow in other biome than tundra would melting up.
    Is this possible ?
     
  15. Offline

    rominos2

    Don't know right now
    But perhapse could change biome in Chunk files for a while, I don't know
     
    Kartus and bellardie like this.
  16. Offline

    4am

    Not possible. Biomes aren't stored in chunk data; they are "generated" by the world seed value on the fly. Therefore, you will never be able to modify the biomes and therefore change the coloring unless you change the world seed, and that will be largely random. Unless Mojang decides to generate the biome data and then store it with the chunks so it can be later modified on a block-column by block-column basis, biomes are inherit in your map and are stuck that way forever.

    Unfortunately that means no snow storms anywhere you like.
     
  17. Offline

    thepackett

    Wait, what about the biome terrain mod? i know it affects it when it's spawning however it also completely ignores whatever seed the world is using. maybe with a little bit of modification this could be used with the biome terrain mod to change biomes world wide? just an idea. I'm no genius when it comes to how biomes work but it may be worth looking into.
     
  18. Offline

    Zarius

    Whilst the actual snowing may be based on the biome the snow covered blocks don't seem to be. I've managed to somehow corrupt my world in a such a way that snow shows up on top of sand blocks in the desert and ice forms on large swaths of water that are not snow biome, haven't experimented yet but the snow block is id 78 - what happens if you place this on the ground at random during a season with snow enabled? This snow wasn't automatically melting so you'd need to keep a track of it and melt it manually in the "summer" (any season without snow enabled). Of course this is a lot of changes to the world and a biome managed solution would be best if possible.
     
  19. Offline

    4am

    Snow blocks can be created anywhere. Not sure if they melt when placed where they aren't supposed to be. (since MC assumes snow will only ever been in snow biome "naturally" they probably don't have a decay like leaves...not sure really) but weather is based on biome, which is why rain only turns to snow where the terrain generator placed snow.

    I think this should be changed, and I've posted on GetSatisfaction about it.
     
  20. Offline

    G1R Productions

    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
    22:19:30 [SEVERE] Nag author: 'rominos2' of 'Seasons' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
     
  21. Offline

    Zarius

    Yeah, they definitely weren't melting. I was thinking in absence of the ability to specify snow or rain that one could slowly generate random snow blocks around the landscape (say within a set distance of occupied chunks) to make it look cold/snowy during the winter season, then remove any of these blocks that are left once the season finishes.

    Actually this sounds like something that iGrow does (except for the removing part) - perhaps a cool feature for iGrow would be to be able to hook into seasons to determine which season it currently is and grow things according to season (or accelerate/decelerate growth).

    @rominos2
    Would it be possible to hook into your plugin and determine what season it is?
     
  22. Offline

    rominos2

    --> G1R
    Is it the 766 build ?
    I don't had look at that
    Perhaps this afternoon

    EDIT :
    I tested and there no problems with 766
    Please explain more what did you do and how

    --> Zarius
    Don't know to make handlers but could be a nice idea
     
    bellardie likes this.
  23. Offline

    Nigel

    hey there iam another one useing propertime and was just wondering if your working on a workaround maby based on servertime or localtime or somthing (as you see I am not a programmer) . i think ill wait on your plugin for now as longer days is more important to my users than seasons , but otherwise this plugin looks great and thanks for the hard work.
     
  24. Offline

    rominos2

    My work is based on DayTime in Minecraft
    The time should work with ProperTime
    I not have time this week to test but normally there's no problem with properTime, ... normally ^^
     
    bellardie likes this.
  25. Offline

    4am

    @rominos2 in response to your inquiry on my profile:

    I haven't been over the code myself, but from the information I've gathered it is based on world seed and location as part of the client's rendering. So, for example, when a chunk loads from the disk (or SMP server) the client looks at the global position of the columns in the chunk (x,z coordiantes) and feeds those into a sort of "world.getBiome(x,z)" function, which will return the biome type based on the location. Because computers use pseudorandom generators, the same seed will always generate the same biome pattern across the map at the same coordinates. It likely builds this into an array in memory and when the blocks of the chunk are actually rendered, it simply does a quick lookup in the chunk's table when determing how to shift the texture colors, or which type of weather to display.

    Because this mapping of the biome only exists in the client's RAM, servers have no way to control it.
    The only possible hack is for an SMP server to send a custom world seed at login (which is the only time the client accepts this data), and the only thing you can accomplish with that is to force the client to render a biome map based on the custom seed; you'd have no per-block or even per-chunk control, because sending a second login packet locks the client on the loading screen.

    Check out my link to GetSatisfaction, I've suggested that instead of rendering the biome mapping at runtime, the map data should store it, to allow customization post-terrain generation. This is the functionality that would be needed to allow snow to be placed in specific areas of the map, since it is based off the biomes. It would certainly be a boon to Seasons as you could just link into the chunk-load fucntions and feed custom values as users load chunks based on the current season - and this wouldn't even necessarily save to the map files because you'd be altering the data "in transit", so if your plugin is ever disabled the biomes return to their original generated state.
    One catch I can see is that if the user is not moving and loading new chunks, there isn't a way to force the client to change the biome data (unless the data is sent to the client in the same way block change events are sent). This would mean changing seasons would require knowing which chunks a user can see and pushing a change event for every column of blocks to keep their visible area sync'd with the biome change, or else the user would need to be moving across the map to witness biome changes happening on-the-fly.
     
  26. Offline

    rominos2

    Ok I understand
    It looks complicated ^^
     
    bellardie likes this.
  27. Offline

    Wedhro

    Is it possible to trigger only a part of rain/snow effects i.e. make the sky dark (and maybe hear feeble rumbles) but not let rain/snow start? This could happen before and after actual precipitations to make them more believable, in vanilla MC they come and go too suddenly.
    I bet it's client-side, but it can't hurt to ask.
     
  28. Offline

    rominos2

    Too coplicated to do.
    To make the sky dark, two possibilites :
    1) As you said, the client part
    2) Play with light with day/dawn and so on to make the sky darker
     
    bellardie likes this.
  29. Offline

    Zarius

    Before darkening the sky, perhaps save the current time and set the time to just before dusk. The sky should darken naturally then we just hold the time at a set dark point with a timer and when finished set the time back to currentTime + elapsedTime.
     
  30. Offline

    rominos2

    Yes, should work
    I will see that during this Weekend
    Have some stuides right now
     
    bellardie likes this.
  31. Offline

    G1R Productions

    Can either go ingame or console and enter command "reload" which reloads all the plugins on the server.
     

Share This Page