Page MenuHomeFeedback Tracker

Rain
Reviewed, NormalPublic

Description

Is there a way to change rain settings? We're often getting hours upon ours of rain at a time which is just ruining the game for us. Thanks.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10
Category
Gameplay

Event Timeline

Geez changed the task status from New to Reviewed.Oct 31 2019, 12:47 PM
Geez added a subscriber: Geez.

Hello Ivanhereisvodka.
Putting this into your init.c file located in the mission folder will reduce the amount of rain significantly:

Weather weather = GetGame().GetWeather();
weather.MissionWeather(true);
weather.SetRainThresholds(0.90, 1.0, 30);
init.c

Regards,
Geez

Naoki added a subscriber: Naoki.Feb 10 2023, 8:21 PM

Hello,

Thank you for your reply, I wan't to make it work on my server too.
Can you elaorate on where to put thoses lines?

Do I add them after:
weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0);
and before:
//INIT ECONOMY--------------------------------------
?

Hello Ivanhereisvodka.
Putting this into your init.c file located in the mission folder will reduce the amount of rain significantly:

Weather weather = GetGame().GetWeather();
weather.MissionWeather(true);
weather.SetRainThresholds(0.90, 1.0, 30);
init.c

Regards,
Geez

@Naoki Weather is now in the cfgweather.xml file

Naoki added a comment.EditedFeb 12 2023, 10:45 PM

I've trying changing things in the cfgweather.xml but i can't make it works.

I've tried setting enable="1" and "0", i got no changes
I use the vanilla one with no modifications to the numbers.

In admin, i can change the weather and make it rain but i've seen that my overcast is blocked between 10 and 29 and my fog between 0 and 14.
Also it can rain without clouds and the fog does not show no matter what number it's set at.

I'm on the Deerisle map, i don't have a weather mod.
I got it to rain once with enable="1" and deleting my 3 "events" files but it was not stoping after 30 minutes
i took 4 restart and the rain is gone but now i don't have any rain again.

I couldn't replicate this on a local server

si now i'm trying to see if something can be change via the init.c

If you've seen some of this before, please share with me any idées on how to make it rain a little sometimes.

Thanks you

Naoki added a comment.EditedFeb 12 2023, 10:47 PM

here is my init.c weather part:

	//INIT WEATHER BEFORE ECONOMY INIT------------------------
	//Weather weather = g_Game.GetWeather();
	//weather.MissionWeather(false);    // false = use weather controller from Weather.c
	//weather.GetOvercast().Set( Math.RandomFloatInclusive(0.0, 1.0), 1, 0);
	//weather.GetRain().Set( 0, 0, 1);
	//weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0);

My weather file is the vanila one.

Update:

after deleting my Events files and changing the weather ingame with admin panel, the fog and overcast appears and aren't restricted in a range