NeoSettingsDocsNeo Async Loading Screen
SettingsSaving and JSON

Saving and JSON

The plugin applies nothing until a player changes a setting, then saves what changed. It never writes your GameUserSettings class, your config files or your assets: what the engine saves by itself stays the engine's (below), and everything else goes to the plugin's own files, or to your own save.

On this page
  1. Where settings are saved
  2. What the engine saves
  3. Backup with JSON
  4. Your own save system
  5. Other behavior fields

Where settings are saved

Project Settings > Behaviour > Storage:

ValueSaves
Auto (default)Readable JSON files under Saved/NeoSettings/ on desktop, the platform's save system elsewhere
FilesAlways JSON files under Saved/NeoSettings/
Save SlotsAlways the platform's save system (Save Game To Slot)
CustomYour class loads and saves the JSON text (below)
NoneNo file of its own: your game keeps the JSON text in its own save

The files: Machine.json (display, graphics, audio: per computer), User0.json (player 1's controls, gameplay, accessibility, language and key bindings), User1.json, User2.json... for the other split-screen players. Writes are grouped after a short delay; Save Settings Now writes at once. In several Play In Editor windows, only the first writes files. A file from a newer version of the game keeps the values it does not know aside instead of dropping them.

What the engine saves

Some settings belong to the engine, and the plugin changes them through the engine's own API, which saves them where it always does, whatever the Storage:

  • window mode, resolution, monitor, frame rate limit, VSync, the scalability levels and the benchmark's results: the engine's Game User Settings, in GameUserSettings.ini;
  • the graphics API chosen for the next start ([D3DRHIPreference]) and the language (the engine's culture setting), also in GameUserSettings.ini;
  • the keys of player-mappable actions: Enhanced Input's user settings, which the engine saves in their own save slot when they change (none while Manage Key Bindings is off: Input).

The plugin's own documents keep the player's choices too: when GameUserSettings.ini was deleted or reset, they are applied again at the next start.

Backup with JSON

Every setting and key binding can be written as one JSON document ("format": "neo-settings/1") and read back:

  • Export Settings To Json returns the text; Import Settings From Json restores it and returns what was applied, rejected (out of bounds, a reserved key) and unknown. Values are always bounded by the recipes, so an edited or old file cannot break the game.
  • Export Settings To File and Import Settings From File do the same with a file (empty path: Saved/NeoSettings/Export.json).
  • The Gameplay page has Export Settings and Import Settings buttons for players on desktop (file and clipboard).
C++
#include "NeoSettingsLibrary.h"

FString SaveSettingsIntoMySave()
{
    // Every setting and key binding as one JSON text: keep it in your own save.
    return UNeoSettingsLibrary::ExportSettingsToJson();
}

void LoadSettingsFromMySave(const FString& SettingsJson)
{
    // Values are bounded by the recipes: an old or edited text never breaks the game.
    const FNeoSettingsImportResult Result = UNeoSettingsLibrary::ImportSettingsFromJson(SettingsJson);
    UE_LOG(LogTemp, Log, TEXT("Settings: %d applied, %d refused, %d unknown"), Result.Applied, Result.Rejected, Result.Unknown);
}

Your own save system

  • None: the plugin writes no file of its own; store Export Settings To Json in your save and call Import Settings From Json when you load it. The export holds the shared settings and player 1's: the other split-screen players' own values and keys are not in it, so a split-screen game uses Custom. A First Launch Quality other than Engine Default applies again at each start, before your import: keep Engine Default with None, or use Custom.
  • Custom: make a Blueprint (or C++ class) based on Neo Settings Storage, implement Load Settings and Save Settings (they receive the scope, machine or user, the local player index and the JSON text), and set it as Behaviour > Custom Storage Class. The plugin asks for each document when the settings start and when a player joins, and hands it back about a second after the last change and when the game quits; keep the texts as they are in your save (your own save game's fields, for example).

Other behavior fields

FieldDefaultMeaning
Apply Saved Settings At StartuponApply the saved choices when the game starts
Display Confirm Seconds15Seconds before an unconfirmed window mode, resolution, monitor or HDR change reverts
Pause By DefaultoffOpen Settings Menu without options pauses a standalone game
Editor ApplySafe OnlyIn the editor: apply nothing, only what cannot disturb the editor (camera, input, audio volumes), or everything
Debug Open KeynoneA key that opens the settings menu anywhere, for development

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