Skip to main content

Project Settings

AFT has two settings pages in Edit > Project Settings > Plugins: AFT Core (UAFTCoreSettings) and AFT Game (UAFTGameSettings). Both are saved in Config/DefaultGame.ini.

AFT Core​

[/Script/AFTCore.AFTCoreSettings]

AFT Core settings

  1. Defaults: rules, state graph and cue set of the template
  2. Button Names (8 entries, A to H)
  3. Box Style
CategorySettingDescription
DefaultsDefaultRulesRules used when a match does not specify any. Template: /AFT/Data/DA_AFT_DefaultRules.
DefaultStateGraphState graph of the fighters without their own. Template: /AFT/Data/DA_AFT_DefaultStateGraph.
DefaultCueSetRoot fallback of every fighter cue set. Template: /Game/SomndusStudio/AFT/Data/DA_AFT_DefaultCues.
DefaultCpuProfileCPU profile of the fighters without their own. Empty (template): tactics generated from each fighter's move list.
InputButtonNamesIn-game names of the 8 buttons A to H. Default: LP, MP, HP, LK, MK, HK, Tag, Assist (six attack buttons, see Buttons).
DebugBoxStyleCollision box colors (hurtbox, hitbox, push box, throw box, invulnerable hurtbox), fill opacities and border thickness, shared by the in-game box viewer and the Fighter Editor.

AFT Game​

[/Script/AFTGame.AFTGameSettings]

AFT Game settings

  1. Presentation classes (None = the AFT default classes)
  2. Input: input bindings asset and keyboard layout (AZERTY (ZQSD) in the template)

Presentation​

SettingDescription
DefaultFighterActorClassActor that displays the fighters (default AAFTFighterActor). A fighter VisualClass overrides it.
BattleCameraClassBattle camera (default AAFTBattleCamera).
PresentationClassCues, projectiles and boxes presentation (default AAFTBattlePresentation).
HitStopShakeAmplitudeVisual shake of the fighters during hit stop, in cm (3).

Input​

SettingDescription
InputBindingsDefault key layouts (UAFTInputBindings). None = built-in layouts.
KeyboardLayoutLayout of the built-in bindings: Qwerty (WASD, default) or Azerty (ZQSD, template).

UI​

SettingDescription
UIPolicyThe UI Policy: primary layout, widget class of every screen, UI sounds, settings collection. Template: /AFT/UI/DA_AFT_UIPolicy.
CharacterSelectPreviewFighters of the character select: Model3D (3D (real time), default) or StaticImage (Static Image (Full Art)). Override it in a platform Game ini, or live with aft.CharacterSelect.Preview. See 3D fighters or static image.
CharacterSelectStageClassStage spawned by the character select when the menus map has none (None = AAFTCharacterSelectStage). Only with the 3D preview.

The per-screen class settings below override the policy when they are set (handy to test one screen). Leave them empty to use the policy, or the built-in screens (see Custom UI).

SettingBuilt-in class
PrimaryLayoutClassUAFTPrimaryLayout
TitleScreenClassUAFTTitleScreen
MainMenuScreenClassUAFTMainMenuScreen
SideSelectScreenClassUAFTSideSelectScreen
CharacterSelectScreenClassUAFTCharacterSelectScreen
StageSelectScreenClassUAFTStageSelectScreen
OnlineLobbyScreenClassUAFTOnlineLobbyScreen
BattleHUDClassUAFTBattleHUD
TrainingHUDClassUAFTTrainingHUD (HUD of training matches)
PauseMenuClassUAFTPauseMenu
ResultScreenClassUAFTResultScreen
SettingsScreenClassNone: UAFTSettingsScreen when the UI policy has a Settings collection (template), else the Settings entry becomes Button Layout. Set it only to replace the settings screen.

Flow​

SettingDescription
FrontEndMapMap with the menus. Template: Map_AFT_FrontEnd.
DefaultBattleMapBattle map used when a stage data has no level. Template: Map_AFT_Training.
QuickBattleFightersFallback fighters when a battle map is played directly without match setup. Template: DA_Quinn.

Online​

SettingDefaultDescription
LobbyBackendLANBackend of Host Match / Find Match and HostDefault / FindLobbiesDefault: Local, LAN or Platform, see Online Backends.
GamePort7000UDP port of the rollback sessions (direct IP / LAN).
PlatformSocketSubsystemNoneSocket subsystem of the Platform backend (EOS, SteamSockets...).
OnlineFrameDelay2Input delay of online matches (0 to 8).

Template configuration​

The DefaultGame.ini of the template:

[/Script/AFTCore.AFTCoreSettings]
DefaultRules=/AFT/Data/DA_AFT_DefaultRules.DA_AFT_DefaultRules
DefaultStateGraph=/AFT/Data/DA_AFT_DefaultStateGraph.DA_AFT_DefaultStateGraph
DefaultCueSet=/Game/SomndusStudio/AFT/Data/DA_AFT_DefaultCues.DA_AFT_DefaultCues

[/Script/AFTGame.AFTGameSettings]
; The settings screen comes from the Settings collection of the UI policy (no SettingsScreenClass).
UIPolicy=/AFT/UI/DA_AFT_UIPolicy.DA_AFT_UIPolicy
; Built-in keyboard bindings: Azerty = ZQSD (French keyboards), Qwerty = WASD.
KeyboardLayout=Azerty
+QuickBattleFighters=/Game/SomndusStudio/AFT/Fighters/Quinn/DA_Quinn.DA_Quinn
FrontEndMap=/Game/SomndusStudio/AFT/Maps/Map_AFT_FrontEnd.Map_AFT_FrontEnd
DefaultBattleMap=/Game/SomndusStudio/AFT/Maps/Map_AFT_Training.Map_AFT_Training
LobbyBackend=LAN
GamePort=7000
OnlineFrameDelay=2

And in DefaultEngine.ini:

[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/Game/SomndusStudio/AFT/Maps/Map_AFT_FrontEnd.Map_AFT_FrontEnd
EditorStartupMap=/Game/SomndusStudio/AFT/Maps/Map_AFT_Training.Map_AFT_Training
GlobalDefaultGameMode=/Script/AFTGame.AFTBattleGameMode

The Asset Manager types are listed in Set Up Your Own Project.

Reading the settings in C++​

#include "Data/AFTCoreSettings.h"
#include "AFTGameSettings.h"

const UAFTCoreSettings* Core = UAFTCoreSettings::Get();
const FText Notation = Core->FormatNotation(TEXT("236A")); // "236P" with the default button names

const UAFTGameSettings* Game = UAFTGameSettings::Get();
const int32 Port = Game->GamePort;