Debugging and Tests
Tools
| Tool | Use |
|---|---|
| Console commands | aft.ShowBoxes (simulation boxes), aft.PlayAction (start an action), aft.Arcade (the arcade of a fighter, at any fight, without the menus), aft.CharacterSelect.Preview, aft.CameraShake, aft.Rumble, AFT.Editor.TimelineView: values and an example capture of each. |
| Training mode | Frame meter, input logs, damage / frame data, dummy (stand / CPU), position resets, health and meter refill. |
| Validate (Fighter Editor) | Checks a fighter and all its actions. |
| Validate Setup (Match Tester) | Compiles a match configuration and logs the errors without playing. |
| Sync Test net mode | Every frame is rolled back and checksummed: catches non deterministic code on the frame it happens. |
| Rollback Loopback net mode | Two peers in process with simulated latency, jitter and packet loss. |
| Loop Matches (Match Tester) | Restarts automatically: soak testing. |
SetDebugSlotInput(PlayerSlot, Bits) | UAFTInputSubsystem (Blueprint callable): forces the simulation inputs of a player slot, for scripted tests. Directions: Up 1, Down 2, Left 4, Right 8; buttons from 16. Bits below 0 gives the slot back to its device. Ignored in Shipping builds. |
Logs
Everything AFT logs goes to the Output Log (Window > Output Log, filter the categories with Filters > Categories) and to
Saved/Logs/<Project>.log.
Report a bug
Reproduce the problem, then open Tools > AFT > Open Logs Folder and send <Project>.log with your bug report (the previous runs
are kept as <Project>-backup-<date>.log). Tools > AFT > Output Log opens the log window. The first AFT line of the log gives
the AFT version, the engine version and where the plugin is installed (engine or project).
Categories
The tools log one readable line per user action and its result: which asset, what changed, how many. Warnings and errors give the asset path and what to do. Nothing is logged every frame or tick; the details of each item are in Verbose.
| Category | What it records |
|---|---|
LogAFTGame | Gameplay framework, battle, online. For example a state of the state graph whose action slot is missing logs a warning and falls back to Idle. |
LogAFTSim | Simulation and data compilation. |
LogAFTEditor | The first line at editor start (AFT and engine versions, plugin folder) and every UAFTEditorLibrary script function: its result, a warning naming the function when an argument is None, the counts and failures of SaveAllUnder. |
LogAFTWizard | The Fighter Wizard: opened (and from where), the Create settings, a summary (created, matched, fallback, without animation, kept, reused, commands), a warning listing the actions without animation, then the fighter saved and opened. Verbose: one line per action. |
LogAFTFighterEditor | The Fighter Editor: opened (warnings if the fighter has no mesh or an action is opened alone), events added / deleted / duplicated, tracks, frame edits (before and after), preview opponent, Validate (each issue and a summary). |
LogAFTStateGraphEditor | The State Graph editor: opened, Compile, Auto Arrange, Reset To Default, deleted nodes, a warning for transitions without target. Verbose: the automatic compiles. |
LogAFTCpuEditor | The CPU Editor: opened (warning without preview fighter), tactics, cards, Generate, each simulation or why it could not run. |
LogAFTMatchTester | The Match Tester: match start (mode, teams, stage, netcode), "did not start" with a hint, match end, presets, Validate Setup. |
LogAFTRenderStudio | The Character Render Studio: each render, Update Fighter Images (one line per image), failures with their reason. |
Show the details of a category from the console (Log LogAFTWizard Verbose) or for every run in DefaultEngine.ini:
[Core.Log]
LogAFTGame=Verbose
LogAFTSim=Verbose
LogAFTWizard=Verbose
Automation tests
Tools > Session Frontend > Automation, filter on AFT, select the tests and click Start Tests. The suite has 56 tests:
| Test | Checks |
|---|---|
AFT.Core.Action.AnimationTimeline | An action with the old Animation property moves it to the Animation track with the same animation, time and loop on every frame; SetAnimation and GetMainAnimation. |
AFT.Core.Command.Parse | Numpad notation parser. |
AFT.Core.Command.Match | Command recognition (motions, charges, buffers, shortcuts). |
AFT.Core.Simulation.Determinism | Same inputs give the same state, frame after frame. |
AFT.Core.Simulation.RoundNumbers | With and without the intro, the first round intro is round 1 and the next one round 2 (the intro does not count as a round). |
AFT.Core.Blueprint.InstancesSaveLoad | The Blueprint examples placed in assets (a condition in a state graph, the brain of a CPU profile, the wall rules of battle rules) keep their Instance Editable variables through a save, a load and a duplicate. |
AFT.Core.StateGraph.BlueprintCondition | A Blueprint condition (the example BP_AFT_Condition_LowHealth) sends the fighter at low health from Idle to Jump, not the one at full health; sync test on every frame, a second simulation and a rollback replay give the same states. |
AFT.Core.Simulation.BlueprintFrameEvent | A Blueprint frame event (the example BP_AFT_FrameEvent_Heal) heals the fighters in the simulation and stays deterministic: every frame played twice from a saved state gives the same checksum (sync test), a second simulation with the same inputs matches, and a rollback replay ends on the same state. |
AFT.Core.Simulation.GroundImpactCue | A fighter knocked down by a hit lands once with the heavy landing cue (the ground smoke and impact sound), a rollback replay of the fall gives the same event key (played once), and a normal landing gives the light cue. |
AFT.Core.Simulation.HoldThrow | Held throw in the pure simulation, with a test throw that carries the opponent over the holder: no damage while held, opponent at the hold offsets, release on the right frame, sides switched, hard knockdown, determinism. |
AFT.Core.Simulation.TagTeamThree | Teams of 3 in the pure simulation: Tag, Back + Tag, Assist, Back + Assist, chained KOs, end of the round on the third KO. |
AFT.Core.Training.FrameMeter | Frame meter and frame data recording. |
AFT.Core.Wall.Bounce | Walls: a juggled fighter bounces off the wall toward the attacker, once per combo, then slides down; wall splat; a rollback replays the bounce identically. |
AFT.Core.Wall.BounceHit | A real hit with the WallBounce reaction in the corner carries a pending bounce, and the launched fighter bounces off the wall. |
AFT.Core.Wall.BlueprintRules | Blueprint wall rules (the example BP_AFT_WallRules_CornerMeter): a hit on a cornered defender gives the attacker the Meter Bonus, a hit mid-screen doesn't; the variable is part of the content hash; sync test, second simulation and rollback replay. |
AFT.Core.Wall.Break | The Guilty Gear wall break: the wall gives, the next hit breaks it, freeze, fighters back around the center, defender knocked down, attacker meter bonus, wall healed. |
AFT.Core.Cpu.Determinism | CPU against CPU with the generated tactics: two runs stay identical, and a rollback replays the same frames. |
AFT.Core.Cpu.Levels | Generated tactics (specials from level 3, combo routes from the cancel windows); level 1 never uses specials, level 8 does. |
AFT.Core.Cpu.CustomBrain | A C++ brain plugged through a profile drives the inputs, its memory is rolled back, its motion comes out exactly. |
AFT.Core.Cpu.BlueprintBrain | A Blueprint brain (the example BP_AFT_CpuBrain_Approach, instanced in the profile) walks in to its Approach Distance, then the deck plays; out of its range it plays exactly like the Deck Brain; sync test, second simulation and rollback replay. |
AFT.Rollback.MessageRoundTrip | Protocol messages serialize and parse back identically. |
AFT.Rollback.SyncTestDeterministic | A sync test session runs without mismatch. |
AFT.Rollback.P2PLoopbackConverges | Two peers with loss and jitter end on identical checksums. |
AFT.Game.BattleSmoke | A battle starts and runs in Play In Editor. |
AFT.Game.IntroCinematic | Intro cinematic flow. |
AFT.Game.TrainingMode | Training mode (HUD, recorder, dummy). |
AFT.Game.MenuSpam | About 2900 random menu actions in 40 seconds, with a garbage collection every frame: the menus must not crash. |
AFT.Game.ArcadeLadder | Arcade ladders without Play In Editor: every fighter of the roster has its own ladder and its run follows it in order (opponent, palette, stage, CPU level, match options); a fighter without one fights every other fighter of the roster (CPU 3 rising to 7, random stage); the default ladder of the mode fills its empty opponents with the fighters it does not name; the fighter's ladder wins over the default one; team size 3; a single fighter roster gives a mirror match. |
AFT.Game.ArcadeFlow | The arcade in Play In Editor (16:9 window), through the real menus: Arcade opens the character select, 2P cannot pick, 1P picks Quinn and fight 1 of DA_Quinn_Arcade starts (opponent, palette, stage, CPU level, rules, no debug boxes from the training map's Match Tester); a loss shows CONTINUE?, Continue uses a continue and replays the fight on the same stage; wins give Next Fight up to ARCADE CLEAR; losing the last fight until no continue is left gives GAME OVER. Saves Saved/Screenshots/AFT_Arcade_CharacterSelect.png (1P side only, in 3D and _Static with the static image), _Continue, _NextFight, _Clear and _GameOver (skipped without a GPU). |
AFT.Settings.Collection | The settings collection of the UI policy: four tabs or more, unique Ids, the built-in rows of the template (window mode, resolution, quality, volume, language, vibration, button layout) and the Blueprint example BP_AFT_Setting_ScreenShake (a Blueprint class, no C++). |
AFT.Settings.Runtime | In Play In Editor: the settings subsystem copies the collection, the Blueprint example was applied when the map started, a pending change makes the settings dirty, applying it runs the Blueprint Apply (aft.CameraShake) and saves the value in GameUserSettings.ini [AFT.Settings], Cancel puts a pending change back. |
AFT.Editor.FrameEdit.Events | Timeline frame editing (insert, duplicate, delete frames, set length) keeps the events, loop start and Go To frames consistent. |
AFT.Editor.FrameEdit.Animation | Frame editing keeps the animation pose of every kept frame. |
AFT.Editor.FighterWizard.Preview | The Fighter Wizard matching on Quinn's animations. |
AFT.Editor.FighterWizard.Create | The created actions get exactly the animations the wizard preview showed; slots, commands, palettes, the LogAFTWizard lines; an invalid name is refused. Everything is deleted at the end. |
AFT.Editor.FighterWizard.Window | The wizard window and its menus. Saves AFT_Editor_FighterWizard.png and AFT_Editor_FighterWizard_Problems.png. |
AFT.Editor.StateGraphLayout | Automatic layout of the State Graph editor (no overlapping nodes, no crossing). |
AFT.Editor.StateGraphRoundTrip | The arranged editor graph (aliases) compiles to the same runtime data. |
AFT.Editor.SampleFighters | The two sample fighters: Manny shares the actions, commands, slots, stats, boxes and CPU profile of Quinn, with his own mesh on the same skeleton, palettes and UI images; a Quinn vs Manny match passes the sync test on every frame, a second simulation and a rollback replay. |
AFT.Editor.Cpu.Simulation | CPU simulations of Quinn: at level 8 against the idle dummy it lands hits, follows its combo routes and uses specials, with the same result twice; against the aggressive dummy, level 1 never uses specials; CPU against CPU, both sides fight. |
AFT.Editor.Cpu.ProfileEditor | Opens the CPU Editor, adds a card and undoes it, edits a field in the details and undoes it, runs a simulation. Saves Saved/Screenshots/AFT_Editor_CpuProfile.png. |
AFT.Visual.MovementScreenshots | On the training map, player 1 dashes with 66 and runs the dummy into the corner, walks back to the maximum distance, then jumps forward. Checks that both fighters stay inside the camera view with a margin, and that the body stays on its simulated position in the air (in-place animations). Saves Saved/Screenshots/AFT_Move_RunCorner.png, AFT_Move_MaxDistance.png and AFT_Move_JumpForward.png (needs a GPU). |
AFT.Visual.DashAttacks | On the training map: dash LP, slide, dive kick, 5LK, 2LP, j.MK, the LP + LK throw and LP while walking. Saves Saved/Screenshots/AFT_Attack_*.png (needs a GPU). |
AFT.Visual.Throw | Quinn's knee throw in game: held, damage on the release, lands in front of her. Saves AFT_Throw_Grab.png, AFT_Throw_Knee.png, AFT_Throw_Push.png and AFT_Throw_Landed.png (needs a GPU). |
AFT.Visual.MatchEnd | A versus match against the CPU played to the end, with the boxes shown: the downed fighter holds its pose (its action never loops back, one steady animation), the hits shake the camera, then the result screen and MAIN MENU (a level change while the result screen is up). Saves AFT_MatchEnd_KO.png, AFT_MatchEnd_Result_0.png to _2 and AFT_MatchEnd_MainMenu.png (skipped without a GPU). |
AFT.Visual.CueFeedback | Cue feedback: the default guard and landing cues spawn no effect actor; an effect actor set on a cue spawns once per event, even when the event is played again, and is gone after its lifetime; a hard landing shakes the camera and plays the ground smoke once, even when the event is played again (screenshots Saved/Screenshots/AFT_Cue_GroundImpact_*.png), and its cue has the impact sound; the landing and wall bounce cues have a smoke and a sound (screenshot AFT_Cue_LandingWall.png); a heavy hit shakes it more than a light one; turning the Vibration setting off and applying the settings stops the cue vibrations and the player controller force feedback, and turning it back on restores them (this step is skipped in a project without that setting). Skipped without a GPU. |
AFT.Visual.SideSwitch | On the training map, player 1 walks, then a training reset with swapped sides puts it on the right: checks that both fighters face each other, and logs the mirror state of both meshes. Saves AFT_SideSwitch_Before.png and AFT_SideSwitch_After.png (skipped without a GPU). |
AFT.Visual.TagTeamThree | Team size 3 by default (TEAM SIZE option), character select with 3 slots per side, HUD with two partners, Back + Tag in battle. Saves AFT_TagTeam3_Options.png, AFT_TagTeam3_CharacterSelect.png, AFT_TagTeam3_HUD.png and AFT_TagTeam3_BackTag.png (needs a GPU). |
AFT.Visual.ThrowEditorPreview | Opens the Fighter Editor on the throw and checks the preview opponent at frames 12, 20 and 34. Saves AFT_Editor_Throw_f13.png, f21 and f35 (needs a GPU). |
AFT.Visual.EditorOpponentMirror | Opens the Fighter Editor on the jump forward action (frame 2) and checks that the preview opponent facing the fighter is mirrored like in game, not turned around. Saves AFT_Editor_Opponent.png (skipped without a GPU). |
AFT.Visual.CharacterRenderStudio | Loads Map_AFT_CharRender and renders its Character Render Studio: transparent corners, full body centered and filling 80 to 95 % of the picture, face shot with the head at the top and centered, lit fighter, Manga ink outline, opaque Color background. Saves AFT_CharRender_FullBody.png, AFT_CharRender_Face.png and AFT_CharRender_Manga.png (skipped without a GPU). |
AFT.Visual.CharacterSelect3D | The character select in 3D: the stage camera is the view, each model is in its panel, player 2 is mirrored, a color change reaches the model; then the live switch to the static image (no stage shown) and back. In 16:9, then in a wider window. Saves AFT_CharSelect3D_Versus.png, _Color, _StaticImage and AFT_CharSelect3D_Versus_21x9.png (skipped without a GPU). |
AFT.Visual.ConsoleCommands | On the training map, types the console commands in a battle: aft.PlayAction 0 DA_Quinn_Normal_5C and a pause on an active frame, aft.ShowBoxes 1, 2 and 0 (hidden although the battle shows its boxes), aft.PlayAction 0 DA_Quinn_Special_Fireball, then aft.CameraShake, aft.Rumble and aft.CharacterSelect.Preview take their values (all set back at the end); aft.Arcade DA_Quinn 3 starts the last fight of Quinn's ladder (opponent, palette, rounds to win); then in the Fighter Editor, AFT.Editor.TimelineView 16 1 12 and 40 8 12 on Quinn's 5C. Saves Saved/Screenshots/AFT_Cmd_ShowBoxes_1.png, _2, _0, AFT_Cmd_PlayAction.png, AFT_Cmd_Arcade.png, AFT_Cmd_TimelineView_16.png and _40 (skipped without a GPU). |
AFT.Visual.TrainingScreenshot | Saves Saved/Screenshots/AFT_Training.png and AFT_Training_Idle.png (needs a GPU, not -nullrhi). |
AFT.Visual.UIScreens | Saves a screenshot of every menu, dialog and HUD screen in Saved/Screenshots/AFT_UI_*.png; on the settings screen, a change of the first audio row is pending until applied and Select cancels it (needs a GPU). |
AFT.Visual.UIGallery | Plays the menus and a battle in their own 16:9 window and saves each step in Saved/UIGallery (needs a GPU). |
From the command line:
UnrealEditor-Cmd.exe AnimeFighterTemplate.uproject -ExecCmds="Automation RunTests AFT; Quit" -unattended -nullrhi -log
Remove -nullrhi to run the AFT.Visual tests.
The tests that play inputs on exact frames (AFT.Visual.DashAttacks, AFT.Visual.MovementScreenshots, AFT.Visual.SideSwitch)
need a steady frame rate. On a slow machine or over remote desktop (Play In Editor at 8 to 18 fps), they can fail for no real
reason: add -UseFixedTimeStep -FPS=60 to the command line.