Page MenuHomeFeedback Tracker

"setDate" executed on server sometimes breaks weather for 1st JIP
New, WishlistPublic

Description

It is hit and miss bug, but repro is ok I think. Basically setDate executed on servewr after mission start, may or may not change the date on the client. When it fails, it breaks weather (rain in particular) for the first JIP attempt, consequent attempt show synced weather.

Details

Legacy ID
3859575688
Severity
None
Resolution
Open
Reproducibility
Always
Category
Multiplayer
Steps To Reproduce

join dedicated server with defauklt mission
time is 12 noon

EXECUTE ON SERVER:
0 setOvercast 1;
0 setRain 1;
forceWeatherChange;

rain on client

EXECUTE ON SERVER:
_d = date;
_d set [3, 23];
setdate _d;

(Now this part is tricky because sometimes it works sometimes it doesnt)
IF date/time changes on the client as result THEN change it back:

		EXECUTE ON SERVER:
		_d = date;
		_d set [3, 12];
		setdate _d;
		
		at this point there should be no effect, proceed further

ELSE proceed

drop to the lobby
come back

no rain on client (still raining on the server though)

drop to the lobby
come back

rain on client
from here on it doesnt fail if repeated

Additional Information

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Multiplayer.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 3859575688.May 7 2016, 6:43 PM
ange1u5 added a subscriber: ange1u5.May 7 2016, 6:43 PM

I think I can concur with this. Been having a problem with setDate as well in that it works on my friends dedicated server, but not my own. Instead ignores that and goes straight to the default editor set time. But on the map, the info says the time should be completely different. Seems to also break the random weather script I have installed.