Storm Game Framework 2.0.0
User guide
Loading...
Searching...
No Matches
Console variables and debug commands

Use the Unreal Editor Output Log command box, the PIE console, or the console in a Development build. Each process has its own console variable values. In separate-process multiplayer, set or inspect the value in the process doing the work. For example, collect traversal timings on the server when the server runs the AI.

Type a variable name on its own to read its current value and LastSetBy. Add ? for help, or add a space and a value to change it. Record the current value before changing it and restore it after the test. A value typed in the console takes console priority for that process, so restart the process to return to the original configuration.

The defaults below are the values registered in code. Project configuration, device profiles and command-line overrides can change what you see.

sgf.Traversal.Metrics
sgf.Traversal.Metrics ?
DumpCVars sgf.Traversal. -showhelp
DumpCCmds Storm. -showhelp

The dump commands list the entries registered in the current process. Run them in the Editor or a Development build with SGF enabled. The two sgf.StormAnimation.Mantle.* variables are registered only in builds with debug drawing enabled, so they are absent from Shipping builds.

SGF console variables

Variable Registered default Values and when to use it
sgf.Traversal.Metrics 0 Set 1 before submitting a traversal planning request. Filter the Output Log for SGF_TRAVERSAL_PERF to see each job's setup, native path-query time, completion time, latency and counts. SGF_TRAVERSAL_PERF_FRAME shows work units, native queries and scheduler time for each planner tick. Set 0 to stop frame measurements and measurements for new jobs. Jobs already submitted keep their setting.
sgf.Traversal.PathQueriesPerFrame 8 Sets the work-unit budget shared by queued traversal jobs on each planner tick. Values are clamped to 1–64, and each unit runs at most one native path query. Compare 4 and 8 with metrics enabled to see the effect on scheduler cost and job latency. Setup and completion also take time, so judge the result by the measured frame cost.
StormTimeStop.StartWithWorld 0 Set 1 on the server (or in standalone play) before the game world begins play. The Time Stop coordinator and clock relays then start with the world, so remote clients can begin synchronising before the first effect. At 0, the first accepted effect starts the service. Restart PIE or load a new game world to compare the two.
storm.Locomotion.Debug 0 Native animation diagnostics. Set 1 to log each Storm Locomotion node state change and cycle clip change, with its reason, to LogStormLocomotion. It also logs pose snaps and shows a line per character on screen. Set 2 to also log a line per character for every animation update.
sgf.StormAnimation.Mantle.Log 0 Not in Shipping builds. Set 1 to log each native mantle query's probes and hits in the process that runs it. A dedicated server has no HUD to draw on, so use this there. In a client, ShowDebug Storm.Traces draws the queries instead.
sgf.StormAnimation.Mantle.DebugSeconds 4 Not in Shipping builds. How long, in seconds, the mantle queries drawn by ShowDebug Storm.Traces stay visible.

For a slow AI route, enable metrics, reproduce one request and find its job ID in the per-job log line. Compare setup_ms, native_query_ms and completion_ms with latency_ms. High latency with low work times suggests the job spent time queued. Change the work-unit budget for a second run, compare scheduler_ms with job latency, then restore both values.

Inspect live state

Command Where to run it and what to check
Storm.DumpLoadedAssets Run after SGF Asset Manager shows Ready in the dashboard. The command needs UStormAssetManager or a subclass as the project's Asset Manager. With any other manager it stops the process with a fatal error. LogStormAssets lists the retained asset names and pool count. Use it after loading a profile or item to see whether the manager kept it.
Storm.Audio.Dump Run in the client or PIE process where you hear the problem. LogStormAudio shows each local listener's requests, effective state, remote revision, pending loads and active playback. Check which request won and whether playback is waiting for an asset. A dedicated server has no local listeners.
ShowDebug Storm.State Toggles a text panel for the HUD's debug target. The target must be a character with a UStormNativeAnimationComponent whose mesh runs an Animation Blueprint derived from UStormNativeAnimInstance. The panel's lines are described below.
ShowDebug Storm.Shapes Toggles drawing of the capsule, the velocity and input arrows, and the actor's facing. It also draws the visual facing after turn in place, the aim from the head and the predicted stop point while coasting. The motion's path and end, and an arrow from the side of the last hit, complete the set.
ShowDebug Storm.Traces Toggles the limb IK floor traces under the capsule and each foot, with their hit normals, the foot lock anchors, and the native mantle queries with their rejection reasons.
ShowDebug Storm.Curves Toggles a list of the character's evaluated animation curves, including the foot contact and foot lock curves.
ShowDebug Reset Turns off every ShowDebug category and clears the selection, which ShowDebug saves to the user's configuration. While ShowDebug is on, use Page Up and Page Down to cycle the debug target, for example to another player's character.

What ShowDebug Storm.State shows

The panel starts with the character's name and the network role of this copy. A copy is the version of the character on one machine: the server's, the owning player's or another client's. See Multiplayer and networking for how copies relate. The following lines cover:

  • Locomotion and stance. The requested and presented locomotion tag, stance, gait, speed and air phase.
  • Storm Locomotion node. Its state, its last change, its cycle and transition clips, and the turn.
  • Look. The Storm Look node's look request or free look, what its chain applied, its spine and head weights, and whether it is holding its side while moving.
  • Aim. The aim inputs and their source. On another player's copy, it also shows how far playback runs behind the server's latest view.
  • Overlay. The overlay tag, whether its own layer or the character aims it, and any action claim on it.
  • Actions and motion. Each action channel and the current animation-driven motion.
  • Reactions. Each reaction channel, the reaction record, the knockback, the active effect and the last hit.
  • Limb IK. The foot locks, the overlay's grip, and the held item's grip with its hand, source and weight.

Editor maintenance command

Command Effect
StormAppearance.MigratePartCatalog Lists appearance parts that were saved without part-picker metadata, in LogStormAppearanceEditor. To resave chosen parts, append Save and the exact object paths it listed. There is no form that saves every part at once. Append Exit to close the editor after the command.