1. It appears that your config isn't being created, check your m-Time.json file in your config folder. Chances are that it's empty. If it is put the following in it:
    Code:
    {
      "Settings": {
        "Version": "1.0",
        "ChatName": "Time"
      },
      "Messages": {
        "SyntaxCCommandSetTime": [
          "A Syntax Error Occurred!",
          "You can only use the env.time command as follows:",
          "env.time <hour> - Sets the in-game time to the specified hour, 0 to 24."
        ],
        "TimeFrozen": "Time is currently frozen.",
        "SetDayLengthSuccess": "You have modified the length of an in-game day to {minutes} minutes.",
        "SetTimeSuccess": "Changing the time to {hour}, please wait a moment.",
        "SyntaxCommandSetDayLength": [
          "A Syntax Error Occurred!",
          "You can only use the /setdaylength command as follows:",
          "/setdaylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "FreezeTimeAlreadyFrozen": "Time is already frozen!",
        "UnfreezeTimeAlreadyRunning": "Time is not frozen!",
        "SyntaxCCommandSetNightLength": [
          "A Syntax Error Occurred!",
          "You can only use the env.nightlength command as follows:",
          "env.nightlength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "SyntaxCCommandSetDayLength": [
          "A Syntax Error Occurred!",
          "You can only use the env.daylength command as follows:",
          "env.daylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "SyntaxCommandSetTime": [
          "A Syntax Error Occurred!",
          "You can only use the /settime command as follows:",
          "/settime <hour> - Sets the in-game time to the specified hour, 0 to 24."
        ],
        "SetNightLengthSuccess": "You have modified the length of an in-game night to {minutes} minutes.",
        "FreezeTimeSuccess": "You have stopped the time from progressing.",
        "UnfreezeTimeSuccess": "You have started time progression.",
        "SyntaxCommandSetNightLength": [
          "A Syntax Error Occurred!",
          "You can only use the /setnightlength command as follows:",
          "/setdaylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "Time": "It's currently {time}"
      }
    }
     
  2. Thanks, now load ok the plugin, my server is a clanforge. But no change the time, the plugin yes, but the game no. :-(
    [DOUBLEPOST=1424299358,1424243946][/DOUBLEPOST]The console commands f1 env.time not works neither.
    ¿what can i do?
     
  3. This plugin is completely broken. Freezing time, night length etc not working from console.
     
  4. thanks, Hemogoblin36.
    [DOUBLEPOST=1424303309][/DOUBLEPOST]
    So there is no way to change the time ?
    thanks.
     
  5. Is it throwing any errors? Or is it saying that it changed the value but the time still progresses? And if it doesn't throw any errors, does the time change with env.time <hour>?
     
  6. plugin load properly , accepts commands , but the time is not changed. env.time x not work
     
  7. no errors. When I change the time to env.time x it works, but setting night length to 5 makes night last forever. Freezing time to 12 makes day last for like 3 mins. Some really weird stuff.
     
  8. If env.time isn't working then I can't do much, env.time is now handled by Rust itself so if that doesn't change the time the plugin won't be able to do it either as it's using the same code to do it.
    Weird, I was able to freeze the time on my test server just fine, I'll have to look into it.
     
  9. i use this
    {
    "DayDuration": 540,
    "NightDuration": 180
    }
    but when day gone it is always night
     
  10. Code:
    [Oxide] 7:55 PM [Error] LuaScriptException while calling cmdSetNightLength:
    File: m-Time.lua Line: 741 attempt to index upvalue 'TimeData' (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
    error in Oxide Version: 2.0.323, Rust Protocol: 1207
     
  11. Can you have a look at your config?
     
  12. Error:
    Code:
    [2/19/2015 6:45:20 PM] [Oxide] 6:45 PM [Error] LuaScriptException while calling cmdSetTime:
    File: m-Time.lua Line: 336 attempt to compare number with nil:
      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 
    
    Config (Not Modified):
    Code:
    {
      "Settings": {
        "Version": "1.0",
        "ChatName": "Time"
      },
      "Messages": {
        "TimeFrozen": "Time is currently frozen.",
        "Time": "It's currently {time}",
        "UnfreezeTimeAlreadyRunning": "Time is not frozen!",
        "SyntaxCCommandSetNightLength": [
          "A Syntax Error Occurred!",
          "You can only use the env.nightlength command as follows:",
          "env.nightlength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "SetTimeSuccess": "Changing the time to {hour}, please wait a moment.",
        "SetDayLengthSuccess": "You have modified the length of an in-game day to {minutes} minutes.",
        "SyntaxCommandSetTime": [
          "A Syntax Error Occurred!",
          "You can only use the /settime command as follows:",
          "/settime <hour> - Sets the in-game time to the specified hour, 0 to 24."
        ],
        "FreezeTimeSuccess": "You have stopped the time from progressing.",
        "FreezeTimeAlreadyFrozen": "Time is already frozen!",
        "SyntaxCCommandSetDayLength": [
          "A Syntax Error Occurred!",
          "You can only use the env.daylength command as follows:",
          "env.daylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "SyntaxCommandSetNightLength": [
          "A Syntax Error Occurred!",
          "You can only use the /setnightlength command as follows:",
          "/setdaylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ],
        "SetNightLengthSuccess": "You have modified the length of an in-game night to {minutes} minutes.",
        "UnfreezeTimeSuccess": "You have started time progression.",
        "SyntaxCCommandSetTime": [
          "A Syntax Error Occurred!",
          "You can only use the env.time command as follows:",
          "env.time <hour> - Sets the in-game time to the specified hour, 0 to 24."
        ],
        "SyntaxCommandSetDayLength": [
          "A Syntax Error Occurred!",
          "You can only use the /setdaylength command as follows:",
          "/setdaylength <length> - Changes the duration of an in-game day to length.",
          "Length is in minutes and needs to be a value between 5 and 720!"
        ]
      }
    }
    Data:
    Code:
    {
      "DayDuration": 120,
      "Frozen": true,
      "NightDuration": 5,
      "Hour": 12
    }
     
  13. I'll look into it
     
  14. This working yet?
     
  15. How to change the length of day and night? I do not get ((
     
  16. Shows the current time info:
    /settime

    Modifies the time:
    /settime <hour (0-24)>

    Freeze the time:
    /freezetime

    Unfreeze the time:
    /unfreezetime

    Set the day length:
    /setdaylength <length in minutes (5-720)>

    Set the night length:
    /setnightlength <length in minutes (5-720)>
    Console commands:
    Code (Text):
    Shows the current time info:
    env.time

    Modifies the time:
    env.time <hour (0-24)>

    Freeze the time:
    env.freeze

    Unfreeze the time:
    env.unfreeze

    Set the day length:
    env.daylength <length in minutes (5-720)>

    Set the night length:
    env.nightlength <length in minutes (5-720)>
     
  17. day night shift lasted not working :(

    /setdaylength ?
    /setnightlength ?

    /settime (x) ok
     
  18. Hm.. What is default time of day and night?
     
  19. ya I can set the day length but when it turns night it stays night until I switch it again. Freezing doesn't work
     
  20. It's possible use "/settime" for Moderators? Just use for Auth 1, can?
    Thx!