[INACTIVE][FIX/MECH] properTime v1.8.9 - Control the speed of time (+multiworld) [1000]

Discussion in 'Inactive/Unsupported Plugins' started by xupwup, Jan 29, 2011.

  1. Offline

    xupwup

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

    THIS PLUGIN HAS BEEN DISCONTINUED. See here for the continuation of this plugin.

    On many servers, lag causes the time to pass extremely slow, so I 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:
    # Use 2 for double speed, 3 for triple, etc.
    # At 1x speed, the complete day-night cycle takes 20 minutes.
    
    world: "nether"
    timespeedDay: 1.0 #these settings will be ignored because perma > 0
    timespeedNight: 1.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: 15000 # the time will always be 15000, which is at night. Use a value between 0 (sunrise) and 24000.
    
    world: "world"
    timespeedDay: 5.0
    timespeedNight: 5.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: -1 # less than 0, so will be ignored
    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.

    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)

    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.

    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.


    Download: http://www.xupwup.nl/data/games/minecraft/properTime.jar
    Source: Inside the jar.
    Please also vote on the poll here so I have a better idea about the popularity of my plugin.

    Changelog:
    Show Spoiler

    Version 1.8.9
    • Sources are now inside the jar file. No other changes.
    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



    I got bored with minecraft a while ago, and now I also got bored with maintaining my plugins. That means that there will be no more feature updates by me. If you want to take over this plugin, please send me a pm on this forum and I will answer your questions, put a link here to your version etc.
     
  2. How to do that? I'am running my server on Debian Linux.
     
  3. Offline

    Maxis010

    Try putting 3 lower case a's on the start of your multiworld plugin, if those don't work try 3 upper case,
     
  4. Thanks. With lower case it worked.
     
  5. A quick fix for anyone running MultiVerse, if you add the following line to ProperTime's plugin.yml inside the jar.

    Code:
    softdepend: [MultiVerse]
    
    ProperTime will load up 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
     
    AS1LV3RN1NJA likes this.
  6. Offline

    xupwup

    Added that to the plugin's description.
     
  7. Offline

    andrewkm

    935 Compatibility?
     
  8. Offline

    xupwup

    Probably.
    EDIT: yes.
     
  9. Offline

    mutiny

    how about weather support, tired of it raining for an hour
     
  10. Offline

    Michael_BoG

    How would i go on using this to make it mid-day (when there's most light) permanent?
     
  11. Offline

    xupwup

  12. Offline

    Darkenvy

    The fix of doing "zpropertime.jar" to have it load after multiverse doesn't work. But reloading the server (/reload all) does fix it. Can you have the plugin load later or automaticly reload itself after multiverse? This is not ideal nor can I remember to do this on a regular basis.

    Thanks, oh also awesome plugin! ^^
     
  13. Offline

    xupwup

    Also in the OP.
     
  14. Offline

    D3C

    Hello, I'm having alot of trouble using the Multiword feature, here is what the server logs is saying:
    (Propertime is called ZproperTime in my plugin list to allow WorldManager to load first.)


    Code:
    11:55:48 [INFO] Preparing start region for level 2 (Seed: 379385235)
    11:55:49 [INFO] Preparing spawn area for shops, 93%
    11:55:49 [INFO] WorldManager version 1.0 is enabled!
    11:55:49 [INFO] properTime reading from config at C:\Users\Chris\Desktop\Minecra
    ft\MC Server\plugins\properTime\properTime.conf
    11:55:49 [WARNING] properTime: World 'Shops' not found
    11:55:49 [INFO] properTime 1.8.9 initialized
    Should i change 'shops' to level 2?
    Will Edit after i changed shops to level 2
    Got the same error when i changed "Shops" into "level 2"
    This is my Config file:
    Code:
    world: "MCS"
    timespeedDay: 1.0
    timespeedNight: 1.5
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: -1
    world: "nether"
    timespeedDay: 1.0
    timespeedNight: 1.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: -1
    world: "Shops"
    timespeedDay: 1.
    timespeedNight: 1.0
    timespeeddusk: 1.0
    timespeed dawn: 1.0
    perma: 0
    
    And yes i do what the time to be stuck on 0.


    Found out the problem was the world names are Case sensitive, might want to add that in?
     
  15. Offline

    xupwup

    I suggest for everyone having "world not found"-like errors to remove or rename their config file, and have it regenerated.
     
  16. Offline

    Comrade Dmitri

    I want a full day cycle that lasts 2 hours, (one hour day/one hour night) Is this possible?
     
  17. Offline

    Maxis010

    Day: 0.16
    Night: 0.11
    Both values overshoot the 1 hour mark but days is 0.16666 etc and night is 0.11666 etc, dawn and dusk shouldn't be changed as it can cause some freaky results (or at least it has for me)
     
  18. Offline

    Comrade Dmitri

    Oh, Thanks.

    I can't edit properTime.conf for some reason.

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

    xupwup

    You need to give a bit more information than that...
    OS? Any errors?
     
  20. Offline

    Nick22

    can you make it so it is always day?
     
  21. Offline

    Comrade Dmitri

    Windows 7, No errors at all.
     
  22. how can i make 24/7 night for my mobworld?
     
  23. Offline

    xupwup

    What does "i cant edit it" mean? Does the file not change if you modify it? If so, make sure you actually save the file, because someone else forgot to save his changes. In any case, I doubt I can help with this one.
    perma: 18000
     
  24. What is wrong? in world my time wont stay at day it moves on :(
    Code:
    # Use 2 for double speed, 3 for triple, etc.
    # At 1x speed, the complete day-night cycle takes 20 minutes.
    
    world: "world"
    timespeedDay: 0.0
    timespeedNight: 0.0
    timespeedDusk: 0.0
    timespeedDawn: 0.0
    perma: 23
    
    world: "world_nether"
    timespeedDay: 1.0
    timespeedNight: 1.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: -1
    
    world: "hell"
    timespeedDay: 1.0
    timespeedNight: 1.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: -1
    
    world: "mobworld"
    timespeedDay: 0.0
    timespeedNight: 1.0
    timespeedDusk: 1.0
    timespeedDawn: 1.0
    perma: 18000
    
    at the mobworld there is 24/7 night but the day time in world wont stick
     
  25. Offline

    Pythros

    I want to have every Minecraft hour equal one real minute. I'm at a lost as to what calculations I need to use to figure this out. Any help would be great! Thanks.
     
  26. how i can make the game stop time to mid day? i have set 12 or 12000 and its like its only morning -.- i want the sun to come straight from up.
     
  27. Offline

    andersonhc

    Try this:
    perma: 6000
     
  28. ok ty, how about how i can make day go slower than normal?
     
  29. Offline

    andersonhc

    How much slower?

    Code:
    timespeedDay : 0.5
    for instance, will make it lasts 20 minutes, instead of 10.
     
  30. Offline

    Bman212121

    I think I have it figured out.
    there are 24000 ticks total so /24 hours = 1,000 ticks an hour.
    The MC server should be running at 20 ticks a second IIRC, so that means that 1,000 ticks would take 50 seconds. So 50 seconds is one hour right now. You need to increase that time by 20% to get to 60 seconds. 50 x 120% = 60
    So you actually have to do the inverse of 120% to slow it down... 6/5 = 120% so 5/6 is correct ratio. 50 seconds / 60 seconds = 1 sec / 1 minute
    It's .833333
    So you can set everything to .8 and it will be close or you will have to play around with some of the settings to get an average.
     
  31. Offline

    Pythros

    Thanks! I'll give it a try!
     

Share This Page