Inactive [MECH] Long Summer Days v0.2 - Set how long day, night, sunrise, and sunset are [953]

Discussion in 'Inactive/Unsupported Plugins' started by Nightgunner5, Jul 4, 2011.

  1. Offline

    Nightgunner5

    Long Summer Days - Change how long day, night, sunrise, and sunset are:
    Version: v0.2

    The default is to make sunrise and sunset twice as long as normal and night half as long. Running a server with this plugin installed will automatically create a configuration file with instructions on how to edit it.

    Download - Source Code

    Features:
    • Plug and Play - You can get all the features without needing to touch a configuration file.
    • Simple - This plugin does exactly what it says it does and nothing else. There are no hidden features or configuration keys.
    • MultiWorld - Multiple worlds can exist simultaneously at different parts of the day, and even with different lengths for each part of the day.
    • Efficient - This is important for a plugin that runs on every tick.
    Changelog:
    Version 0.2
    • Fixed time offsets
    • Added support for world-specific settings
    Version 0.1
    • How could I possibly have changed something from a nonexistent previous release?
     
    zipron, ariley92 and M1sT3rM4n like this.
  2. Offline

    undeadmach1ne

    sounds awesome. i will try it tomorrow and report back.
     
  3. Offline

    Ratarn

    Umm... sorry, but i dont understand how to configure this plugin?! :eek:
    Maybe its because English is not my Motherlanguage?! :p
    Code:
    # Multipliers change how long each part of a day is. A higher
    # multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    
    worlds:
        always_daytime:
            daytime: 5.0
            sunset: 2.5
            nighttime: 0.0
            sunrise: 2.5
    multipliers:
        daytime: 1.0
        sunset: 2.0
        nighttime: 0.5
        sunrise: 2.0
    Is "always_daytime" the world? For what is "multipliers:"?

    is this the right syntax for 2 worlds (one 1/3 night, 2/3 day, the other one always day)?:

    Code:
    worlds:
        world1:
            daytime: 1.0
            sunset: 2.0
            nighttime: 0.5
            sunrise: 2.0
        world2:
    
            daytime: 5.0
            sunset: 2.5
            nighttime: 0.0
            sunrise: 2.5
    multipliers:
        daytime: 1.0
        sunset: 2.0
        nighttime: 0.5
        sunrise: 2.0
     
  4. Offline

    Nightgunner5

    Yes, you did that right. On world1, sunrise and sunset will last about 3 minutes each (2 * 1.5), night will last about 3 1/2 minutes (7 / 2), and daytime will last 10 minutes (normal). world2 will have 50 minutes of daytime, sunrise and sunset will be about 3 3/4 minutes each, and night will be skipped completely.
     
  5. Offline

    Pierce de JOng

    love this plugin
     
    Nightgunner5 likes this.
  6. Offline

    ir0nfist

    Thank you for taking the time to code this. Been looking for an updated plugin with such an effect and had many people ask about it also. One more issue ticked off the list. Appreciate it man.
     
    Nightgunner5 likes this.
  7. Offline

    frigaardj

    Hi, got this plugin today on 953.
    All worked great in terms of the days and so on however I've been getting a bug that meant that when this plugin is installed repeaters don't work at all. I have removed the plugin and they worked, and when i put it back the just don't transmit 'power' or redstone electricity or whatever.
    Any chance of a fix?
    thanks
     
  8. Offline

    Nightgunner5

    Are your repeaters built on redstone torches or redstone diodes? Torches use the world time to decide when to turn on or off, but diodes (AKA redstone repeaters) use ticks, which stay constant even with this plugin or any other time-changing plugin.
     
  9. Offline

    ariley92

    @Nightgunner5

    The default config is a bit confusing. I love the plugin and it's simplicity, but I don't understand if it works right off the bat.
    Code:
    # Multipliers change how long each part of a day is. A higher
    # multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    
    worlds:
        always_daytime:
            daytime: 5.0
            sunset: 2.5
            nighttime: 0.0
            sunrise: 2.5
    multipliers:
        daytime: 1.0
        sunset: 2.0
        nighttime: 0.5
        sunrise: 2.0
    That's what's in the default config. The name of my main map is simply "world." Does that mean that this plugin is not affecting the time on my world yet, until I create a subcategory under "world:"? If so, where in the config file do I do that?
     
  10. Offline

    Nightgunner5

    "multipliers" is the default, so if your world is not called always_daytime, it will have normal day length, 2x sunrise and sunset, and half night length.
     
  11. Offline

    ariley92

    ah. got it. then, if I put in the name of my world into the config file, does it still take the multipliers into account?

    say i had this.
    Code:
    # Multipliers change how long each part of a day is. A higher
    # multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    
    worlds:
        world:
            daytime: 2.0
            sunset: 2.5
            nighttime: 1.0
            sunrise: 2.5
    multipliers:
        daytime: 1.0
        sunset: 2.0
        nighttime: 1.0
        sunrise: 2.0
    would my sunset and sunrise then be 5.0? or would the plugin ignore the multipliers and keep the sunset and sunrise at 2.5?

    sorry about all the questions. just getting some clarification. :D
     
  12. Offline

    Nightgunner5

    It either uses multipliers or worlds, depending on if you've defined the world in question. The sunset and sunrise in this case would be 2.5x their normal length.

    If you're up for writing a better explanation for the top of the file, I'd be happy to use it.
     
  13. Offline

    ariley92

    Sure, how about this?

    Code:
    # A higher multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    
    # "always_daytime" is an example world. You may
    # either input your own worlds instead of "always_daytime,"
    # or use the multipliers, which affect every world not listed under
    # "worlds:". Any world listed under "worlds:" will not be affected
    # by the multipliers.
    
    That would be more clear to me. If it doesn't make sense to you, hell, it's your plugin, don't use it! But I think the explanation at the top of the file should explain exactly how the heirarchical system works, and when "multipliers" are taken into account.


    By the way, the players on my server love this already. Especially since the last plugin we used to change the length of day also caused a noticeable decrease in server performance. Long Summer Days does not. Nice job.
     
    Nightgunner5 likes this.
  14. Noticed another weird bug with this. Sand and Gravel stop falling immediately when this is in use, they take anywhere from a few seconds to (yet to see it fall) to fall. Also, it's effect on redstone torches is no good. Good work, it's a simple interface and is no doubt useful, but too many side-effects for my tastes.
     
  15. Offline

    lolzrofl

    After installing this, sand and gravel don't fall and redstone diodes stop working. I like the plugin, but I uninstalled because of all the side-effects.
     
  16. Offline

    Nightgunner5

    Can you post your configuration file here? If you don't feel like doing that, are most of the numbers in it more or less than 1?

    The diodes stop working? Are you referring to torches as diodes or did I miss something in my testing?
     
  17. Offline

    undeadmach1ne

    ok i am a few days late reporting back on my tests. i use seasons mod and they dont work together. seasons was reporting season changes multiple times a second, and the weather or time never changed (that i could see). i tried messing around with the config of long summer days and didnt get any results. ill try again later because i would love to get this working on my server. is there anything i should try or any info (logs/recording etc) that would be of value to you?
     
  18. Offline

    lolzrofl

    I mean the diode blocks.
     
  19. Offline

    kahlilnc

    YOu should put on thread example config files for others to see.
     
  20. Offline

    AyrJr

    My water blocks are being affected, let's say it's taking A LOT longer for it spread.

    Code:
    # Multipliers change how long each part of a day is. A higher
    # multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    
    worlds:
        always_daytime:
            daytime: 5.0
            sunset: 2.5
            nighttime: 0.0
            sunrise: 2.5
    multipliers:
        daytime: 6.0
        sunset: 5.5
        nighttime: 5.0
        sunrise: 5.5
    
     
  21. Config file located below:

    Was shooting for an hour long day, 15 minute sunrise/sunset, and 30 minutes of night.

    Show Spoiler

    Code:
    # Multipliers change how long each part of a day is. A higher
    # multiplier means that that piece of the day will be longer.
    # A multiplier of 1 makes time pass at a normal rate. Setting
    # all multipliers to 72 makes Minecraft days take almost
    # exactly the same amount of time as real days.
    worlds:
        always_daytime:
            daytime: 5.0
            sunset: 2.5
            nighttime: 0.0
            sunrise: 2.5
    multipliers:
        daytime: 6.0
        sunset: 12.0
        nighttime: 3.0
        sunrise: 12.0
    


    Would love to see this configurable to rotating seasons, so that you could make the days/nights get longer/shorter.

    Including a random chance of a terraria styled 'blood moon' where it stays dark for an entire day cycle. Hell, and a full day of sun as a random or settable occurrence as well!
     
  22. Offline

    ir0nfist

    Hello again. I also began having issues with my redstone circuitry. Some switches I had built to react very quickly slowed reaction randomly making them unreliable. Upon removing the plugin, they again work properly. Just reporting my findings.
     
  23. Offline

    Nightgunner5

    It would probably take 5-6 times longer because time is moving at 1/5 to 1/6 of its normal speed.
    For you, it could be anywhere from 3 up to 12 times the normal delay. By the way, your current config makes sunrise and sunset last about 18 minutes (1.5 minutes is a multiplier of 1) and night last about 21 minutes (7 minutes is a multiplier of 1).

    I'll have to look into a way to make the time change slower without making entities react slower.

    A friend of mine in real life suggested that I should make a realistic version of this plugin that would get real time and date information from the server and then make sunrise and sunset happen at the times they would in real life that day. These are all great suggestions. I'll add them to my todo list.
     
  24. Offline

    Alesana

    Repeater doesn't work with this plugin. :S
     
  25. Offline

    dupsmckracken

    Water also starts to flow super slow.
     
  26. Offline

    Scizzr

    Yeah, the side effects really suck. Is it possible you could use another method for setting the time speed, such as keep a variable set to the time that it's supposed to be (user configured speed), then every few seconds do a /time [x] - type function? Just wondering.

    Otherwise, the plugin does what it says it does (even though it has its side effects).

    Thanks :)
     
  27. Offline

    glyth

    whats the norml day configeration look like so monster hunt well work?
     
  28. Offline

    buch

    As a lot of other people wrote this plugin affects redstone,water and physics which is really sad but I think there might be a solution because this usually happens when you modify time to go backwards instead of going forward in time.
     
  29. Any news on a fix for the problems mentioned?
     
  30. Offline

    Klawful

    Excuse me Scizzr, but can this be used to make the world in a perm state of sun set? So that it's slightly dark, with red on the horizon. If so, what would I change the settings to?
     

Share This Page