1. it's working for me under oxide309 but with some delay(i.e. 3-5 sec)

    also getting error on start-up but working;
    Code:
    [2/11/2015 11:17:20 AM] [Oxide] 11:17 AM [Error] m-Time: LuaScriptException while calling ccmdEnvTime:
    [2/11/2015 11:17:20 AM] [Oxide] 11:17 AM [Error] m-Time: [string "m-Time.lua"]:714: 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
     
    Last edited by a moderator: Feb 11, 2015
  2. env.time works nicely, changes day/night with ease until the plugin is updated.
     
  3. is there any chance of an Update ?
     
  4. m-time.json is empty ...
    Doesn't work for me.
     
  5. Good afternoon.
    I ask you to help with the problem. While the players is different. In someone else day. At night someone else. Although the team - / time at all synchronously. It should be reconnecting to the server. I ask you to help with this problem.
     
  6. env.time is now an inherit command from rust.
    mughisi needs to remove it or the plugin won't launch ;)
     
  7. Code:
    2:52 PM [Error] Failed to initialise plugin m-Time
    File: m-Time.lua Line: 61 An element with the same key already exists in the dictionary.:
      at System.Collections.Generic.Dictionary`2[System.String,ConsoleSystem+Command].Add (System.String key, .Command value) [0x00000] in <filename unknown>:0
      at Oxide.Rust.Libraries.Command.AddConsoleCommand (System.String name, Oxide.Core.Plugins.Plugin plugin, System.String callbackname) [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
    after last rust update :)
     
  8. Wulf

    Wulf Community Admin

    That happens when you either have two copies of the same plugin installed, or another plugin registering the same commands before it.
     
  9. im getting that same error as well I have not changed any plugins since update
     
  10. Wulf

    Wulf Community Admin

    Another possibility is that env.time or other command that this uses was integrated directly into Rust now. That's the only other reason why you'd have the error aside from the ones mentioned previously.
     
  11. why dont people read :'(
     
  12. Wulf

    Wulf Community Admin

    Not sure how I missed your post, but spot on. :)
     
  13. There is problem in your code. I can't edit m-time.json plugin reset it always on reload to default because of this:

    if self.Config.Settings.Version ~= "1..0" then

    Why "1..0" if should be "1.0"? After i manualy replaced this config not reseting every time when plugin loaded.
     
  14. Oh so sorry, it's from debugging stuff, I'll fix that
     
  15. dont work.
    env.time 6 - in console change time, in game no
    /settime 6 - in console change time, in game no
    =((((
     
  16. It's a Rust bug, on some servers it works on some it doesn't. The env.time console command is even part of rust itself now and is no longer handled by the plugin, can't do anything about it :(
     
  17. sad =((((
     
  18. I put it just in case you'd better help the developer.
    This is the error in console, when i load the plugin.
    Oxide] 10:44 PM [Info] Loaded plugin Day & Night System v1.0.3 by Mughisi
    [Oxide] 10:44 PM [Error] Failed to initialise plugin m-Time (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:44 PM [Debug] at Oxide.Core.Configuration.DynamicConfigFile.GetEnumerator () [0x00000] in <filename unknown>:0
    at Oxide.Lua.Utility.TableFromConfig (Oxide.Core.Configuration.DynamicConfigFile config, NLua.Lua lua) [0x00000] in <filename unknown>:0
    at Oxide.Lua.Plugins.LuaPlugin.LoadConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Lua.Plugins.LuaPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Feb 17, 2015