• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Increase duration of rainy weather?

TopRamen

Refugee
I would like to increase the duration of rainy weather. I'm not too well versed in xml modding, but I do see biomes.xml has a duration attribute for some weather elements but I am not sure what that really does. Any advice?
Thanks,

biomes.xml section I am referring to for reference:

XML:
    <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <!-- **** Pine Forest: Main Biome -->
    <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <biome name="pine_forest" biomemapcolor="#004000"
        lootstage_modifier="0" lootstage_bonus="0"
        gamestage_modifier="0" gamestage_bonus="0"
        difficulty="1"
        buff="buffForest_Hazard">

        <weather name="default" prob="83" duration="6">
            <Temperature range="76,80"/>
            <CloudThickness range="0,0" prob="35"/>
            <CloudThickness range="10,70" prob="65"/>
            <Precipitation range="0,0"/>
            <Fog range="0,2"/>
            <Wind range="3,22"/>
        </weather>
        <weather name="fog" prob="7">
            <Temperature range="65,70"/>
            <CloudThickness min="35" max="70"/>
            <Precipitation min="0" max="0"/>
            <Fog min="17" max="27"/>
            <Wind min="1" max="5"/>
        </weather>
        <weather name="rainlight" prob="6">
            <Temperature range="76,80"/>
            <CloudThickness range="70,90"/>
            <Precipitation range="40,50"/>
            <Fog range="1,3"/>
            <Wind range="10,25"/>
            <spectrum name="Rainy"/>
        </weather>
        <weather name="rainheavy" prob="4">
            <Temperature range="76,80"/>
            <CloudThickness range="90,95"/>
            <Precipitation range="70,85"/>
            <Fog range="3,7"/>
            <Wind range="30,35"/>
            <spectrum name="Rainy"/>
        </weather>
 
I would like to increase the duration of rainy weather. I'm not too well versed in xml modding, but I do see biomes.xml has a duration attribute for some weather elements but I am not sure what that really does. Any advice?
Thanks,

biomes.xml section I am referring to for reference:

XML:
    <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <!-- **** Pine Forest: Main Biome -->
    <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <biome name="pine_forest" biomemapcolor="#004000"
        lootstage_modifier="0" lootstage_bonus="0"
        gamestage_modifier="0" gamestage_bonus="0"
        difficulty="1"
        buff="buffForest_Hazard">

        <weather name="default" prob="83" duration="6">
            <Temperature range="76,80"/>
            <CloudThickness range="0,0" prob="35"/>
            <CloudThickness range="10,70" prob="65"/>
            <Precipitation range="0,0"/>
            <Fog range="0,2"/>
            <Wind range="3,22"/>
        </weather>
        <weather name="fog" prob="7">
            <Temperature range="65,70"/>
            <CloudThickness min="35" max="70"/>
            <Precipitation min="0" max="0"/>
            <Fog min="17" max="27"/>
            <Wind min="1" max="5"/>
        </weather>
        <weather name="rainlight" prob="6">
            <Temperature range="76,80"/>
            <CloudThickness range="70,90"/>
            <Precipitation range="40,50"/>
            <Fog range="1,3"/>
            <Wind range="10,25"/>
            <spectrum name="Rainy"/>
        </weather>
        <weather name="rainheavy" prob="4">
            <Temperature range="76,80"/>
            <CloudThickness range="90,95"/>
            <Precipitation range="70,85"/>
            <Fog range="3,7"/>
            <Wind range="30,35"/>
            <spectrum name="Rainy"/>
        </weather>
I've never done anything with it, but I'd assume duration is in game hours. Every 6 hours, the weather will change and there will be an 83% chance of no weather, 7% chance of fog, 6% chance of light rain, and 4% chance of heavy rain. That's a total of 100%.

You can make weather more chaotic by setting a lower duration so it's changing more frequently or make it more constant by raising duration so it changes less often. Or you can change the probabilities so that rain is more common. That wouldn't make it necessarily last longer, but you'd get more of it.

Note that changing duration alone may make rain last longer if you raise it, but the overall amount of time when it's raining would remain the same. For example, if it changes every 6 hours, rain lasts at least that long with the possibility of longer if it triggers again and if it changes every 12 hours, rain lasts at least that long with the possibility of longer if it triggers again. So it seems like twice as long. However, everything would last twice as long, including no weather. You'd still be no weather 83% of your game even though the duration changed. Now, by raising duration and playing only short games, RNG could make it so that you'd have more (or less) rain because there isn't enough time to average out, but generally speaking, it won't change the total amount of rain in a game... just how long per weather event. Changing probability is what will change the overall amount of rain, but doesn't guarantee longer rain.

This all assumes that I'm correct in my interpretation of it without having tested it. ;)
 
Last edited:
Back
Top