Neo Async Loading ScreenDocsNeo Settings
CustomizeRecipes

Recipes

Everything the loading screen does is set in plain-text recipes, .hload files; with nothing written, the plugin's own catalog gives a complete screen.

On this page
  1. Where recipes live
  2. The syntax
  3. loading: images, tips, times
  4. A tip's own image and video
  5. screen: when and what
  6. ready: when the screen may go
  7. map: per map
  8. startup: the launch
  9. engine: the expert's levers
  10. music
  11. strings: texts and translations
  12. The style
  13. Bringing the image to life
  14. Messages of the recipe

In a game on Direct3D 12, Windows 64-bit, Neo Async Loading Screen's own thread draws the loading screen while the engine loads (While the Engine Loads).

You do not need one. Write a recipe when Project Settings are not enough: per map, per surface, for the launch, for the engine's levers.

Where recipes live

They are read in this order; a later layer replaces an earlier one, value by value:

  1. the plugin's catalog (Resources/NeoLoadingScreen/catalog/*.hload, read only);
  2. the fields of Project Settings > Plugins > Neo Async Loading Screen that differ from their default (As a recipe, in the Setup tab's Advanced > Recipes, shows them as a recipe);
  3. your project's Config/NeoLoadingScreen/*.hload files, sorted by name. The folder is staged with a packaged game and watched by the editor: saving a file there updates the screen's recipe;
  4. Neo Async Loading Screen Recipe assets: a .hload file dragged into the Content Browser, re-imported when the file changes (Setup Tab).

The launch reads its recipe before any asset exists: only layers 1 to 3 apply to it.

The syntax

Recipe
hload 1
// A comment. Each line is one statement; ";" puts several on one line.
loading {
    tip "Fire spreads fast in dry grass."
    min_time 0.5s
}
  • The first line, hload 1, says the version of the language (optional, recommended).
  • A block is a name, its arguments, then { on the same line.
  • Durations are written with their unit: 0.5s, 250ms. Colors: #RRGGBBAA.
  • Texts are in double quotes, with \" and \n.
  • A mistake never stops the game: the line in error is left out and the error says its file, line and column, then what to write (recipe codes). The Setup tab's checklist shows them (HLP018).

loading: images, tips, times

Recipe
loading {
    image "Images/harbor.jpg"           // repeatable: a PNG or JPEG file next to the recipe, or a /Game/... texture
    tip "Fire spreads fast in dry grass."   // repeatable: one per load, never the same twice in a row
    min_time 0.5s                       // 0 to 10 s
    max_time 20s                        // 1 to 120 s after the new world's begin play (the launch has its own)
    hold streamed pawn                  // streamed, pawn, shaders, textures, or none alone
}

A layer that writes image, tip or hold lines replaces those of the layers before it.

Each screen keeps the room of the tallest tip it may show under the level's name, whichever tip it shows, so that the tip never moves the name, as far as the window leaves room under a long name. A shorter tip leaves the rest of that room empty; a screen with no tips keeps none. When a long name in a small window leaves less room under it than the tallest tip needs, a tip taller than the room left grows down into the bottom margin, and only a tip taller than that margin as well lifts the name, by what it lacks. Two screens put the name at the same height when they keep the same rooms: a tip given to one screen only (Set Next Loading Screen Content) counts in that screen's room, and a screen that keeps the status line's room (Diagnostics) puts the name higher by that room.

A tip can take a key of its own, so that its translation follows it wherever it moves in the list (Localization):

Recipe
loading {
    tip "Wet wood smokes: it gives you away." { key smoke }
}

A tip's own image and video

A tip can bring its own picture. When that tip is picked, its image shows instead of one of the image lines; tips without one keep showing those.

Recipe
loading {
    image "Images/harbor.jpg" { focus 70% 35% }
    tip "Rivers rise after rain."
    tip "Dry grass burns in seconds." {
        key dry_grass
        image "Media/grass.jpg" { focus 30% 60% }
        video "Media/grass.mp4"
        life subtle
    }
}
  • image: a PNG or JPEG file next to the recipe, or a /Game/... texture, as the other images.
  • { focus X% Y% }: the point of the image the crop and the slow drift center on, in percent of its width and height. Without it, the center (50% 50%). Any image takes it, a tip's or not.
  • video: a silent, looping .mp4 file (H.264) next to the recipe, played over the tip's image. A video needs an image in the same tip: the image shows until the video plays, when the player asks to reduce motion, where video does not play, and when the file cannot be read. A video without an image is refused (HL436).
  • life off, subtle or full: how much movement and effect this tip's image gets. Without it, the screen's level (screen { life full } by default, below).
  • Put the files in Config/NeoLoadingScreen (for instance Config/NeoLoadingScreen/Media) so that they are staged with the game; the Setup tab's checklist says when one is missing or outside (HLP025).
  • A layer that writes tip lines replaces the earlier tips with their images and videos.
  • Your game can show a given tip, with its image and video, on the next screen: Set Next Loading Screen Tip with the tip's key (API Reference).
  • Without a recipe, the Setup tab gives the tips of Project Settings the same: an image or a video picked from a file (copied into Config/NeoLoadingScreen/Media), the poster taken from the video's first frame, the focus clicked on the image, the life level (Setup Tab).

screen: when and what

Recipe
screen {
    show startup map connect     // add seamless for seamless travel; `show none` alone turns them all off
    activity theme               // theme, ring, dots, bar or none
    level_name on
    status off                   // off, connect, themes, counts or developer: the status line (Diagnostics)
    input pass                   // pass (keyboard and gamepad reach the game) or block
    life full                    // off, subtle or full: how much movement and effect the image gets
}

life sets the level for each image: off shows the image still, as it is; subtle keeps the style's effects at half strength and slower; full, the default, shows them as the style draws them. A tip's own life wins for that tip. When the player asks to reduce motion, the image stops moving whatever the level. Without a recipe, Look > Image Life in Project Settings sets the same level.

Show Loading Screen from your game always works, whatever show says. widget chooses your own view: a native Slate view (widget native MyStudioView) or a UMG widget, only with engine { thread off } (Your Own Screen).

ready: when the screen may go

Recipe
ready {
    streaming on                 // World Partition streaming complete around the players
    pawn off                     // a pawn for every local player (always on for a joining client)
    shaders on max 5s            // PSO precaching done, then at most 5 s of PSOs created at render
    textures on max 3s           // texture streaming settled, for at most 3 s
    frames 3                     // world frames rendered under the screen before the fade (0 to 120)
    stable 2                     // everything above true this many frames in a row (1 to 120)
    world lit                    // lit, or dark: the world is not rendered while it loads, then warmed
}

The screen never goes before the new world begins play, and it decides to go no later than max_time after it. A wait's max never extends max_time. Its last frame can stay up a little longer when Unreal's render thread is still busy at that moment (at a first launch, the first world's pipelines compiling): the screen's log line then says by how much. Your own conditions: Add Loading Screen Hold, or the Neo Async Loading Screen Process interface (API Reference).

A loading screen in the Holo style fading out: the level's name BEACON RIDGE and its tip, with the new map showing through.
The screen goes once the new map is ready, or at the recipe's maximum hold; here it fades out over the new world.

map: per map

Recipe
map "/Game/Maps/L_Harbor" {
    image "Images/harbor_night.jpg"
    tip "The harbor floods at night."
    title "The Old Harbor"
    ready { frames 20 }
}
map "L_Menu*" { level_name off }

The selector is a map's path (/Game/...), its short name, or a pattern with *, compared without case. The most precise rule wins, value by value: the exact path, then the exact name, then the pattern with the most letters; between two equal ones, the one written last. A map block takes the lines of loading, title, level_name and a ready block, tips with their own image and video included. override map "<selector>" { ... } changes a rule another layer declared; hide map "<selector>" removes one.

A recipe in a text editor: the map rule for L_HarborRow, with the title Harbor Row, two images and two tips, one with its own image and video.
The screen that rule gives: Harbor Row in the Noir style, with one of the rule's tips.
A map rule in a recipe, and the screen it gives that map.

startup: the launch

Recipe
startup {
    image "Images/studio.png"    // a PNG or JPEG file: no asset exists yet at the launch
    min_time 1s
    max_time 60s                 // 1 to 120 s after the first map began play; the launch's own, not `loading`'s
    until first_map              // first_map: once the first map began play and its pipelines are precached; ready: all its waits
}

The launch has its own max_time, longer than a level change's by default, so that the first launch after an install covers the precache of the first map's pipelines; a launch that is ready sooner leaves at once, so later launches are unchanged (While the Engine Loads).

With until first_map, the default, the launch screen waits for the first map's begin play, its minimum time, the holds, the loads in flight and the precache of the first map's pipelines (shaders), but not for the map's streaming, textures or first frames, which a level change waits for (ready); until ready waits for those too.

The launch reads files only: a /Game/... image there is left out (HL441), and the launch shows its plate without it. Put the file in Config/NeoLoadingScreen so that it is staged with the game (the Setup tab's Launch image … copies a picked file into Config/NeoLoadingScreen/Media).

When the screen's own thread draws the launch (a packaged game on Direct3D 12), the launch screen keeps its look until the game shows: its plate and its startup image, from its first frame through the first map's load. The loading images and tips are for the screens after it.

engine: the expert's levers

Recipe
engine {
    thread on                    // the screen's own thread; off: the game thread draws it (UMG allowed)
    rate display                 // display, 60hz or 30hz: a cap without VSync
    priority above_normal        // normal or above_normal
    proxy on                     // the engine's announced blocks are drawn by the screen's thread
    report log                   // off, log or file (Diagnostics)
    warn_gap 50ms                // a freeze longer than this is reported (10 ms to 1 s)
}

The levers that change the engine while a screen shows (shaders, gc, streaming, vsync, slate_gc_lock) are in Engine Levers; each one is given back after the screen.

music

Recipe
music { sound "/Game/Audio/S_LoadingLoop"; volume 0.6; fade 1s }

See Music.

strings: texts and translations

Recipe
strings {
    level_L_Harbor "The Old Harbor"
    loading_status_connecting "Connecting"
}

level_<map> names a map (its short name); the loading_status_* keys are the status line's texts, in English in the plugin's catalog. Each text of a recipe is translatable: its namespace is NeoLoadingScreen (or the recipe's own namespace "..." line), and a strings entry has the key ui.<key>. The screen looks a text up in your project's own localization (a localized text with the same namespace and key), then in the translation files of Config/NeoLoadingScreen/loc, in the player's culture, and shows the recipe's text otherwise. The keys, the files and the Localization Dashboard: Localization.

The style

The screen wears one of the plugin's styles (Project Settings > Plugins > Neo Async Loading Screen > Look > Style). A recipe can change the parts of a style that only the loading screen has: the status line (loading.status), the launch's plate (startup), its logo (startup.logo) and the life of the image (loading.media, below):

Recipe
override theme noir {
    style loading.status { font body; size 18; color muted }
    style startup.logo { size 220 }
}

Bringing the image to life

Each loading image wears its style's life: a slow drift toward the image's focus, a vignette, still grain, soft spots of light, scanlines or a grid where the style has them, a grade of the image's colors, and in some styles one slow motion. Nothing to set up: each shipped style has its own.

A loading screen in the Noir style.
A loading screen in the Holo style.
A loading screen in the Vanguard style.
A loading screen in the Chronicle style.
A loading screen in the Phosphor style.
A loading screen in the Rebel style.
Noir, the default, with Holo, Vanguard, Chronicle, Phosphor and Rebel; the table below gives the image effects of all 21 styles.
StyleWhat its images wear
BaseA light vignette and the drift; the colors as they are.
VanguardA faint amber grid, dark scanlines, an amber glow and grain; harder, less colored pixels; a short drift.
NoirA heavy vignette and grain, a slow push in, the image breathing (it dims a little and comes back, slowly), drained colors.
ArcadeA pink glow floating slowly in its corner, no grain, more vivid colors.
HoloCyan scanlines, a violet glow, faint grain, and a soft band of light crossing the image now and then; cooler colors.
ChronicleA gold glow and soft paper grain, a warm wash, warmer and slightly aged colors, almost no movement.
PaperA faint vignette and a coarse paper grain, no light and no wash; softer, warmer colors with the blacks lifted, as ink on paper; a slow drift.
PixelDark scanlines, as on a CRT, and a vignette; slightly more vivid colors; the shortest drift and no other motion.
CozyA warm lantern light at the top left, swaying slowly, and faint paper grain; slightly warmer, brighter colors; a gentle drift.
SportA volt floodlight in the top right corner, faint grain, and a white broadcast sheen crossing the image now and then; punchier colors; a long drift.
RebelA vignette, print grain and a wash of signal red; drained, hardened colors, as a poster; a long drift.
FathomA cold sea light from above, moving slowly as through water, and grain like particles in it; cooler colors, toward the sea.
PhosphorFine scanlines, a deep vignette and a green glow; the image drained to near gray under a green wash, as on a monitor tube, its brightness breathing slowly.
RetrowaveA faint magenta grid, scanlines, fine grain, and a big low sun glow at the bottom, swaying slowly; more vivid colors pushed toward magenta under a dusk wash.
SumiA vignette, a paper-fiber grain, and a soft band of pale light crossing the image now and then, like a brush stroke; colors washed toward ink.
ImplantCoral scanlines, a coral light from the bottom left and grain, and a faint band of white light crossing the image now and then; harder, less colored pixels, a little magenta.
SomberA heavy vignette and falling-ash grain, the image breathing slowly like a fire burning down; drained, slightly warmer colors; a short drift.
EerieA deep vignette, faint VHS scanlines, the heaviest grain of the styles and a flashlight's warm spill, and a faint dark band crossing the image now and then, like a failing bulb; drained, harder colors.
FrontierA brass lamp from above, grain coarse as old print and a faint brass wash; warmed, faded and slightly aged colors; no other motion.
OrbitA light vignette, a faint plotting grid, a pale planet light at the top right wandering slowly, and star grain; slightly cooler colors.
FjordA cold glow from above and snow grain, a short drift and no other motion; cooled, drained colors.

All of it is drawn under the plate that sits behind the texts, so the texts read as well as they do without it.

To change a style's effects, or to tone them down, write its loading.media in a recipe. Lower values soften an effect, 0 removes it, ambient none stops the slow motion and drift 0% keeps the image still:

Recipe
override theme noir {
    style loading.media { vignette 0.6; grain 0.02; ambient none }
}
PropertyWhat it does
vignette 0.4Darkens the corners, 0 to 1.
grain 0.03Still film grain, 0 to 1 (0.02 to 0.05 is subtle). grain_size 2.5 makes it softer, like paper (1 to 4).
glow <color> <radius> <x> <y>A soft spot of light: its color (its alpha is its strength), its radius at 1080p, its center as shares of the screen (0.9 1 is the bottom right). glow2 adds a second one.
scanlines 3 <color>A thin line every 3 units.
grid 48 <color>A grid of 48 units.
tint <color>A color washed over the image; its alpha is its strength (0.5 at most).
drift 5%How far the image creeps in toward its focus, 0 to 8 %.
ambient noneThe one slow motion: none, glow (the glow spots float), breathe (the image dims a little and comes back) or sweep (a band of light crosses it). ambient_period 10s sets how long one cycle lasts (8 s or more).
sweep <color>The color of the sweep's band; its alpha is how much light it adds at its peak (8 % at most).
grade_contrast 1.1The grade of the image's colors: grade_contrast (0.5 to 1.5), grade_saturation (0 gray to 2), grade_temperature and grade_tint (-1 to 1: cooler to warmer, greener to more magenta), grade_lift (raises the blacks, up to 0.2), grade_mono and grade_sepia (0 to 1).

What to know:

  • The grade changes the pixels of image files (PNG, JPEG) once, when they are loaded. A texture asset (/Game/...) is never changed: it takes the grade's color cast only (contrast, saturation, black and white and sepia need a file).
  • To quiet the effects of one screen or one tip without changing the style, give it a life level: screen { life subtle }, or life off in a tip (see A tip's own image and video, above).
  • A tip's video plays under the same effects, cropped around the same focus, and is graded like its image, so the image and the video match when one fades into the other. With an image file (PNG, JPEG), the video wears the full grade of its style and life level. With a texture asset (/Game/...), it takes the grade's color cast only, as the texture does. For the full grade on a video, give its tip an image file. A new style shows on the video at once.
  • With Reduce Motion on, the image stops moving (no drift, no slow motion), a tip's video shows its image, and the activity mark slows down. The still effects and the grade stay.
  • Each motion is slow and soft, and the plugin bounds each value: no light of the screen changes faster than once every two seconds, a moving light adds 8 % at most, and the grain is drawn once and never moves. Your own images and videos are yours to check: the Setup tab checks each tip video for flashes against the thresholds of WCAG 2.3.1 (the red flash as WCAG 2.0 defines it), with the grade and the color wash your style gives it (HLP026, Setup Tab), an estimate that does not replace a dedicated analysis tool.
  • A theme that extends base and writes no loading.media gets the base style's effects (a light vignette and the drift), with or without Neo Settings' bridge. Write its loading.media in a recipe, with theme <id> extends base { style loading.media { ... } }. A style that extends nothing, read from Neo Settings' files, wears its own backdrop's vignette, grain, glow, grid and scanlines instead.
  • A theme of your recipes that extends one of Neo Settings' styles (a style saved from Cozy or Orbit, for example) wears that style's loading screen in its own colors.
  • The texts and the activity mark are judged where they sit on the plate (4.5:1 for a text, 3:1 for the mark): a color of the style that falls short there is replaced by black or white, the mark's by the title's. On a plate that no color reads on where they sit (light at the top and dark at the bottom, or the reverse), the screen lays a band of the style's own background color under them, as it does over an image: light on a light style, dark on a dark one.

Messages of the recipe

Each message gives the file, line and column, the cause, and what to write instead: a warning keeps the line, an error leaves the statement out and the rest of the recipes load. Each HL code has its entry in Troubleshooting.

Something not as described? Every code the editor or the log shows has its own entry in Troubleshooting.