An open-source NuGet library providing simple access to game settings.
Reading data from games like Battlefield 2 - i.e. to access player data from BF2 specific .con configuration files.
Open to integration of more games & data.
GameDataReader
NuGet package to your project: Install-Package GameDataReader
using GameDataReader;
IServiceCollection
by configuring i.e. services.AddBf2DataReader();
and you're ready to inject i.e. IBf2DataReader
instances.GameDataReaders.Bf2.ReadActivePlayer()
GameDataReaders.Bf1942.ReadActivePlayer()
Bf1942Player.OnlineName
- from {localAppData}\VirtualStore\Program Files (x86)\EA GAMES\Battlefield 1942\Mods\bf1942\Settings\Profiles\{profileName}\GeneralOptions.con
GameDataReaders.BfVietnam.ReadActivePlayer()
BfVietnamPlayer.OnlineName
- from {localAppData}\VirtualStore\Program Files (x86)\EA GAMES\Battlefield Vietnam\Mods\BfVietnam\settings\Profiles\{profileName}\GeneralOptions.con
GameDataReaders.Bf2.ReadActivePlayer()
Bf2Player.OnlineName
- from {userDocuments}\Battlefield 2\Profiles\{profileNumber}\Profile.con
Bf2Player.ClanTag
- from {userDocuments}\Battlefield 2\Profiles\Global.con
GameDataReaders.Bf2142.ReadActivePlayer()
Bf2142Player.OnlineName
- from {userDocuments}\Battlefield 2142\Profiles\{profileNumber}\Profile.con
Bf2142Player.ClanTag
- from {userDocuments}\Battlefield 2142\Profiles\Global.con
GameDataReaders.BfBc2.ReadActivePlayer()
BfBc2.OnlineName
- from {userDocuments}\BFBC2\GameSettings.bin
BfBc2.ClanTag
- from {userDocuments}\BFBC2\GameSettings.ini