User Tools

Site Tools


weather_system

Weather System

The Weather System controls all the Climatic variables on the Shard. Rains, Snows, Dry… these are things controlled by this system.

We can divide these climatic features in three parameters:

  • State (Dry, Rain or Snow)
  • Persistence (How much time until next State change)
  • Intensity (It controls how “heavy” the Rain or Snow will be, impacting in how many sprites will be displayed on client screen)

All these things are controlled by weather.py and, if a region is raining or snowing, it will be sent to client by core automatically (After a refresh or if they enters the region).

Each TopRegion could be configured with a different Rain and Snow Chance and with different ranges of persistence and intensity for these things by specific tags (Let's see it later).

The system is entirely made in python and all core things could be customized by these ini settings:

  • Default Dry Duration
    It's a Default Dry Persistence for every region that dont have a customized tag about this. This configuration tells how many hours the state will stay on “dry” until next check for State changes.
  • Default Dry Duration Range
    It's the Default range for Dry duration. Let's think we have “4” as Default Dry Duration. So a Range of “2” will make default Dry Duration be something between 4-2 and 4+2. So, a value between 2 and 6.
  • Default Rain Chance
    The Default chance to Rain Starts in some area, if that area doesn't have a Specific Rain Chance value on TopRegion Tags.
  • Default Rain Duration
    Same as “Dry Duration”, but for Rain
  • Default Rain Duration Range
    Same as “Dry Duration Range”, but for Rain
  • Default Snow Chance
    The Default Chance to Snow in some area, if that area dont have a Specific Snow Chance value on TopRegion Tags.
  • Default Snow Duration
    Same as “Dry Duration”, but for Snow
  • Default Snow Duration Range
    Same as “Dry Duration Range”, but for Snow
  • Default Thunder Chance
    The Default thunder chance on Storms. It's checked every 5 seconds in a Storm area and, if pass, a Thunder sound will be sent to all Players in that Region
  • Enable Weather Sounds
    Enable of Disable Weather Sounds, like Rain sounds and Wind Sounds for Snow Regions. Thunder sounds will not be affected by this configuration. Weather sounds can consume more process since a new check is done in main poll for them
  • Enable Weather System
    Enable or Disable the entire Weather System
  • Intensity Value to Rain Becomes Storm
    After this value of Intensity, a Rain changes to a Storm
  • Maximum Default Intensity
    This is the Default value for max Intensity for Rain or Snow, if no tag is configured in that Region. The max value supported by client is 112.
  • Minimum Default Intensity
    This is the Default value for min Intensity for Rain or Snow, if no tag is configured in that Region.
  • Ray Chance on Thunder
    Every Thunder will send its sound to each connected player. But, it can send a Ray too, make a quick flash on screen. So it controls the probability of a Ray on Thunder. It is a absolute value for process and if it is higher or equal to Thunder chance, so every thunder will send a Ray too. It's a cool customized Effect from Wolfpack :)
  • Weather Sounds Interval
    If you enable Weather Sounds, so you can configure Sounds Interval. It's in milliseconds.
weather_system.txt · Last modified: 2014/03/09 19:35 by thooge