GameDataReader 0.0.5

dotnet add package GameDataReader --version 0.0.5
                    
NuGet\Install-Package GameDataReader -Version 0.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GameDataReader" Version="0.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GameDataReader" Version="0.0.5" />
                    
Directory.Packages.props
<PackageReference Include="GameDataReader" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GameDataReader --version 0.0.5
                    
#r "nuget: GameDataReader, 0.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GameDataReader@0.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GameDataReader&version=0.0.5
                    
Install as a Cake Addin
#tool nuget:?package=GameDataReader&version=0.0.5
                    
Install as a Cake Tool

Continuous Deployment Discord last commit

GameDataReader

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.

Usage

  • Add the GameDataReader NuGet package to your project: Install-Package GameDataReader
  • Add import statement: using GameDataReader;
  • For (optional) dependency injection, register your preferred DataReader to your IServiceCollection by configuring i.e. services.AddBf2DataReader(); and you're ready to inject i.e. IBf2DataReader instances.
  • For (straight forward) static access to GameData, simply invoke a supported method like: GameDataReaders.Bf2.ReadActivePlayer()

Currently supported games

Battlefield 1942

  • GameDataReaders.Bf1942.ReadActivePlayer()
    • Bf1942Player.OnlineName - from {localAppData}\VirtualStore\Program Files (x86)\EA GAMES\Battlefield 1942\Mods\bf1942\Settings\Profiles\{profileName}\GeneralOptions.con

Battlefield Vietnam

  • GameDataReaders.BfVietnam.ReadActivePlayer()
    • BfVietnamPlayer.OnlineName - from {localAppData}\VirtualStore\Program Files (x86)\EA GAMES\Battlefield Vietnam\Mods\BfVietnam\settings\Profiles\{profileName}\GeneralOptions.con

Battlefield 2

  • GameDataReaders.Bf2.ReadActivePlayer()
    • Bf2Player.OnlineName - from {userDocuments}\Battlefield 2\Profiles\{profileNumber}\Profile.con
    • Bf2Player.ClanTag - from {userDocuments}\Battlefield 2\Profiles\Global.con

Battlefield 2142

  • GameDataReaders.Bf2142.ReadActivePlayer()
    • Bf2142Player.OnlineName - from {userDocuments}\Battlefield 2142\Profiles\{profileNumber}\Profile.con
    • Bf2142Player.ClanTag - from {userDocuments}\Battlefield 2142\Profiles\Global.con

Battlefield Bad Company 2

  • GameDataReaders.BfBc2.ReadActivePlayer()
    • BfBc2.OnlineName - from {userDocuments}\BFBC2\GameSettings.bin
    • BfBc2.ClanTag - from {userDocuments}\BFBC2\GameSettings.ini
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5 93 7/30/2025
0.0.4 1,002 3/11/2023
0.0.3 1,132 8/29/2022
0.0.2 1,108 7/29/2022
0.0.1 1,237 7/28/2022