Inactive [FIX/MECH] properTime v2.0 - Control the speed of time [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by andersonhc, Aug 9, 2011.

  1. Offline

    andersonhc

    properTime - Control the speed of time, for example to fix too long days/nights due to lag:
    Version: 2.0


    BukkitDev Project Page: http://dev.bukkit.org/server-mods/propertime/


    On many servers, lag causes the time to pass extremely slow, so xupwup created a fix.
    properTime runs in a dedicated thread, so it wont really be affected by lag.
    By default this plugin makes sure that the day/night cycle lasts exactly 20 minutes.
    If desired you can change this, so that it always runs at half speed, or -10 times as fast, causing the time to go backwards really fast :). Please note that this will cause the sun/moon to jerk, this can only be fixed with a client mod.
    This plugin is also compatible with other time changing plugins, however, I advise against using it in combination with time stopping plugins. It also works fine with beds.

    Sample config file:
    Code:
    propertime:
      world:
        timespeedday: 0.5
        timespeednight: 1.0
        timespeeddusk: 1.0
        timespeeddawn: 1.0
        perma: none
      world_nether:
        preset: alwaysnight
      world_the_end:
        followworld: world
        followworlddelay: 6000
    
    Valid values for perma are: none, night, day or numeric values between 0 and 24000.

    Valid presets are:
    ALWAYSDAY: permanent midday
    ALWAYSNIGHT: permanent midnight
    CYCLE24M: a full day/night cycle lasts 24 minutes, instead of 20min.
    CYCLE24H: a full day/night cycle lasts 24 hours

    Normally day lasts 10 minutes, dawn + dusk 1.5, and night 7.
    If you want your day to last 12 minutes, you should set timespeedDay to 10/12 = 0.833
    Also, when freezing time, if you set the time to somewhere during dusk or dawn, the light will flicker for the client. I advise against this.

    Features:
    • Configurable time speeds
    • Dedicated thread (so lag proof)
    • Separate configuration for day, night, dawn, dusk
    • Multiworld support (the plugin that creates the secondary worlds needs to load before properTime)
    • Permanent day/night
    • Ability to freeze time.
    • Keep time between different worlds sync'ed, with optional delay.
    To make sure that properTime loads after your multiworld plugin: (thanks to @tehbeard)


    Open properTime.jar with a program like winrar, and edit the plugin.yml file inside. Add the following code to it:
    Code:
    softdepend: [MultiVerse]
    In this example properTime will load after MultiVerse. Do this for any multiworld plugin you use. (note: you need the name of the multi world plugin as stated in it's own plugin.yml)

    Troubleshooting

    First of all, carefully read all errors, as well as the last few comments on this thread. If that does not fix your problem, try adding "debug" to the top of your config file. That way the plugin will give you a lot of information, some of which may be useful for finding out what is wrong.

    World "foo" not found
    Make sure your plugins load in the correct order. You can also try to remove or rename your config file, so that it is regenerated with the correct worldnames and syntax.

    Download on BukkitDev Project Page:
    http://dev.bukkit.org/server-mods/propertime/

    Changelog:

    Version 1.9.0
    • Added presets. Presets included are: ALWAYSDAY, ALWAYSNIGHT, CYCLE24H, CYCLE24M.
    • perma values may also be: none, day, night.
    • Added possibility to change default settings.
    Version 1.8.9


    • Sources are now inside the jar file. No other changes.
    Full Changelog:


    Show Spoiler

    Version 1.8.8
    • Open sourced!
    • Different synchronisation with the main thread, this should fix concurrentModificationException errors.
    Version 1.8.7


    • Use the bukkit scheduler to set the time from a thread. (should fix concurrentModificationException errors)
    Version 1.8.6


    • Added debugging functionality that can be enabled by putting the word "debug" somewhere in your config file, preferably at the top.
    Version 1.8.5


    • The parser now supports world names with spaces.
    • (A bit) nicer error messages.
    Version 1.8.4


    • Fixed stupid mistake where it said 2400 instead of 24000, causing a lot of weirdness when using the perma option.
    Version 1.8.3


    • Fixed a bug in the parser that caused nullpointer exceptions for some files.
    • Added the "perma" option for configuring permanent day/night.
    Version 1.8.2


    • Fixed bug that caused values below 1 to get rounded to 0, causing the time to stop for those that use a timespeed less than 1.
    Version 1.8.1


    • Fixed nullpointerexception when stopping the server when an invalid config file has been used.
    Version 1.8


    • Added multiworld support
    Version 1.7


    • Fixed compatibility with newer bukkit versions
    • The config file is now located at: plugins/properTime/properTime.conf
    Version 1.6


    • If the client would jump to for example dusk, the server will use the timespeed for dusk, so if you set your day speed to 0.25, and the dusk speed to 1, this will fix the flicker during the few seconds when the client wants to go to dusk, and the server still says day. This should not change anything if you use timespeeds >= 1.
    Version 1.5.1


    • Fixed namespace, see this.
    Version 1.5


    • Fixed compatibility with newer bukkit versions
    • You can now configure what world this plugin should work on. (only one is supported and this is not in the default config file)
    Version 1.4


    • Added the ability to configure timespeeds for dusk/dawn.
    Version 1.3


    • Fix compatibility with newer bukkit versions.
    Version 1.2


    • Added the ability to configure timespeeds for day/night independently.
    Version 1.1


    • Renamed properties file + location
    Version 1.0


    • Initial release
     
  2. Offline

    Freedomtea

    will "ALWAYSDUSK" or "ALWAYSDAWN" work?
     
  3. Offline

    xTorvax

    Please explain to me step by step on how to make a world daytime all the time please? :(
     
  4. Offline

    Naxdar

    I modified this plugin a bit, in order to add some features :
    • The real time is modified instead of the "current time". It fixes the moon phase changes at night, and the huge real time count (it was incremented by almost 20 minutes every 5 seconds).
    • The time is corrected every tick instead of every 5 seconds. Consequently, the moon/sun moves more smoothly. I tested the bandwidth usage, and I didn't noticed a particular increase. It should be good on that regard.
    My computer didn't break during my tests and I didn't notice any bug, but there could be some.
    The original author can reuse and redistribute the file under his name.
    The source code is included.

    Edit : Modifying the server fulltime was a bad idea, I do not recommend to use the file I sent, it causes problems with the block updates.
     

    Attached Files:

  5. Offline

    cisco211

    One bug i definitely know (i made TimeSync): When you update the time every tick then you get problems with redstone timings. To let the sun/moon move smoothly, take a look to spoutcraft. Atm there is no way to fix that problem without breaking the redstone timers.
     
  6. Offline

    Segatendo

    So, world names are case sensitive eh? The config generated okay, except for one thing, the world name it gave didn't have the right case, therefore it couldn't find it. Testing this outdated plugin in 1.3.1, and it still works thankfully. :D (though an update is always nice too!)
     

Share This Page