BfevLibrary 0.11.7

dotnet add package BfevLibrary --version 0.11.7                
NuGet\Install-Package BfevLibrary -Version 0.11.7                
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="BfevLibrary" Version="0.11.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BfevLibrary --version 0.11.7                
#r "nuget: BfevLibrary, 0.11.7"                
#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.
// Install BfevLibrary as a Cake Addin
#addin nuget:?package=BfevLibrary&version=0.11.7

// Install BfevLibrary as a Cake Tool
#tool nuget:?package=BfevLibrary&version=0.11.7                

Bfev Library

Nintendo Binary cafe Event Flow Libray | Based on evfl by Léo Lam

BfevLibrary has been tested to parse, serialize (json), deserialize (json), and write every BFEV file found in Breath of the Wild byte-perfectly.

Usage

Reading a Bfev File

// Read from a File Path
BfevFile bfev = BfevFile.FromBinary("path/to/file.bfevfl");
// Read from a byte[]
// Do not use with File.ReadAllBytes(), use
// a Stream instead.
SarcFile sarc = SarcFile.FromBinary("D:/Botw/Update/content/Events/100enemy.sbeventpack");
BfevFile bfev = BfevFile.FromBinary(sarc["EventFlow/100enemy.bfevfl"]);
// Read from a Stream
using FileStream fs = File.OpenRead("path/to/file.bfevfl");
BfevFile bfev = new(fs);
// Read from JSON
string json = File.ReadAllText("path/to/file.bfevfl.json");
BfevFile bfev = BfevFile.FromJson(json);

Writing a Bfev File

// Write to a File Path
bfev.ToBinary("path/to/file_out.bfevfl");
// Write to a byte[]
byte[] data = bfev.ToBinary();
// Write to a Stream
using FileStream fs = File.Create("path/to/file_out.bfevfl");
bfev.ToBinary(fs);
// Write to Json
string json = bfev.ToJson(format: true);

Install

NuGet NuGet

NuGet
Install-Package BfevLibrary
Build From Source
git clone https://github.com/NCF-Library/BfevLibrary.git
dotnet build BfevLibrary

Credits

  • Arch Leaders: C# Re-Implementation & JSON SerDe
  • Léo Lam: Original Python Implementation & General Help
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

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.11.7 283 3/3/2024
0.11.6 122 2/27/2024
0.11.5 117 2/27/2024
0.11.4 207 1/15/2024
0.11.3 247 7/27/2023
0.11.2 148 7/27/2023
0.11.1 154 7/24/2023
0.11.0 156 5/20/2023
0.10.6 237 3/3/2023
0.10.5 256 2/23/2023
0.10.4 237 2/21/2023
0.10.3 256 2/11/2023
0.10.2 243 2/11/2023
0.10.1 258 2/11/2023
0.10.0 257 2/11/2023
0.9.0 266 12/17/2022