Consoles and Nintendo Switch
The netcode and the simulation were written for low-end consoles (Nintendo Switch class hardware):
- Portable code: endian-explicit wire format, no packed struct or bitfield layout dependency, no exceptions, no RTTI, no
stdthreads. Only Unreal containers and the platformISocketSubsystemare used. - Cheap saves: one saved state is a
memcpyofsizeof(FAFTSimState)(a few KB). The ring holdsMaxPredictionFrames + 2states, allocated once. - Cheap rollbacks: a rollback of 8 frames re-simulates 8 frames in one tick. The simulation is integer only, cache friendly and does not touch actors; the presentation updates once per rendered frame.
- Platform services: transport and sessions come from the platform OnlineSubsystem. Use the
Platformlobby backend with the platform socket subsystem (see Online Backends).
Character select on low-end hardware
The 3D fighters of the character select are cheap: two skeletal meshes, one unlit
plane and one light without shadows, drawn by the main scene with no render target or scene capture. To skip the 3D on a
platform anyway, set the static image in the Game ini of that platform, for example Config/Switch/SwitchGame.ini:
[/Script/AFTGame.AFTGameSettings]
CharacterSelectPreview=StaticImage
Certification
Platform certification requirements (network error messages, NAT type, communication restrictions, parental controls) belong to your game layer. AFT reports every failure for that purpose:
UAFTOnlineSubsystem::OnStateChangedandOnErrorduring the lobby and the handshake;UAFTBattleSubsystem::OnSessionStatusChangedduring the match (Interrupted,Disconnected);FAFTMatchResult.bDisconnected/bDesyncedat the end of the match.
The online lobby screen has no debug or IP entry option in Shipping builds (the DEV: entries are compiled out), and the
controller disconnected alert pauses offline battles when a player's controller is lost.
Console platforms require the platform SDK and the platform extensions of Unreal Engine, available to registered developers only.
The AFT source does not contain any console specific code, and the template ships no console configuration: add your own
Config/<Platform> files (input settings, character select preview...) once you have access to the platform.