Мод Weather Lighting Control (WLC) для DayZ (дейз). Установлен на 2 серверах RiseOfServers. Ниже: серверы с модом и описание Workshop.
Weather & Lighting Control
Server-side weather control for DayZ, configured in one JSON file.
WLC replaces the game's random weather with weather patterns you define: clouds, rain, wind, lightning, volumetric and classic fog. It chains patterns into sequences, times them to the clock or to this month's sunrise and sunset, varies night darkness, and fades every change smoothly from the live weather. It runs on the server only - players install nothing.
Requirements
[*]DayZ 1.30 (built and tested on it). No other mods needed.
[*]Optional: Weather & Lighting Control - COT Panel 3.2 or newer (needs Community Framework and Community Online Tools). Update the panel together with this version - a new panel with an older core stops the server's mission scripts from compiling.
Installation
[*]Add -servermod=@WeatherLightingControl to the server start parameters. Server only; players should not be asked to download it.
[*]Disable vanilla weather: in your mission folder create or edit cfgweather.xml:
[*]Start the server. WLC writes WLC/weather_config.json in the server profile folder with 30 patterns and 10 sequences, and the weather runs immediately.
[*]Edit the file and restart to apply changes (or use Reload in the COT panel).
What it does
[*]Patterns - ranges for overcast, rain, snow, wind, gusts, lightning and fog, plus fade and hold times. Picked by weight x time-of-day x in-game-month weights.
[*]Sequences - patterns in order (a storm builds and clears, fog burns off). Random, at an exact hour, in a time window, or anchored to sunrise / sunset, optionally only on a clear, calm night. Overlapping windows form a family: one morning sequence per morning.
[*]Transition director - each change is planned per channel from the live weather. Volumetric fog fades in up to five stages, so no place gets foggier than the foggier pattern. Rain waits for the clouds, wind and fog caps never cut the live value, overcast follows the map's lighting table, the game's own forecast is frozen.
[*]Volumetric fog - thickness, layer depth and fog top (metres) per pattern, with a warn-only whiteout check. Maps without volumetric fog use classic fog.
[*]Night lighting - each night rolls a brightness inside its pattern's range: clear nights moonlit, thunderstorms black.
[*]Anti-repeat, state persistence across restarts, and an API for other server mods (pause / resume, read-outs).
New in 3.0: transition director, new sequence triggers, new built-in fog ladder, fixes. Upgrading from 2.8 / 2.9: your config keeps working - see the Upgrading section of DOCUMENTATION.md.
Configuration
File: /WLC/weather_config.json, created on first start. Write every key: a key left out is read as 0, not as a default. Defaults are those of a fresh install.
[*]config_version (1) - schema number, leave it
[*]enable_weather_control (1) - 1 = WLC drives the weather
[*]enable_testing_mode (0) - 1 = /w commands for everyone, notifications to all players. Test servers only
[*]global_allow_snow (0) - 1 = snow values snow instead of rain
[*]enable_time_of_day_weights (1) - apply time_weights
[*]enable_seasonal_weights (1) - apply seasonal_weights (in-game month)
[*]enable_weather_sequences (1) - sequences can start
[*]thunder_sound_level (1.0) - multiplies lightning frequency
[*]wind_sound_level (0.7) - multiplies gust strength
[*]rain_threshold (0.25) - overcast below which it cannot rain
[*]snow_threshold (0.4) - the same for snow
[*]snowflake_scale (1.0) - snowflake size
[*]night_lighting - enabled (1), moon_intensity_min (0.0) / max (0.9) = darkest / brightest roll in the pattern's range, change_per_night (1), change_per_weather (1)
[*]sequence_cooldown (3) - patterns after a sequence before the next random one
[*]max_consecutive_wet (3) - wet patterns in a row before a dry pick
[*]same_sequence_cooldown (8) - patterns before a random sequence repeats
[*]sequence_pick_mode (0) - 0 = sequences roll in order; 1 = one roll, then a weighted draw
[*]sequence_pick_chance (0) - mode 1: % of picks that start a sequence
[*]time_periods_follow_sun (0) - 1 = dawn / day / dusk / night follow the sun
[*]legacy_fog_fallback (0) - 1 = classic fog also where volumetric fog renders
[*]debug_logging (0) - 1 = detailed logs while tuning
[*]transition_guard, weather_patterns, weather_sequences - below
Patterns: name, weight, time_weights, seasonal_weights, min/max ranges for overcast, classic fog, rain, snow, wind speed, wind direction and gusts, plus wind_max_speed, fog_density, storm_density/threshold/timeout, transition and duration times (real seconds), and volumetric fog: distance_density (thickness), height_density (layer depth; lower = deeper, whiteout risk), height_bias (fog top in metres, at least 50), transition_time.
Sequences: name, enabled, trigger_chance (timed: 0 = always), trigger_on_hour (-1 = not clock-timed), trigger_window_hours (0 = exact hour), trigger_anchor (0 clock, 1 sunrise, 2 sunset), trigger_offset_hours, trigger_max_overcast / trigger_max_wind (0 = no condition), time_weights, patterns.
transition_guard: switches for the fog stage plan, overcast pacing and the forecast freeze (all 1), shortest fade (90 s) and fog fade (120 s), fog and sky rate limits, rain gate margin (0.08) and timing, and the fog warning envelope. guard_version 0 or missing = all defaults. Keep the block whole or delete it whole.
Every key with its range and meaning: DOCUMENTATION.md.
Admin controls
COT panel (optional): COT permission Weather.WLC; works with testing mode off.
Chat commands need "enable_testing_mode": 1 and have no admin check - anyone can use them, and replies and pattern changes are shown to every player. Private test servers only.
[*]/w next, /w prev, /w random, /w PATTERN NAME - change the pattern (instant)
[*]/w list, /w info, /w status - information
[*]/w stop, /w resume, /w time MINUTES - pause, resume, time to next change
[*]/w seq NAME, /w seqlist, /w seqcancel, /w help. /weather works in place of /w
Compatibility
[*]Do not run a second weather-control mod alongside it.
[*]Sun times and the lighting table come from the map. Fog tops are absolute altitudes tuned on Chernarus - retune them for other terrain.
[*]Built-in patterns have no snow; for snow maps set global_allow_snow to 1 and add snow values.
More documentation
Full documentation ships inside the mod folder (next to Addons and Keys):
[*]README.md - overview, installation, quick start, what's new in 3.0
[*]DOCUMENTATION.md - every setting with ranges, sequences and sun anchors, how changes are faded, chat commands, log lines, upgrading from 2.8 / 2.9, API for other mods
[*]example.md - a complete example config with sun-anchored sequences, walked through
[*]CHANGELOG.md - version history