Time Distortion
Time Distortion
Features
Time Distortion gives the ability to change the duration of daytime, nighttime, or any custom part of the day that pleases you. There should be no issues with redstone.
This plugin allow you to set time lapses, defined by a begin and end time, and a speed multiplicator. In Bukkit the time in a day ranges from 0 to 24000 ticks, 0 being sunrise, 6000 noon, 12000 sunset, 18000 midnight, and 24000 looping back to sunrise.
- If you set the multiplicator to 2.0, time will be 2x faster and shorter.
- If you set the multiplicator to 0.5, time will be 2x slower and longer.
WARNING !
If you update from a version lower than 0.1.2, the plugin name has changed (due to a typo -_-), you must update config.yml and its folder accordingly.
Commands
the /timedistortion command displays a summary of the current configuration (permission : TimeDistortion.info)
Config
The default config.yml file will be generated the first time you enable the plugin, and sets default time speed, with daytime, nighttime, sunset and sunrise already preconfigured for the world "world", so you can easily tweak it. The config being quite simple and including extensive comments, I think no further help is necessary. A copy of the default config can be read here : sample config page.
Known bugs
- Moon phases may change quickly during the night in some cases
time distortions tend to be extremely inaccurate when ticks_between_updates is really small (less than 5 in most of the cases) and multiplicator is lower than zero.
Planned features
- French localization (help needed for other languages)
- Add commands to edit config from in game
Recode the time distortion effect to improve accuracy and smoothing even at high refresh rates (low ticks_between_updates)
Footnote
It has only been tested for 1.3.1 and 1.3.2, but it should work with 1.2.5 and older as well
This is my first Bukkit plugin, constructive criticism is welcome. My mother tongue being French, please excuse me if my English is bad.
-
View User Profile
-
Send Message
Posted Sep 11, 20120.2.0 is out now, the way distortions work has been recoded and is much better, most bugs should be fixed now. You can now set ticks_between_updates to low values without accuracy issues.
@ThordFox
Your 24h server should now work well with this version, but you may have to manually fix the time every few days : fractions are now handled with a randomness function, so even if it will tend follow the planned time due to probabilities, some inaccuracies may appear after some time.
-
View User Profile
-
Send Message
Posted Sep 11, 2012@ThordFox
The plugin used to work really well with version 0.0.1, there must be something with the last version, i will try to fix it today.
I should emphasize in the plugin description that currently it is not made to be precise, so this is not the right plugin if you want to make a 24h day yet, but i have seen some plugins that claim to do that.
I plan to change the way time distortion speed/slow time to make it more accurate and correct itself so that you can do such thing as an accurate 24h day.
You can send me a PM if you want to be noticed when this will be fixed.
-
View User Profile
-
Send Message
Posted Sep 11, 2012I have the same problem BenSenpai has: I set the time multiplicator to 0.01388888889 since it makes MC run at 24h format yet the time runs as if I had no plugin :S Then I set the multiplicator to 2, then to 5, I saw no progress even at 5ticks-per-update, I ended setting 500!!! And I can tell it doesn't alter the time flow D: is it a bug, or the plugin is still indev? Btw the idea is terribly cool and I hope you get the plugin on. You will get famous with this if the bugs stop.
-
View User Profile
-
Send Message
Posted Sep 11, 2012@Ar7ific1al
Ok, i will do it then.
@BenSenpai
It seems to happen for some people recently, what bukkit version are you using ? Can you set debug_level to 2 in the config file and tell me what you see in your logs ?
-
View User Profile
-
Send Message
Posted Sep 11, 2012@Vaalerian
While this is true, Bukkit's /reload function is complete crap. A lot of plugins break with it, and it causes memory leaks. Server performance can decrease dramatically over long periods of time of using /reload without restarting the server. As such, a /reload command specific to this plugin would be nice to avoid using /reload to reload the entire server plugin list. Just as well, this would go great with an RPG server, and many RPG servers use Spout, which absolutely breaks when you /reload.
-
View User Profile
-
Send Message
Posted Sep 10, 2012I set all four multiplicators to .5 to extend the time of day yet nothing happens, the plugin is on, just doesn't work... any suggestions?
-
View User Profile
-
Send Message
Posted Sep 10, 2012Thanks for this plugin trying now :D
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Liger_XT5
currently you can use the /reload command of bukkit that reloads the server and its plugins without disconnecting players, it's quick and most of the time nobody will notice you are reloading the server. You can even use reload to add/remove/update plugins.
-
View User Profile
-
Send Message
Posted Sep 10, 2012"Add commands to edit config from in game "
How about a reload command so we don't have to restart the server if we edit the config directly?
-
View User Profile
-
Send Message
Posted Sep 10, 2012WARNING ! If you update from a version lower than 0.1.2, the plugin name has changed (due to a typo -_-), you must update config.yml and its folder accordingly. Sorry for this, better now than later.
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Psiclone01
I suspect that you did set a really low value on ticks_between_updates, you should keep it over 10 if possible, setting it lower may cause a lot of thread conflicts like you had, and also inaccurately handle multiplicators that are lower than zero.
The errors you had should not prevent the plugin to work if they occur only once in a while, but yours were way too frequent !
I updated the plugin and did some small other fixes, now the error you had can only be displayed when changing debug_level in the settings file, and should say "WARNING : Thread conflict while updating time". I would be glad if you could set your debug level to 1 and tell me if you still get a lot of those errors, and also send me a copy of your config.yml file.
-
View User Profile
-
Send Message
Posted Sep 9, 2012Hey, just wondering if you're going to fix this for 1.3.2? I really want to use this mod but I get an error every second if I edit ANYTHING in the config.
http://i.imgur.com/exbSM.png That's the error that I get spammed with.
The mod works just fine, but I'm just wondering if you can fix the console spamming?
-
View User Profile
-
Send Message
Posted Sep 6, 2012np98765: thank you :)
Kiak: well you can set the multiplicator to 0 on a specific time lapse, and then do a "/time set" just before, but even like this the frozen time may vary a bit if you run the server for too long, because of the method i'm using. I could add this specific time freezing feature, but i thought a lot of plugins already did it well.
-
View User Profile
-
Send Message
Posted Sep 5, 2012can you have 0 speed to freeze time at Night/Day whatever?
-
View User Profile
-
Send Message
Posted Sep 3, 2012Good job! Many people have requested this on the Plugin Requests forum before. I'll be sure to link them here whenever I see more requests. :D
If you hadn't mentioned that you weren't a native English speaker, I wouldn't have known. :)