swiftlys2/docs/api/ai/

Core Configuration

Core configuration controls framework-wide behavior such as command parsing, plugin loading, menu input, console filtering, console logging, unlocker toggles, and Steam auth mode.

Config File

Edit the following file:

addons/swiftlys2/configs/core.jsonc

Missing keys are auto-registered with their default value and written back to this file on load.

Global Settings

KeyTypeDefaultDescription
CommandPrefixesstring[]["!"]Prefixes recognized for normal command execution.
CommandSilentPrefixesstring[]["/"]Prefixes recognized for silent command execution.
AutoHotReloadbooleantrueEnables automatic hot reload behavior.
ProfilerLevelnumber0Profiler verbosity level.
ConsoleFilterbooleantrueEnables or disables console filtering globally.
PatchesToPerformstring[][]Patch identifiers to perform on startup.
Follow<Game>ServerGuidelinesbooleantrueApplies server guideline behavior. Key name depends on the current game, e.g. FollowCS2ServerGuidelines.
Languagestring"en"Default language code used by the server.
UsePlayerLanguagebooleantrueUses player language when available.
ManualLoadPluginsbooleanfalseToggles manual plugin loading mode.
PluginLoadOrderstring[][]Plugin load order list used by the core loader.
DotnetCrashTracerLevelnumber0Crash tracer level. Supported values: 0, 1.
WindowsFullDumpbooleanfalseEnables full memory dumps on crash (Windows only).

Unlocker Settings

Unlocker controls which restricted engine features are exposed.

KeyTypeDefaultDescription
ConvarsbooleanfalseUnlocks restricted convars.
ConCommandsbooleanfalseUnlocks restricted console commands.

Console Logger Settings

ConsoleLogger controls console output logging and log file rotation.

KeyTypeDefaultDescription
EnablebooleantrueEnables console logging to file.
ManagedEnablebooleantrueEnables console logging for managed (.NET) output.
WriteIntervalMsnumber2000Interval, in milliseconds, between log file writes.
Rotation.EnablebooleantrueEnables log file rotation.
Rotation.Modestring"file_count"Rotation mode. Available: "file_count", "time_interval".
Rotation.AvailableModesstring[]["file_count", "time_interval"]Rotation modes recognized by the logger.
Rotation.MaximumFilesnumber60Maximum number of rotated log files to keep (file_count mode).
Rotation.DeleteOlderThanHoursnumber168Deletes rotated log files older than this many hours (time_interval mode).

Menu controls input mode, navigation behavior, and menu sounds.

KeyTypeDefaultDescription
AvailableInputModesstring[]["button", "wasd"]Available menu input modes.
InputModestring"button"Active menu input mode.
NavigationPrefixstring"➤"Prefix shown for the currently selected menu item.
ItemsPerPagenumber5Number of menu items shown per page.
KeyDefault
Exit"tab"
Scroll"shift"
ScrollBack"f"
Use"e"

Menu.Sound defines the sound played for menu actions.

ActionNameVolume
Exit"Vote.Failed"0.75
Scroll"UI.ContractType"0.75
Use"Vote.Cast.Yes"0.75

SteamAuth Settings

SteamAuth controls Steam authentication mode.

KeyTypeDefaultDescription
AvailableModesstring[]["flexible", "strict"]Available Steam auth modes.
Modestring"flexible"Active Steam auth mode.