ServerSync (Time / Weather / Wind + More)

@SuperDaniel by all means man fork the repo and add them. I’ve never worked with cloudhats before and I would be more then happy to help / add them in.

@Gregamite mainly I wanted to remove the ‘snaps’ of the time changes. If the script notices you are out of sync, it will gradually try to get you there (for weather) for a smooth transition. No more just instant cloud change + thunder.

For time it checks periodically against the server acting as an authoritative time keeper, and keeps in sync with the server. It prevents people using trainers / menu’s to change their time, and be out of sync with other players in the game.

3 Likes

Tested works fine and also low ms good job

1 Like

Outstanding script!

Only issue I’ve had is the sky occasionally flashing when weather transitions. I’ve also noticed the clouds flash every few seconds. I’m not sure if this is related to natural vision or the script.

1 Like

I just think for if in server time i 11:00 sync eith player time for 11:00. :smile:

Sorry mate for my english and my question so dumb xDDD but i dont know how add perms on my server for this script… someone can help me?

Vespura wrote up a good explanation about how to find your ID’s and ACE perms. You should look for his posts.

Im sorry again but my problem doesn’t with identifier, more like with how add perms ACE. I tried tonight and my test server went downt xDDDDDD so where i need add this perms and how?.. sorry again if this post is so dumb but im bit noob on terms to dev and scripts.

One more time, thx for help and im sorry for my english

hello,
may i ask how can i add the snow weather in automatic weather change system ? with chance like rain

Look at the bold below.

This means CLEARING (which is a light rain) can now move into SNOW or SNOWLIGHT.

then “SNOWLIGHT” can move now additionally back to CLEARING… same for “SNOW”

ss_weather_Transition = {
[“EXTRASUNNY”] = {“CLEAR”,“SMOG”},
[“SMOG”] = {“CLEAR”,“CLEARING”,“OVERCAST”,“CLOUDS”,“EXTRASUNNY”},
[“CLEAR”] = {“CLOUDS”,“EXTRASUNNY”,“CLEARING”,“SMOG”,“OVERCAST”},
[“CLOUDS”] = {“CLEAR”,“SMOG”,“CLEARING”,“OVERCAST”},
[“OVERCAST”] = {“CLEAR”,“CLOUDS”,“SMOG”,“CLEARING”,“THUNDER”},
[“THUNDER”] = {“OVERCAST”}, – Always rotate away from Thunder, as it’s annoying
[“CLEARING”] = {“CLEAR”,“CLOUDS”,“OVERCAST”,“SMOG”,“SNOW”,“SNOWLIGHT”},
[“SNOW”] = {“SNOW”,“SNOWLIGHT”,“CLEARING”},
[“SNOWLIGHT”] = {“SNOW”,“SNOWLIGHT”,“CLEARING”},
[“BLIZZARD”] = {“BLIZZARD”},
[“XMAS”] = {“XMAS”},
[“HALLOWEEN”] = {“HALLOWEEN”}

TLDR: Left side is what the weather current is, right side is options it has to transition to.

1 Like

ow thanks and also can we put a chance if its snow it take longer than other weathers ? because snow is really good for FPS boost :stuck_out_tongue:

With how it’s written above, there’s a 66% chance that snow would continue each time it cycles every 15 minutes (the default).

1 Like

Just to add…

Halloween does nothing but looks to set the weather to neutral, this is used for the North Yankton map from what I’ve found. The same can be said for Blizzard and Light Snow as they do not set snow on the ground which would mean they were made only for SP missions in North Yankton.

Its also a shame that the RAGE engine doesn’t allow you to transition over time into Snow either, no matter how much I test or try to make it happen, it just doesn’t, you’ll always snap into snow.

So to keep it “immersive” I’d recommend keeping Halloween, Blizzard, Light Snow and Snow on a configurable setting on the side where they can be turned on/off based on the state of what the server owner would like.

Update: Halloween weather type from the looks of it requires you lock the server time to 00:00 to get the correct effect… wish I knew this a week ago!

just for info
if there are people who use vMenu

go in your permission files and desable

‘‘setr vmenu_enable_time_sync’’
and
‘‘setr vmenu_enable_weather_sync’’

if not, this possible to have a white screen every 5 secondes.

2 Likes

Are you able to freeze weather?

1 Like

Not currently. I never thought someone would want to freeze it. I guess I could add that in the future.

1 Like

it will be useful like to make a preset based on seasons or something like that

how do you remove permissions to make it available to all

@NadeStevens you could use the following ACE perms to make it available to all:

add_ace builtin.everyone "changeWeather" allow
add_ace builtin.everyone "changeTime" allow
add_ace builtin.everyone "freezeTime" allow

add_ace builtin.everyone command.weather allow
add_ace builtin.everyone command.time allow
add_ace builtin.everyone command.freezetime allow

Is it possible to use the chat command /blackout in this script as in vSync?

Hello, is it possible to disable the npc font and ems with the script if yes how?