1. Hi, i cant have this plugin working on my server,
    /time, env.day et night command dont work same thing for /setdaylength

    my console:
    [​IMG]

    my m-Time json :
    {
    "DayDuration": 50,
    "NightDuration": 5
    }

    Thanks
     
  2. Hmm I'll
    Your data file is missing values it should have a value for the hour and if time is frozen as well:
    Code:
    {
      "NightDuration": 5,
      "Hour": 12,
      "Frozen": false,
      "DayDuration": 20
    }
     
  3. What's wrong with him? the spam in console, every minute-two.
     
  4. Wulf

    Wulf Community Admin

    That has nothing to do with the actual server time, that has to do with the AI (entities) lagging.
     
  5. CHR

    CHR

    Code:
    [Oxide] 2:05 PM [Error] Failed to call hook 'ccmdEnvTime' on plugin 'Day & Night System'
    File: m-Time.lua Line: 713 attempt to index upvalue 'Sky' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
    [Oxide] 2:05 PM [Info] [Auto Commands] ran command env.daylength 50
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
    [Oxide] 2:05 PM [Error] Failed to call hook 'ccmdEnvTime' on plugin 'Day & Night System'
    File: m-Time.lua Line: 753 attempt to index upvalue 'Sky' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
    [Oxide] 2:05 PM [Info] [Auto Commands] ran command env.nightlength 10
    Could Need the fix for this, im doing a restart cycle when im not online Server would Change all.
     
    Last edited by a moderator: Apr 19, 2015
  6. It might actually be running the commands too soon as the sky is not immediately available but normally the daylength & nightlength values should be stored in the configuration file.
     
  7. CHR

    CHR

    will check it ty
     
  8. After today's update, I set env.nightlength and now time if frozen. Had to disable.
     
    Last edited by a moderator: May 1, 2015
  9. Any chance of getting this updated i cant get it to work since update
     
  10. Wulf

    Wulf Community Admin

    Did you check your logs for errors?
     
  11. CHR

    CHR

    Mine does work without problems. :/
    [DOUBLEPOST=1430524268][/DOUBLEPOST]Btw don't use the console commands take the chatcommands. This could solve it
     
  12. ok i fixed i removed it and readded sorry guys
     
  13. Plugin is terrible.
    no replay for change sunrize of sunshine..
    no replay for change dayleght or nightleght..
    only /settime work..
    owfull.
     
  14. You could've just said the commands aren't working... I don't run my own server so I don't know if something stops working after a server update, I rely completely on the community on that part. And with not working, do you mean it isn't doing anything or is it throwing an error?
     
  15. He does nothing. When you make changes in the plugin (in part:
    local Sunrise = 6
    local Sunset = 18
    local TimeTickUpdate = false )
    you can set any values - they will not work.

    PS: in the first message has no warning that the plugin may not work, since its developer does not conduct its own server and not check for updates in Rust. Isn't it? In the end, going at this website of the oxide, and selecting the plugin, I expect that the downloaded me the plugin is working.
    [DOUBLEPOST=1430763313][/DOUBLEPOST]The same setdaylength & setnightlength, putting commands on chat or on consol. I'm sorry if my post insulted you. You must understand all the outrage, when you put the plugins from this site, as they work through the ass (almost ALL!).
     
  16. You are not supposed to change the plugin, those aren't variables, those are constants... Have you actually read the overview or did you just download it and look at the code and changed some stuff without actually knowing what was doing what?
    And I do check for Rust updates, the thing is that I just don't have the plugins running as much as an actual running server so if there is a bug that occurs after running for x hours I won't find out, but anything else is tested. And the time system hasn't changed since the plugin was released (exception being of FacePunch adding the env.time console command). Regarding the commands you can find everything in the overview. The Sunris/Sunset values are required for daylength & nightlength to work correctly so if you modify those values you basically break those functions.
     
  17. Whats default numbers of daylenght and nightlenght?
    I have this:
    {
    "DayDuration": 35,
    "Hour": 0,
    "NightDuration": 15
    }

    And my sun is hopping in the sky, slow hopping but it's not nice.
    Probably some command is missin in my?
     
    Last edited by a moderator: May 19, 2015
  18. Only /settime works. The day length and night length won't change from Rust default even though the command says it changed the day/night lengths.
     
  19. same for me
     
  20. I've noticed that when freezing the time, it takes about 30 in-game minutes for the time to reset to the frozen time (for example, if I set it to 20, it will wait until 20.50 to change the time back to 20). Is there a way to modify this update interval? Trying to shoot a video and the time change is messing it up.