FF7R2.DataObject.API 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FF7R2.DataObject.API --version 0.1.0
                    
NuGet\Install-Package FF7R2.DataObject.API -Version 0.1.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="FF7R2.DataObject.API" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FF7R2.DataObject.API" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="FF7R2.DataObject.API" />
                    
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 FF7R2.DataObject.API --version 0.1.0
                    
#r "nuget: FF7R2.DataObject.API, 0.1.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.
#:package FF7R2.DataObject.API@0.1.0
                    
#: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=FF7R2.DataObject.API&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=FF7R2.DataObject.API&version=0.1.0
                    
Install as a Cake Tool

A C# parser for FF7 Rebirth's DataObject files.

To say this works would be a massive overstatement.<br> There's layers and layers of compression and re-use here, and whilst this can read the files, writing is experimental at best.

There's two save modes. I'm just gonna copy the doc because I'm lazy:

/// <see cref="Mode.OG_MODIFIED_BYTES"/> works in conjunction with the `DataAsByteProxy` property and just reads/writes to/from the bytes at specific offsets.
/// This works, at the cost of immutable array sizes.
/// <see cref="Mode.WRITE_PARSED_DATA"/>
/// This tries to write out the parsed file, and results are buggy in-game at best.
/// Tests pass for few files, and the ones that do (like equipment) just result in the items being gone in-game.

Example usage (for the edit-via-bytes method, though switching is fairly simple:

var asset = IoStoreAsset.Load(@"path\to\in\Equipment.uasset");

foreach (var (key, value) in asset.innerAsset.frozenObject.DataTable) {
    value.propertyValues[EquipmentProperties.MateriaSlotDouble]!.As<ByteProperty>()!.DataAsByteProxy = 4;
    value.propertyValues[EquipmentProperties.MateriaSlotSingle]!.As<ByteProperty>()!.DataAsByteProxy = 0;
}

asset.Save(@"path\to\out\Equipment.uasset", IoStoreAsset.Mode.OG_MODIFIED_BYTES);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
1.2.1 260 2/12/2025
1.2.0 208 2/11/2025
1.1.4 200 2/10/2025
1.1.3 179 2/10/2025
1.1.2 187 2/7/2025
1.1.1 184 2/7/2025
1.1.0 189 2/7/2025
1.0.0 170 2/7/2025
0.1.1 177 2/6/2025
0.1.0 175 2/6/2025