[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

    Ho yes it happens in a Seasons-inactive world, isn't it ?

    Waiting for your answer to release
    Don't want to release something fixing a non error
     
    bellardie likes this.
  3. Offline

    Jaronoid

    I'm fairly certain this isn't possible, being that the biome information controls what precipitates...
     
  4. Offline

    Aramillio


    let me check that really quickly.

    however, i do get an unhandled exception error in my console when using the /seasons command

    will post again when checked

    ok so here is the error i get when using the /season

    2011-06-03 14:16:04 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'season' in plugin Seasons v1.3.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.RangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at org.rominos2.Seasons.Seasons.getDayListener(Seasons.java:193)
    at org.rominos2.Seasons.Seasons.onCommand(Seasons.java:114)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more




    and here is the error when the weather changes in a non-nether world. seasons is set to true. weather changed to rain.

    2011-06-03 14:16:24 [SEVERE] Could not pass event WEATHER_CHANGE to Seasons
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.RangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at org.rominos2.Seasons.Seasons.getDayListener(Seasons.java:193)
    at org.rominos2.Seasons.SeasonsWeatherListener.onWeatherChange(SeasonsWeatherListener.java:14)
    at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.java:705)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at org.bukkit.craftbukkit.CraftWorld.setStorm(CraftWorld.java:568)
    at com.earth2me.essentials.commands.Commandweather.run(Commandweather.java:39)
    at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:45)
    at com.earth2me.essentials.Essentials.onCommand(Essentials.java:569)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    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 14, 2016
  5. Offline

    rominos2

    --- Release of Version 1.3.4 ---
    Fixing the Console-Commands-Use
    Try to fix the Weather_Change Error
     
    Aramillio likes this.
  6. Offline

    TBleader

    [​IMG]
    All I did was change the : to ,'s, deleted the .do-not-touch, and started a fresh world. Along with update to the latest version of course. So what problem did I cause now?
     
  7. Offline

    rominos2

    You don't have replace all the : by , do you ?

    Do you have something like that ? :

    Season : 10 : 0.5 : 50 , 30 , 20

    ":" are here to separate
    - Name
    - Seasons's Length
    - Weather's Length
    - Percentages

    "," are here to separate the 3 differents values of percentages
     
    bellardie likes this.
  8. Offline

    TBleader

    Code:
    Fulla:10:0.4:0,80,20
    Odin:10:0.4:30,50,20
    Sól:10:0.4:100,0,0
    Rán:10:0.4:50,30,20
    Thor:10:0.4:20,5,75
    
    I kept the : to separate name, length and weather. Also, thanks on the comment of my awesome config. I decided to make it special. (I excluded the special days because they take up so much room)
     
  9. Offline

    rominos2

    Is it functionning now or is there still problems ?
     
    bellardie likes this.
  10. Offline

    a1rnub

    It's probably a nice plugin if you gave details on how to use it. It's not exactly easy to guess your way ahead to set the weather you want. What is the value for snow? What is the value for sun? What is the value for rain? And so on. There's no way to know unless YOU tell us. I can't seem to figure it out by myself.
     
  11. Offline

    Jaronoid

    It's explained in the sample file, though I agree, it's tough to decipher.
    No weather = Sun
    The number after this is Precipitation only (snow/rain)
    After that is Thunderstorm + Precipitation
    And they're all percentages.

    Quick question: How do I set this up so that it doesn't reset everytime my server is shut down and brought up? I run a private server for myself and a friend, and it's not constantly running, so every time I restart it, it goes back to the first day of the first season..

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

    rominos2

    It should not restart at the begining on server shut down
    Do you shut down your server with the "stop" command ?
    If yes, it saves the current season and the current day in a .do-not-touch file

    --> a1rnub
    Yes everything is in the default config, just read the comentaries
     
    bellardie likes this.
  13. Offline

    TBleader

    There is still a problem..
    [​IMG]
     
  14. Offline

    Jaronoid

    Ah, no. I usually just close it. I suppose I'll start using the stop command. Thanks. ^m^
     
  15. Offline

    rominos2

    @TBleader
    Can you paste your seasons file ?
    As I see the error, it's still the seasons that are messing.

    @Jaronoid
    Yes, use the stop command
    It permit to disable every plugin one by one and mine only save on disable
     
    bellardie likes this.
  16. Offline

    TBleader

    Code:
    #Here is the template of a season with percentage of weather
    #Season Name:Season'sLength:WeatherLength:NoWeather , Rain/Snow , Rain/Snow+Thunder
    
    #Make sure it's 100% for each line
    
    #Each line correspond to a season
    
    
    #Wet Season
    Fulla:10:0.4:0,80,20
    -0:First Day of Fulla
    -1:Day of Gold
    -2:Day of Sisterhood
    -3:Day of Germination
    -4:Day of Rest
    -5:Day of Patience
    -6:Day of Hopeful Wishes
    -7:Day of Labouring
    -8:Day of a Bountiful Harvest
    -9:Last Day of Fulla
    
    #'Good' Season
    Odin:10:0.4:30,50,20
    -0:First Day of Odin
    -1:Day of Blessing
    -2:Day of Brotherhood
    -3:Day of Wisdom
    -4:Day of Rest
    -5:Day of Fatherhood
    -6:Day of the Asgard
    -7:Day of Sacrifices
    -8:Day of Prophecy
    -9:Last Day of Odin
    
    #Dry Season
    Sól:10:0.4:100,0,0
    -0:First Day of Sól
    -1:Day of Attestment
    -2:Day of Sisterhood
    -3:Day of Hard Labour
    -4:Day of Rest
    -5:Day of Bronze
    -6:Day of the Wolf
    -7:Day of Humidity
    -8:Day of the Scholar
    -9:Last Day of Sól
    
    #'Evil' Season
    Rán:10:0.4:50,30,20
    -0:First Day of Rán
    -1:Day of Darkness
    -2:Day of Sisterhood
    -3:Day of Theft
    -4:Day of Rest
    -5:Day of Arson
    -6:Day of Capture
    -7:Day of Torture
    -8:Day of Justice
    -9:Last day of Rán
    
    #Justice Season
    Thor:10:0.4:20,5,75
    -0:First Day of Thor
    -1:Day of Ragnarok
    -2:Day of Brotherhood
    -3:Day of Fierceness
    -4:Day of Rest
    -5:Day of the Valkyrie
    -6:Day of the Hammer
    -7:Day of Humanity
    -8:Day of Thunder
    -9:Last day of Thor
    
     
  17. Offline

    Elfsovereign

    Would the summer season melt ice/snow?
     
  18. Offline

    rominos2

    bellardie likes this.
  19. Offline

    42and19

    A biome change is possible after a map has been generated. I have seen it. Apparently it is a bug caused by improperly shutting a server down. It was not very pleasant, however. The lag was awful and forced me to do a server restore. Thankfully I backup my worlds every few days so we didn't loose much. Basically what happened was that nearly the area around our building sites turned to a tundra biome and so everything was freezing over. This may not have been a problem except that that world had an unusually high amount of water.
     
  20. Offline

    Amaroq

    I have run into a problem with this plugin, though I am not sure if I am the cause, or not.

    [​IMG]

    Any ideas? Is it an issue on my end?
     
    bellardie likes this.
  21. Offline

    rominos2

    It's a known issue.
    Your the second with this bug
    Let me the weekend to rest and I'll work on it monday
    I'll also update it to 860 ^^ (not very important as I see there are no special errors with this release)
     
    bellardie likes this.
  22. Offline

    rominos2

    @TBleader
    @Amaroq
    Ok I thind what's the problem for your problem
    It's because you put spaces between lines
    I'm going to fix it in 10-15 min
     
    bellardie likes this.
  23. Offline

    Qrox

    I edited the config file of groupmanager to disable some groups from using the 'sweather' command,
    but they can still use it.
     
  24. Offline

    rominos2

    --- Release of the Version 1.3.5 ---
    Fix the blank-lines OutOfBounds error
    Compiled for 860 too

    Have fun !

    @Qrox
    What's groupmanager ?
     
    bellardie likes this.
  25. Offline

    42and19

    awesome, everything seems to be working fine for me.
     
  26. Offline

    Qrox

    Well....known as 'permissions'
    I don't know why they can still use it.I gave 'seasons.*' permission to admins, and didn't type any letter of 'season' in normal user group permissions.
     
  27. Offline

    rominos2

    I just verified and tested it
    Players needs seasons.weather to change weather
    Can you give me more details that can help me
     
    bellardie likes this.
  28. Offline

    Qrox

    .....
    Forget it pls.
    I thought it's for user to get access to '/season' command...
    I should have been more careful reading your post : (
     
  29. Offline

    rominos2

    Yes /season is for everyone
    I thought it's was not necessary to put a permission to see that
    Perhaps in a next version if needed
     
    bellardie likes this.
  30. Offline

    TelephoneKiosk

    the seasons won't change it just stays on the same one forever.
     
  31. Offline

    rominos2

    More details ?
    Configs ?
     
    bellardie likes this.

Share This Page