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 Nov 17, 2012Just letting you know that I'm looking forward to trying this plugin when you update it! :D
-
View User Profile
-
Send Message
Posted Nov 1, 2012Any chance this could be updated to 1.4.2? I miss our long days and nights we had with this plugin :(
-
View User Profile
-
Send Message
Posted Oct 5, 2012@mcferson
Le seul souci actuellement est au niveau des phases de la lune. Pour l'instant personne ne se plaint d'autre chose.
-
View User Profile
-
Send Message
Posted Oct 4, 2012aaaah ok ! donc en fait, une journée fera toujours 24000 ticks de long, mais on va uniquement jouer sur la vitesse d'un tick. C'est malin, très malin :) Mais ça ne risque pas de provoquer des petits soucis, surtout au niveau des phases de la lune ? je l'ai déjà vu cycler sans arrêt.
-
View User Profile
-
Send Message
Posted Oct 3, 2012@mcferson
Je pense que ce que tu as mal compris est que tu crois que dans le fichier de config, les parametres begin et end servent a decider la duree du jour / nuit / matin / soir, alors que ce n'est pas du tout ca.
Les sections "day", "sunset", "night", et "sunrise" sont des exemples. Tu pourrais tres bien les supprimer et creer des sections personalisées de ton choix comme par exemple "morning" "noon" "afternoon" "evening" etc ...
En gros le fichier de config te permet de :
En bref le plugin Time Distortion va a intervalles reguliers modifier le temps, en forcant le serveur a faire des mini sauts en avant ou en arriere dans le temps, pour que la vitesse de passage du temps corresponde au multiplicateur voulu.
-
View User Profile
-
Send Message
Posted Oct 3, 2012hi there, when you say "I think no further help is necessary", you're totally wrong. We don't have some usefull imformation about the time managment. I mean, can we change the total day's length or not... Weel i'll speak you french, i'll be mor accurate.
Donc, je disais : on a tout de même besoin de plus d'explication. C'est difficile de savoir, quand on n'est pas dans la tête du développeur, de quoi est capable son programme et quelles sont ses rectrictions. En l'occurrence, peut-on aller au delà de 24000 pour la longueur d'un cycle ? Si nous avons un début et une fin concernant une partie de journée, pourquoi faut'il un multiplicateur ? Genre une matinée qui dure 1000, ça passe rapidement, donc quelle est l'utilité du multiplicateur ? Ou alors j'ai pas compris. Donc, plus d'explication, s'il te plait.
-
View User Profile
-
Send Message
Posted Sep 18, 2012@shadowlif
Thanks for the help, i'm kind of busy these days, but i will get in touch with you as soon as possible
-
View User Profile
-
Send Message
Posted Sep 18, 2012Hey, im from Germany and can translate your Plugin in German. PN with the Text and i translate.
shadowlif
-
View User Profile
-
Send Message
Posted Sep 17, 2012This...is...amazing!!I am making a new type of server (it's like roleplaying with a theme that no other server has used) and I could use this!
-
View User Profile
-
Send Message
Posted Sep 15, 2012Yea our moon chances phases once every 20 ticks .. :)
-
View User Profile
-
Send Message
Posted Sep 14, 2012I just tried it out. Seems that moon changes phases depending on the update rate.
-
View User Profile
-
Send Message
Posted Sep 13, 2012@Vaalerian
haha... I've eben racking my brain for almost 24 hours trying to work out what I did wrong... glad to know it will be fixed soon XD
-
View User Profile
-
Send Message
Posted Sep 13, 2012I just discovered that Time Distortion had a huge bug, preventing it to be used on multiple or worlds that were not named "world" : It's now fixed in last version (0.2.2).
I apologize for this stupid mistake.
-
View User Profile
-
Send Message
Posted Sep 12, 2012@Psiclone01
that's strange ... i'm not using threads anymore with versions 0.2.0 and 0.2.1 are you sure you do not have both TimeDistorsion and TimeDistortion running at the same time ? can you test it without any other plugins ? I suspect that there is another plugin messing with it :/
-
View User Profile
-
Send Message
Posted Sep 12, 2012@Vaalerian
I'm sorry to be such a pain, man, but this mod still isn't working for me. When I set debug, I still get spammed every second with the "thread" problem. The only thing I'm changing is the multiplicator, to 0.5 (and changing world name, obviously). That's the only thing I want at this point in time.
-
View User Profile
-
Send Message
Posted Sep 12, 2012@BenSenpai
@Psiclone01
Sorry, it's still 0.2.0 but i forgot to update the version number on some file, i will fix that
-
View User Profile
-
Send Message
Posted Sep 11, 2012@Psiclone01 is right
-
View User Profile
-
Send Message
Posted Sep 11, 2012@Vaalerian
One minor issue.. the version you updated is still 0.1.1.. I've tried downloading it 5 times from here and on Curse's site, and every time I look at console it says version 0.1.1
-
View User Profile
-
Send Message
Posted Sep 11, 2012@BenSenpai
The log you copy/pasted is from from the old Time Distortion version, please try with the new one (0.2.0), this should all be fixed now :)
-
View User Profile
-
Send Message
Posted Sep 11, 2012I use bukkit 2360 and I get this message
04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18394, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18384.0 = 18384, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18413, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18403.0 = 18403, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18433, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18423.0 = 18423, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18453, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18443.0 = 18443, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18474, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18464.0 = 18464, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18493, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18483.0 = 18483, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18513, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18503.0 = 18503, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18533, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18523.0 = 18523, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18553, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18543.0 = 18543, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18573, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18563.0 = 18563, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time 04:15 PM [INFO] [TimeDistortion] INFO : Finallyalmost:night, currentTime 18593, distortionMultiplicator 0.5, ticks 20, (currentTime + (distortionMultiplicator * ticks) - ticks) = 18583.0 = 18583, time diff -10, real multiplicator 0.50 04:15 PM [INFO] [TimeDistortion] WARNING : Thread conflict while updating time