is it possible for a option for players to vote for day or night ?
Day & Night System [Unmaintained]
Discussion in 'Plugin Support' started by Mughisi, Oct 22, 2014.
-
Hello,
I've installed the plugin and tried setting time and freezing it, both as admin and console.
I receive OK message, but nothing happens....
The plugin might have broken with so many updates -
-
-
/settime - ok
/settime x -
Code:[Oxide] 6:40 PM [Error] m-Time: [string "m-Time.lua"]:172: attempt to call method 'AddTime' (a string 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
-
-
love ya work Mughisi!
-
Change :AddTime
To :AddHours
In the file and it should work
As for the time freeze it doesnt work anymore as they removed it complètly i think. -
Works perfect again, thx!
-
-
really? that's nice
as for the freezetime ... yeah ... timer i guess ... even if i really think we shouldnt put timers on oxide exept if it's absolutly necessary (as it's hooked inside OnTick ...).
maybe put it on another hook? like onplayerinit, or stuff like that, hooks that are called often, but not TOO often ^^ -
-
NO TIMERS
as the timers are called on every Tick, so like 30times per second XD -
Seems not to work after last update.
LOL so many posts about it
First time I posted here I swear that where no posts from yesterday neither from today. -
Mughisi updated Modify Time with a new update entry:
Basic functionality for latest Rust update
-
Mughisi updated Modify Time with a new update entry:
Removed a debug value
-
Using latest update, I get an exception whenever I try env.time 10 to change the time to 10.
Code:> env.time 10 Changing the time to 10, please wait a moment. [Oxide] 9:57 PM [Error] m-Time: [string "m-Time.lua"]:244: bad argument #1 to 'floor' (number expected, got string) 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
It does not show an exception in the console when using /settime 10, but it doe also doesn't change the time after waiting a bit.
Also cannot use env.time or /settime command to get current time anymore.
[DOUBLEPOST=1420354068,1420345131][/DOUBLEPOST]So... though I have never used Lua or looked at these plugins until today, I was able to find and fix most of the issues I had. I also finished some of the setdaylength commands and everything seems to work... well, except for it doesn't but I don't think this is an issue with the plugin.
The server side HourOfDay gets changed, and it progresses accordingly to the DayLengthInMinutes. But the clients that connect to my server all seem to have their own day/night cycle with two people right next to eachother having one at night and one at day.
Not sure if anyone has ever had this issue but I'm gonna have to start looking around for it.
Anyway, Mughisi I'll send you a copy of the lua code after I modified it to fix a couple errors I was having... maybe it will save you some time. -
-
This plugin doesn't work for me at all. Uploaded, Restarted Server, Put in the commands and nothing