Jump to content
jts_2009

synchronize Overcast

Recommended Posts

Hello. I tested now a weather-change in MP and got some problems. Im changing overcast and rain, but the problem is only overcast.

 

time multiplier is 20. For example: Overcast of 0.9 should change to 0.1 in 300 seconds.

 

_Delay = 300;

_Delay setOvercast 0.1;

simulWeatherSync;

 

On server (Host) it changes much faster than on client. The difference of overcast between server and client ~0.4

 

What I tried: skipTime + 1;skipTime -1 - thats seems to work. But not always. After the overcast is changed, you have to wait ~10 seconds to get that skipTime-thing to work. Also I executed it in console, when overcast got out of sync

Is there maybe some trick to sync the overcast?

 

300 seconds is fast with time multiplier of 20, yes. But thats how it should be. Thats ok

 

55B2B15EEEF293DDF3918839D389C509E260E46D

Share this post


Link to post
Share on other sites

My weather changes every 300 seconds. 1 hour is not an option 🙂  The actual problem that I can't change overcast in a short period of time on the client side

Share this post


Link to post
Share on other sites

So: (300 * timeMultiplier) setOvercast 1

 

If not enough, see Biki:

skipTime -24;

(300 * timeMultiplier) setOvercast 1;

skipTime 24;

0 = [] spawn { sleep 0.1; simulWeatherSync };

Share this post


Link to post
Share on other sites

That will not solve the problem of desynced overcast

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×