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}" } }
Day & Night System [Unmaintained]
Discussion in 'Plugin Support' started by Mughisi, Oct 22, 2014.
-
[DOUBLEPOST=1424299358,1424243946][/DOUBLEPOST]The console commands f1 env.time not works neither.
¿what can i do? -
This plugin is completely broken. Freezing time, night length etc not working from console.
-
thanks, Hemogoblin36.
[DOUBLEPOST=1424303309][/DOUBLEPOST]
thanks. -
-
-
-
-
i use this
{
"DayDuration": 540,
"NightDuration": 180
}
but when day gone it is always night -
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:
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
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!" ] } }
Code:{ "DayDuration": 120, "Frozen": true, "NightDuration": 5, "Hour": 12 }
-
I'll look into it
-
This working yet?
-
How to change the length of day and night? I do not get ((
-
/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)> -
day night shift lasted not working
/setdaylength ?
/setnightlength ?
/settime (x) ok -
Hm.. What is default time of day and night?
-
ya I can set the day length but when it turns night it stays night until I switch it again. Freezing doesn't work
-
It's possible use "/settime" for Moderators? Just use for Auth 1, can?
Thx!