Dynamic Weather & Seasons 1.0.1

Please do not ask when mod authors will update their mods to 3.9.X
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

Accelerate the progression of seasons based on the number of raids played. Control the weather type(s) that occur during each season.

*** If you would like to support me and my work you can donate to me here. Thank you! ***

--- Dynamic Weather & Seasons ---

DynamicWeatherAndSeasons is a mod that allows control over the weather and seasons for SPTarkov.

--- Overview ---

- Accelerate the progression of seasons based on the number of raids played.

- Control the weather type(s) that occur during each season.

- Please read the README.md for more information on how to use the mod.

--- Installation Instructions ---

1. Begin by downloading the 'PreyToLive-DynamicWeatherAndSeasons-v1.0.1.zip' file from the provided link or the Github repository.

2. Extract the contents of the downloaded archive. You should now have a folder named 'PreyToLive-DynamicWeatherAndSeasons' containing the mod files.

3. Navigate to the location of your SPTarkov folder on your computer.

4. Inside the SPTarkov folder, find the 'user/mods/' directory.

5. Place the extracted folder containing the mod files into the 'mods' folder within your SPTarkov folder.

  • Version 1.0.1

    --- DYNAMIC WEATHER & SEASONS VERSION 1.0.1 --- COMPATIBLE WITH SPT 3.9.0 & 3.9.1 ---


    --CHANGELOG-----------------------------------------------------------------------------------------------------------------------------------------

    • Added an option that randomly selects a season before each raid. See README.md for example.
    • Added console logs.
  • Version 1.0.0

    --- DYNAMIC WEATHER & SEASONS VERSION 1.0.0 --- COMPATIBLE WITH SPT 3.9.0 ---


    --CHANGELOG-----------------------------------------------------------------------------------------------------------------------------------------

    • Accelerate the progression of seasons based on the number of raids played.
    • Control the weather type(s) that occur during each season.
  • [UPDATED COMMENT]


    If anyone has the mod not counting the days increasingly or not changing seasons, please check this quick fix by @AcidMC. I will provide a quick tutorial here, but feel free to check his comment just below for full details! Also below will be another instruction on how to fix if the game season is locked to the IRL date.


    FIX - To fix this mod not counting days after each raid / overwriting and reading the same date data:


    Navigate to \user\mods\PreyToLive-DynamicWeatherAndSeasons\src\ and locate DWSMain.ts. Inside this file, locate the following 5 lines of code, and move them to the new location as follows:


    Screenshot-394-DWSMain-fix.png


    After moving the 5 lines of code outside of the staticRouter..() (as shown in the image above), the mod should now work perfectly. Thanks for @AcidMC for figuring this fix out!

    FIX - SPT locking season to IRL date (how to unlock season, which also disables seasonal events):


    A non mod-related problem I had, was that in SPT-internal files, the weather.json in \SPT_Data\Server\configs was always overwriting any mod trying to change the in-game season. After modifying the seasonDates section within this file, mods were now able to change the season perfectly without being overwritten by SPT to the in-real-life season. Here is the full file for easy copy-paste:


    After fixing these two issues (mod-related and SPT-internal weather,json), I was now able to have seasons correctly change in-game on the fly without needing to restart the client or server. I hope this helps other people with the same issues.


    Also a big thanks to @PreyToLive for creating this mod and @AcidMC for providing a working mod fix!

    Heart 1 Thumbs Up 1
    • Howdy partner. Maybe you also have any idea about winter snow causing rain sounds and falling through walls? That I have no idea about xd


      P.S. I provided a solution just below on how to fix the mod. What you edited is SPT files themselves. It may work, you may need to do these each time you install/update SPT. Worse yet, who knows if this change breaks anything at all. It may affect some season events or smth..

      Heart 1
    • Thanks, I have now UPDATED my comment above. This mod is now perfectly working for me.


      My fixed weather.json only modifies the bottom seasonDates part to not overwrite any season-changing mods, and as a byproduct will ignore seasonal events (e.g. christmas, halloween), as this mod is giving SPT the season- and weather-information only, and not specifying any date for SPT to check for events.


      As for the snow falling indoors (e.g. ULTRA mall, resort, ..) should that happen, I don't know a fix for that, but I have read in another weather-changing mod's comments section, that a new EFT version broke the snow(-fall) in SPT and they didn't know a fix for it, except for disabling snowfall...

    • A'ight thx m8


      Cheers for more verbose explanation of the fix. <3

    • Sorry AcidMC for not responding and thanks to both you and AdjoiningVariation30 for this discovery. I unfortunately haven't had much time to work on keeping my mods updated as I have been busy with work but hopefully if I get a break this weekend and have the nerve to sit down and code I'll try to upload an official update. :)

      Heart 1
    • No worries m8.

  • Hello folks!


    So I noticed that I seem to have the same problem as others who use this mod: the mod does not update the seasons properly, many claimed they have to reload the game and/or server to make it count the days.


    I looked through the code and through the debug messages in console, and think I may have found an issue in it and a solution for it. cc @PreyToLive


    I assumed for some reason the mod does not update some values properly. So, whenever the mod tries to update the days/months etc., it does for sure. But I think it does so only 0 or 1 times (based on the values, in fact it does the updates as many times as client/items is called, but value-wise it doesn't), because values for profileDay, profileMonth, profileYear and profileSeason are loaded in a static router registered via staticRouterModService.registerStaticRouter method. And since the require statement for the config file does not import configs after each time the file is enhanced (presumably, I am not sure, but I think it should), the data in question is not updated properly.


    I then fiddled a bit with the code, and seems like I managed to fix the problem and make it update the data properly. To do so, I moved file import and profileDay, profileMonth, profileYear and profileSeason definitions outside the static router defined in the mod:


    Code: ./src/DWSmain.ts
    const dbProfile = require("../db/profile.json");
    
    let profileDay = dbProfile.date.day;
    let profileMonth = dbProfile.date.month;
    let profileYear = dbProfile.date.year;
    let profileSeason = dbProfile.season;

    It does not harm the way the mod works: profile.json is now loaded only once and is used only to get the last stored values (values since the last raid before you restart the server). The static router defined in the mod will store new values in the file each time it is called when client/items is invoked. The data will be updated in these variables properly, once a raid is finished, since they are now stored outside of the router's scope, and they are not rewritten by previous values from the file (which, I think, is the root of the issue).


    I've set month length to 1 just now, did several test runs and checked the console output as well as the data stored in the file - I think it should be fine now.


    I hope I've been of small help fixing that problem, I like the mod, it's a must-have for anybody in my book. Cheers! ;)

    Heart 1 Thumbs Up 1
  • summer is being forced as autumn, maybe its EFT forcing it? Is their a way to override that?

  • Seems like a cool mod, but for some reason the day count does not increase at end of raid. It only increases if both server and client is restarted. This is making the season stay forever unless you restart server and client a lot :(

  • Hey can i ask if an option to toggle a setting for local date would be possible so if 26.06.2024 IRL then "sep" would be set in game? That would also disable conflicting settings this might be one: ("monthDurationInRaids": 30,)


    basically what live does as I've heard is default now.

  • What to do if the mode does not work among players of version 3.9.8



    1. Enter AllTheSeasons file

    2. Enter package.json file

    3. "sptVersion": "^3.9.x",= "sptVersion": "^3.9.8", save changes and run

    • Doesn't work for me, are you sure?
      UPD: Nvm, thought its for this mod, sorry

    • After I changed it, it didn't apply right away. Instead, check that the weather changed after the mode name on the server and it was applied.

  • Love this mod, its just turned Autum for me and its how Tarkov should of been from the start dreary and grey with some winter sun shine. Also works well with the film reshade ^^ :love:

  • hello wont work for me...it is always sunny whether i use this mod or not any help?

    • He'll have to update it. It's so far only compatible with 3.9.4 and earlier

      Crying 1
  • I see you say you're updating it. Just wanted to say thanks for all the great mods you make! SPT isn't the same without some PreyToLive mods added

  • Doesn't work on linux at all. No settings changed, tried reinstalling

  • Hey! You probably heard about it but im also stuck in winter/autumn. The only setting I changed was "monthDurationInRaids": 4, Im on the latest spt version (3.9.5) and on your latest mod version. I have the same problem as campi6277. The season start at summer but after few raid it switch to winter and stay in winter. I have over 70 raid played and only the first 10 raid was in summer,


    The profile.json seem to be stuck at 1 february 2025

    • It would appear to be some sort of incompatibility with later SPT updates.

    • Yes it needs to be updated. Working on it atm.

  • im getting snow inside buildings like any building on reserve has snow falling inside and inside every building the ground is white with snow, its very strange

    • this just turns on/off the seasons and weather. nothing i can really do about BSGs bugged seasons and weather

  • I don't know why the weather is stuck always in autumn/early winter.

    Even if the console log shows it's loading summer weather (also in the profile.json is set to summer) raids are still set in autumn with bare trees (but outside the map they are green), a bit of snow here and there.

    This is the only weather mod I have. I can't figure out why my weather/season system is broken.

    • did you change any of the settings in the mod? what spt version are you using?

    • I think I fixed it by manually deleting the SPT cache and profile files, and also by editing the "profile.json" in this mod's folder setting "1", "July" and "summer" and empty fields in weather variables.

      Now it seems it works well, even if there is a difference between console logs and actual weather (sometimes it says "clear sky, no wind", but it's raining with medium strong wind)

  • Hi, I downloaded your mod, but the seasons don't change.

    Thinking 1
    • By default 10 raids equal to 1 month passed.


      You can change that inside the config file. The config file is here:

      ..\SPT\user\mods\PreyToLive-DynamicWeatherAndSeasons\config

      Thumbs Up 1
  • Does this get rid of the snow? Because at this point I'm so sick of it lol.

    • If you don't want snow then set the seasons to anything but winter.

  • Если кто то зашел сюда для того что бы поменять время года, не морочьте себе мозги с модами.
    В файле .....\SPT\SPT_Data\Server\configs\weather поменяйте диапазон месяцов для нужного вам сезона, что бы тот месяц который сейчас ИРЛ попадал на нужный вам сезон

  • Just curious, does the game have autumn now? I thought it was only winter, spring, and summer (vanilla)


    "january": "winter",

    "february": "winter",

    "march": "spring",

    "april": "spring",

    "may": "spring",

    "june": "summer",

    "july": "summer",

    "august": "summer",

    "september": "autumn",

    "october": "autumn",

    "november": "autumn",

    "december": "winter"

  • It doesn't seem to work for me, im not sure why but mine seems to be coded to look in the wrong directory for the profile json?


    Error in [DynamicWeatherAndSeasons] /client/items: ENOENT: no such file or directory, open 'user/mods/db/profile.json'


    If i copy the db folder out and into the user/mods folder as noted above, the error goes away but it also doesnt seem to work properly.

    • Are you running your server on linux? I have the same issue and have a feeling that it might have something to do with the linux paths but couldn't find a way to fix it :/

    • yup. Im trying a different seasons mod now though will see how it goes.

  • How does it work which key opens the menu?

  • Very nice :D for me 2-3raids for 1months seems a good balance.

    would it be possible to integrade the seasonal events like the gifter?

    ///

    -how does the events actually work in vanilla spt? with my local-pc-dates?

  • how does winter work? Is it like normal? Does anything important happen?

  • Is the winter custom made? It doesn't look like the "vanilla" winter. Land isn't quite cowered in snow, no snow crunch and it also snows inside buildings

  • Is there any chance to sync the weather with my friends so we have the same weather? atm we have different seasons every raid when set on random

    :P
    otherwise insane mod i really love it 10/10

  • Hi, wanted to check with you if the mod core code works like this so you can mark it as compatible with SAIN ?1a4247f45a.png

  • Do you have a winter map? For example, snow

  • You make some banger mods, was waiting for someone to allow something like this, awesome!


    Thanks :)

  • Can you share a code that makes it always cloudy or rainy?

  • Using Fika each player gets different weather when using randomMonthEachRaid : true,. Kind of weird

  • Does this record where I am in the cycle when I close the server or it resets every time the server is restarted?

  • Does this work with 3.8.3?

    • No 3.8.3 mods work with 3.9.0 and vise versa