Page MenuHomeFeedback Tracker

cfgweather.xml issues
Confirmed Internally, NormalPublic

Description

i'm trying to deal with large instant changes in both rain (when there's enough cloud to make rain) and the wind magnitude.

using the default file and just observing the weather values with COT weather module:

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce

enable cfgweather.xml and watch the chaos

Additional Information

the cloud cover seems to change gradually over a time period.
Rain and wind make large sudden jumps rather than gradual shifts like the clouds.

i'm been playing with changelimits max value trying to get something that works that at least makes it seem like the changes are gradual but it's so random in the direction it's going in at each change interval it's pretty hard to get anything to really happen when you lower the max.

Either looking for advice or how this file works or just tell me that it's "not working optimally" and you're working on fixing it :)

Players are pretty put out when it goes from not raining at all to absolute monsoon rain at the drop of a hat, every 60-120 seconds assuming the clouds are over 60 out of 100.
Same for wind - calm day, snap your fingers and there is a hurricane

Event Timeline

sileed created this task.Mar 10 2025, 7:53 PM
Geez changed the task status from New to Assigned.Mar 11 2025, 10:45 AM

Observed the weather values for approx 15mins, taking a screenshot when I observed the rain change (since it changed more frequently than other events). noted the transition countdown often didn't reach 0 and the rain would change, that be an issue with COT however.
You will also note that the Clouds stayed at 100 until almost the last screenshot when I noticed the value dropping, even though the transition timer had reset at least once.
Our server has been plagued with long periods of constant rain like this where the clouds seem stuck at 70+ so all it does it rain, with brief periods where you see the rain value jump from 100 to almost nothing (which makes so sense. If it's going to move it should be gradual like the clouds). We haven't used cfgweather.xml since our last wipe (feb 11), so when I did enable it the other day I set Reset = 1, then changed it back to 0 before the next restart (we have a script that re-copies our custom xml each time the server shuts down before the .exe starts again.
copy of our cfgweather.xml attached, I did change the max windmagnitude to 5.0 from 20.0 to try to prevent the large changes in wind that again also occur all at once.

Nate_LapT added a comment.EditedMar 13 2025, 3:00 AM

OH WOW, I'm testing on my map and just noticed the insta off monsoon.
That's new with 1.27 That is BAD!

45 seconds later the rain is back.

Geez changed the task status from Assigned to Confirmed Internally.Mar 13 2025, 11:06 AM
FreaknPwNed added a subscriber: FreaknPwNed.EditedSun, Apr 20, 8:29 AM

I can't get my fog to work as expected, it seems like cfweather.xml isn't even taken into account.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- 'reset' and 'enable' are a bool, and therefore supports: 0/1, true/false, yes/no -->
<!-- 'reset' controls whether you want to load in the weather from storage or not (false by default) -->
<!-- 'enable' controls whether this file is enabled or not (true by default) -->
<weather reset="0" enable="0">
    <overcast>
        <!-- Initial conditions of the overcast (target value, time to change, how long will it stay) -->
        <current actual="0.45" time="120" duration="240" />
        <!-- What is the range of the overcast value (0..1) -->
        <limits min="0.3" max="1.0" />
        <!-- How long does it take to the overcast to change from one value to other (time in seconds) -->
        <timelimits min="600" max="900" />
        <!-- How much should the overcast change (0..1) -->
        <changelimits min="0.0" max="1.0" />
    </overcast>
    <fog>
        <!-- Initial conditions of the fog (target value, time to change, how long will it stay) -->
        <current actual="0.8" time="120" duration="240" />
        <!-- What is the range of the fog value (0..1) -->
        <limits min="0.8" max="1.0" />
        <!-- How long does it take to the fog to change from one value to other (time in seconds) -->
        <timelimits min="900" max="1800" />
        <!-- How much should the fog change (0..1) -->
        <changelimits min="0.0" max="1.0" />
    </fog>
    <rain>
        <!-- Initial conditions of the rain (target value, time to change, how long will it stay), restricted by thresholds (see below) -->
        <current actual="0.0" time="60" duration="120" />
        <!-- What is the range of the rain value (0..1) -->
        <limits min="0.0" max="1.0" />
        <!-- How long does it take to the rain to change from one value to other (time in seconds) -->
        <timelimits min="60" max="120" />
        <!-- How much should the rain change (0..1) -->
        <changelimits min="0.0" max="1.0" />
        <!-- What range of the overcast value allows the rain to be preset (min, max overcast value, time in seconds it takes for rain to stop if the overcast is outside of the specified range) -->
        <thresholds min="0.7" max="1.0" end="60" />
    </rain>
    <windMagnitude>
        <!-- Initial conditions of the wind magnitude (target value, time to change, how long will it stay), restricted by thresholds (see below) -->
        <current actual="8.0" time="120" duration="240" />
        <!-- What is the range of the wind magnitude value in m/s -->
        <limits min="0.0" max="20.0" />
        <!-- How long does it take to the wind magnitude to change from one value to other (time in seconds) -->
        <timelimits min="120" max="240" />
        <!-- How much should the wind change -->
        <changelimits min="0.0" max="20.0" />
    </windMagnitude>
    <windDirection>
        <!-- Initial conditions of the wind direction(target value, time to change, how long will it stay), restricted by thresholds (see below) -->
        <current actual="0.0" time="120" duration="240" />
        <!-- What is the range of the wind direction (angle in radians) -->
        <limits min="-3.14" max="3.14" />
        <!-- How long does it take to the wind direction to change from one value to other (time in seconds) -->
        <timelimits min="60" max="120" />
        <!-- How much should the wind change direction -->
        <changelimits min="-1.0" max="1.0" />
    </windDirection>
    <!-- Snowfall should always remain at 0 for this world. -->
    <snowfall>
        <!-- Initial conditions of the snowfall (target value, time to change, how long will it stay), restricted by thresholds (see below) -->
        <current actual="0.0" time="0" duration="32768" />
        <!-- What is the range of the snowfall value (0..1) -->
        <limits min="0.0" max="0.0" />
        <!-- How long does it take to the snowfall to change from one value to other (time in seconds) -->
        <timelimits min="300" max="3600" />
        <!-- How much should the snowfall change (0..1) -->
        <changelimits min="0.0" max="0.0" />
        <!-- What range of the overcast value allows the snowfall to be preset (min, max overcast value, time in seconds it takes for snowfall to stop if the overcast is outside of the specified range) -->
        <thresholds min="1.0" max="1.0" end="120" />
    </snowfall>
    <!-- Lightning density (0..1), threshold for the lightning appearance (tied to the overcast value, 0..1), time (seconds) between the lightning strikes -->
    <storm density="1.0" threshold="0.8" timeout="45"/>
</weather>