Make a scenery compatible with Four Seasons

This section is for advanced users. Knowledge of the X-plane library.txt format is necessary.

If a scenery includes winter textures, but these textures must be switched manually by the end user, you can make them working in combination with Four Seasons.

In order to do this, we need to create the following sections inside the scenery library.txt:

  • common assets

  • summer assets

  • winter assets

Should the scenery also include optional textures for Autumn or Spring, just add the related sections.

Note: making a backup of the scenery before working on it, is always a good idea.

Four Seasons exposes a custom dataref called "nm/four_seasons/season".

This dataref can assume the following values:

  • 10: (Season=Spring)

  • 20: (Season=Summer)

  • 30: (Season=Fall)

  • 40: (Season=Winter without ground snow)

  • 45: (Season=Winter with patchy snow)

  • 50: (Season=Winter with ground snow)

  • 60: (Season=Deep Winter) (Only working with TerraMaxx e SAM Seasons compatible sceneries)

Here is an example of a library.txt modified for Four Seasons:

A
800
LIBRARY

PRIVATE

REGION_DEFINE	MyAirport_Common
REGION_RECT	008 63 008 63
REGION MyAirport_Common
{EXPORTS directives here}

REGION_DEFINE 	MyAirport_SUMMER
REGION_RECT	008 63 008 63
REGION MyAirport_SUMMER
REGION_DREF     nm/four_seasons/season < 45
{EXPORTS directives here}

REGION_DEFINE	MyAirport_WINTER
REGION_RECT	008 63 008 63
REGION MyAirport_WINTER
REGION_DREF     nm/four_seasons/season >= 45
{EXPORTS directives here}

Last updated