The Fortnite Replay Decompressor provides flexible parsing options that allow you to customize how much data is extracted from replays. This is crucial for performance optimization and targeted data extraction.
The library supports five levels of parsing granularity:
public enum ParseType{ EventsOnly, // Parses only events Minimal, // Parses events and initial game state Normal, // Parses events and full game state Full, // Parses everything currently handled Debug // Parses everything + debugging information}
using var reader = new ReplayReader();// Parse with minimal data (fastest)var replay = reader.ReadReplay("replay.replay", ParseType.Minimal);// Parse with full data (slowest, most complete)var replay = reader.ReadReplay("replay.replay", ParseType.Full);
Performance Tip: Start with ParseType.Minimal and increase only if you need more data. Higher parse types significantly increase processing time.
For fine-grained control, use SetParseType to customize parsing for specific data groups:
var reader = new ReplayReader();// Enable detailed parsing for player pawns (locations, vehicles, inventory)reader.SetParseType(ParsingGroup.PlayerPawn, ParseType.Full);var replay = reader.ReadReplay("replay.replay", ParseType.Minimal);
Use FortniteReplaySettings to filter out specific data types:
var settings = new FortniteReplaySettings{ IgnoreFloorLoot = true, IgnoreShots = true, IgnoreInventory = true, IgnoreHealth = true, IgnoreContainers = true};var reader = new ReplayReader(settings: settings);var replay = reader.ReadReplay("replay.replay", ParseType.Full);
Settings filters are applied in the OnExportRead method (FortniteReplayReader.cs:82-197). Even with ParseType.Full, ignored export types won’t be processed.