Closed noxsicarius closed 10 years ago
I had this time script a while ago, and from what I remember It didn't revert back, possible fix?
That script does not work. It reverts after a few minutes, but I have something similar I have been working on.
How about this then perhaps?
if (isServer) then
{
[] spawn
{
while {true} do
{
setDate [2012, 9, 1, 14, 0];
dayzSetDate = [2012, 9, 1, 14, 0];
publicVariable ""dayzSetDate"";
sleep 30;
};
};
};
This would only work if it were called from the server I believe. Worth a try either way. I plan on using a while loop so it does not revert, however public variables are not needed. I believe there is a way to use a public variable to pass it through to other clients, however that is still being experimented with.
And thanks for the help. It is good to have someone other than myself looking into these problems. If you do want to test these scripts for me and you find a fix you can start a pull request for adding it so you get credit for the help in the contributions page of github. It looks good on a resume when you have helped a popular mod. This admin tool became incredibly popular very fast and is hard to keep up with alone. I have also had to put off updates because I have finals soon so even help on a single script will be very good.
I'll be happy to help where I can :)
I have this fixed, just trying to do it in a more efficient way. I still can't get it server side however. That will have to wait until I find a way to move the tools to the server pbo
Might have found a way to make this work for the server
Awesome, I'm happy to try it out for you if you would like!
That would be awesome dude. I'm away for a while so I can't test anything. I will write it up soon. I will give you a quick readme on how to add it in too. You have to do a few more edits to the pbo beceause it creates a custom server event handler.
No problem, I'm busy all day anyway won't be free until tomorrow, so no rush
Time change fixed to work for the entire server. Working on weather next. Should have it in for 1.9.1
Weather and time only last a short time up to 5 minutes until it reverts back to the previous state.