BfevLibrary 0.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BfevLibrary --version 0.10.0                
NuGet\Install-Package BfevLibrary -Version 0.10.0                
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.10.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BfevLibrary --version 0.10.0                
#r "nuget: BfevLibrary, 0.10.0"                
#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.10.0

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

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 248 3/3/2024
0.11.6 115 2/27/2024
0.11.5 112 2/27/2024
0.11.4 200 1/15/2024
0.11.3 242 7/27/2023
0.11.2 143 7/27/2023
0.11.1 149 7/24/2023
0.11.0 151 5/20/2023
0.10.6 232 3/3/2023
0.10.5 249 2/23/2023
0.10.4 232 2/21/2023
0.10.3 249 2/11/2023
0.10.2 238 2/11/2023
0.10.1 251 2/11/2023
0.10.0 252 2/11/2023
0.9.0 259 12/17/2022