[MECH][FUN] TimeShift 2.0.1 ~ Change Time on-the-fly! [b1337]

Discussion in 'Inactive/Unsupported Plugins' started by Tazzernator, Jan 19, 2011.

  1. Offline

    Tazzernator

    Xordaii, arpey, Steve Cole and 2 others like this.
  2. Offline

    barbednails

    All I have been doing is clicking on the links. Then a .zip file begins to download. Unless I am clicking the wrong links which I don't believe so. Thanks for the reply.
     
  3. Offline

    cjc343

    Jar files are essentially glorified, renamed zip files. I've seen this cause macs to unpack a. Jar when they shouldn't. Does the zip auto-unpack like that? Or are you downloading it and it just has a .zip extension?
     
  4. Offline

    barbednails

    Downloading it with a .zip extension. But when I put it into my plugins folder. It does not unpack upon server startup. Nor does it create any files to edit settings for. I have a few other mods on my server, but I have never had a problem with them unpacking. Sorry for being a pain. Just not sure what I am doing wrong.
     
  5. Offline

    cjc343

    I still have no clue how you're ending up with the jar renamed to .zip then. What's inside the zip? Are you using a Mac or windows? Browser? If you rename it to .jar does it work?
     
  6. Offline

    barbednails

    Using windows vista. The zip file contains a META-INF file. A tazzernator folder. .claspath, .project, config.yml, plugin.yml, and a readme file. I tried renaming it into a .jar file but I was unsuccessful.

    Ok somehow I was able to change it in WinRar into a plain .jar file. For some reason it added an extra extension on the jar and gave it a .zip at the end. Tested it and it works great. Thanks so much for your time. I have a server event of 30 real time days of darkness. This great mod was the only way to pull it off properly. Thanks again!

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

    cjc343

    Glad you figured it out -- although I'm still stumped as to why that happened.
     
  8. Offline

    Frackippy

    Should i be worried?? :)

    Code:
    [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-03 17:46:53
    [SEVERE] ebean.properties not found
    2011-05-03 17:46:54
    [INFO] DataSourcePool [TimeShift] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-03 17:46:55
    [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-03 17:46:57
    [INFO] Entities enhanced[0] subclassed[1]
    2011-05-03 17:46:58 
     
  9. Offline

    cjc343

    No need to be worried. The [INFO] statements are just bukkit telling you that TimeShift uses persistence.

    The [SEVERE] statement can be fixed by making a blank ebean.properties file in the same folder as your server.properties.
     
  10. Offline

    fifth

    Can't seem to get /shift startup working.

    It writes the worlds into the .db file, but then when I restart the server, timeshift doesn't set the startup shifts recorded in the db. Additionally, if a world is recorded in the .db, I won't be able to do regular /shift commands to change its time.

    Running bukkit 740, latest version of timeshift.

    edit: running worldedit/commandbook, which have a /time function, could this be causing any kind of interference? I think you can custom-compile commandbook to remove commands if there are conflicts.
     
  11. Offline

    cjc343

    You've got two options:
    1. Send me a copy of your TimeShift.db, then delete it.
    2. Delete your TimeShift.db

    That should fix the issue, let me know if it doesn't.
     
  12. Offline

    roly

    can u make it auto create this ebean.properties ?
     
  13. Offline

    cjc343

    ebean.properties is a 'requirement' put in place by bukkit, not me. There's nothing wrong with not having one.
     
  14. Offline

    AlexanderDrake

    Would it be at all possible for you to add a function that freezes time rather than looping it?
     
  15. Offline

    cjc343

    The problem with freezing time instead of looping it is that it screws up time-based events, especially redstone circuits.

    I could add it, but the result would be buggy, and I'd rather prevent that.

    One possible solution would be to loop a short distance around a point in time, which leaves redstone more likely to continue to work. This works terribly for dawn or dusk though, because the light level will continually progress and then noticeably snap back, like the "sunrise" and "sunset" modes (which is why there's "setrise" to combine the two).

    I'm open to ideas, but I doubt freezing time would work well.
     
  16. Offline

    AlexanderDrake

    I see, I'll try and think about this, the idea is I'm creating a set of alternate worlds on my server and in one the plan was to have the moon suspended in the center of the sky constantly. Thanks for the prompt response and explanation either way, love the plugin
     
  17. Offline

    cjc343

    There were no breaking changes in 766 and afaik it's working.
     
  18. Offline

    cjc343

    All tests seem to indicate that TimeShift is working with 798, the new RB.
     
  19. Offline

    Juze

    I've only had this problem on #740+ where world2 (multi-world) doesn't always loop on /shift day. Same with #766 and #798. I've checked the .db with SQLite browser, it's definetly loop day in there for both worlds.

    /shift day world2 -> nope.avi
    /mvtp world2 -> /shift day -> nope.avi

    EDIT: I'll try deleting the .db file.
     
  20. Offline

    cjc343

    Did deleting your .db file help? When you checked, were there multiple db entries for any worlds (if you remember)?

    I loaded my test server with MultiVerse, Permissions, and TimeShift, and am not having any issues changing a secondary world's time whether I'm on the world or not. Do you get any errors or other messages in the console or in game when you attempt to shift the time or at startup?
     
  21. Offline

    Juze

    I got it fixed by deleting the .db file thankfully. There were no multiple entries for any worlds.

    No errors, nothing. Whetever it was /shift day or /shift startup day, it wouldn't have worked, but thankfully, now it does. :)
     
    cjc343 likes this.
  22. Offline

    Tazzernator

    TimeShift tested and working on the new recommended build 803.
     
    cjc343 likes this.
  23. Offline

    sefiam

    so does this mean I can make nighttime (or daytime) go for like 40 mins each?
    I am trying to make my server more realistic.
     
  24. Offline

    Rustyhoff

    Mine no longer works, I am currently on build 818. It was working after I upgraded to 1.6.4 and I had kept updating my builds since then (all unrecomended til 818) and it had stopped working sometime in that time this is what i get
    Code:
    [SEVERE] Could not load 'plugins/TimeShift.jar' in folder 'plugins':
    java.lang.ExceptionInInitializerError
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:175)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:174)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: ebean.properties (No such file or directory)
        at com.avaje.ebean.config.PropertyMapLoader.findInputStream(PropertyMapLoader.java:147)
        at com.avaje.ebean.config.PropertyMapLoader.load(PropertyMapLoader.java:47)
        at com.avaje.ebean.config.GlobalProperties.initPropertyMap(GlobalProperties.java:83)
        at com.avaje.ebean.config.GlobalProperties.getPropertyMap(GlobalProperties.java:110)
        at com.avaje.ebean.config.GlobalProperties.get(GlobalProperties.java:120)
        at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFactory.java:94)
        at com.avaje.ebean.EbeanServerFactory.<clinit>(EbeanServerFactory.java:57)
        ... 10 more
    Caused by: java.io.FileNotFoundException: ebean.properties (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at com.avaje.ebean.config.PropertyMapLoader.findInputStream(PropertyMapLoader.java:135)
        ... 16 more
    
    I would like to know maybe and ETA of an update for rb818? This is a great plugin and I was very sad once it broke

    Thanks :D
     
  25. Offline

    cjc343

    Not sure how I missed posts in this thread... must have missed the alert...

    This plugin is geared more towards infinite day or night, and although you could periodically change it manually, that would be a pain.

    You may wish to check out properTime, RealTime, TimeFold, or TweakedCycle all of which change how long days and nights are.

    I'm not sure why you're getting this error since I have had no problems with 818 or with ebean.properties' non-existence causing TimeShift to fail, however, if you create the 'ebean.properties' file in your server directory, it may fix the issue. You do not need to put anything in the file. (Bukkit looks for the file on start-up when plugins that use persistence are loaded)


    If anyone else is having issues, please report them because as far as I can tell, TimeShift is working with 818.
     
  26. Offline

    Rustyhoff

    I hadn't had any problems with not having the 'ebean.properties' file, however it would come up in my log saying it cant be found. It wasn't until i saw somewhere that it was causing problems for someone with a plugin i had so I made it. Since then TimeShift has broken.

    EDIT: I made the 'ebean.properties' out of an empty folder. should it be something else?

    EDIT 2: I started to think and I made the .properties folder shortly before the plugin stopped working. So I just straight up deleted the folder and now the plugin works! Thanks for your help! And again, great plugin!!
     
  27. Offline

    cjc343

    ebean.properties can be an empty file, not an empty folder.

    The message at start-up occurs when that file can't be found, and will go away if you create a file instead of a folder. :D
     
    Tazzernator likes this.
  28. Offline

    Tazzernator

    TimeShift tested and working on the new recommended build 818.
     
    cjc343 likes this.
  29. Offline

    christley

    doesnt work with b860

    Code:
    Caused by: java.lang.NullPointerException
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.checkPermissions(TimeShiftCommandParser.java:79)
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.checkShift(TimeShiftCommandParser.java:89)
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.handleCommand(TimeShiftCommandParser.java:184)
        at tazzernator.cjc.timeshift.TimeShift.onCommand(TimeShift.java:184)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-06-12 15:54:59 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shift' in plugin TimeShift v2.0.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.checkPermissions(TimeShiftCommandParser.java:79)
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.checkShift(TimeShiftCommandParser.java:89)
        at tazzernator.cjc.timeshift.TimeShiftCommandParser.handleCommand(TimeShiftCommandParser.java:184)
        at tazzernator.cjc.timeshift.TimeShift.onCommand(TimeShift.java:184)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  30. Offline

    cjc343

    I am not able to reproduce this error. It appears to be an issue with Permissions configuration. TimeShift is working fine for me on 860.
     
    Tazzernator likes this.
  31. Offline

    christley

    yeah, for some reason i could only reproduce the error 3 times. not anymore. so idk
     

Share This Page