Page MenuHomeFeedback Tracker

setRain (RainParticles) and rainParams issues on Dedicated Server
Closed, ResolvedPublic

Description

The alternative syntax of setRain are not broadcasted to other clients or JIP clients when executed on server.
Command needs to be executed globally for it to take effect on clients, and then separately for any JIP clients.

Also rainParams returns an empty array on dedicated servers/clients (headlessclients).
Making it impossible to get the current parameters on the server side.

Details

Severity
Minor
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Issue can be tested without a Headlessclient. Only a dedicated server is required, which can be hosted locally or remotely.
But because the rainParams command is empty on anything dedicated I decided to include it in the repro steps.

  1. Start up an dedicated server running any test mission where you have access to console and watch fields.
  2. Check the rainParams on the client side and see the array filled with data.
  3. Global execute diag_log rainParams and check server/headlessclient log to see an empty array being returned.
  4. Server execute overcast and rain commands to make it rain: 0 setOvercast 1; 0 setRain 1; forceWeatherChange;.
  5. Server execute setRain with different rainParams, example setRain ["a3\data_f\rainnormal_ca.paa",4,0.01,15,0.05,25,0.2,0.02,0.02,0.8,[0.101961,0.101961,0.101961,0.14902],0.1,0.1,0.5,0.3,true,false]; <- changes the new snow option to true, which makes the rain make no sound.
  6. See no effect happening on client side. rainParams command doesn't change either on client, and on server/headlessclient it's still empty.
  7. Global execute (or Local execute, just make sure the client runs it) command from step 5.
  8. See changes happening on client (rain sound stopped), including a change in rainParams on client side. Server/headlessclient side still empty array.
Additional Information

Happens both on Linux and Windows server builds.
Tested on Stable, Perf and Dev branches.

Can provide more repro (mission) or information if required.

Event Timeline

JasperRab edited Additional Information. (Show Details)Jul 3 2022, 11:49 AM
BIS_fnc_KK added a comment.EditedJul 3 2022, 4:42 PM

I cannot confirm this, here is diag_log of rainParams from dedicated

15:40:00 ["a3\data_f\rainnormal_ca.paa",4,0.01,15,0.05,25,0.2,0.02,0.02,0.8,[0.101961,0.101961,0.101961,0.14902],0.1,0.1,0.5,0.3,false,false]

BIS_fnc_KK changed the task status from New to Need More Info.Jul 3 2022, 4:42 PM

So I tested more, the rainParams on the dedicated server is not empty array as you claimed. It can be manually broadcast to the client. The params are not meant to be changed and they do not change therefore the game is not syncing them. I am not sure if I want to do anything about it, the syncing can be done by script. The rain intensity does sync across network so intensity of snow will change too and for jip

JasperRab added a comment.EditedJul 4 2022, 10:37 AM

Here's a video showing a simple repro of the rainParams issue. Only using a dedicated server run locally.
Server running on 2.08.149626.

https://www.youtube.com/watch?v=aEm_g9IliGw

On the top right you can see the server log, and bottom right the client log.

2nd video showing the issue on development branch.

https://www.youtube.com/watch?v=R5P9yCFExHU

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jul 5 2022, 8:40 PM
BIS_fnc_KK changed the task status from Need More Info to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
This comment was removed by BIS_fnc_KK.

Confirmed working, can be marked as resolved.

LouMontana closed this task as Resolved.Jan 23 2023, 3:34 PM
LouMontana changed Resolution from Open to Fixed.