AAPakFile 2.0.0
dotnet add package AAPakFile --version 2.0.0
NuGet\Install-Package AAPakFile -Version 2.0.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="AAPakFile" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AAPakFile" Version="2.0.0" />
<PackageReference Include="AAPakFile" />
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 AAPakFile --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AAPakFile, 2.0.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 AAPakFile@2.0.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=AAPakFile&version=2.0.0
#tool nuget:?package=AAPakFile&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AAPakFile
A .NET library for reading, creating, and manipulating game_pak files from the MMORPG ArcheAge.
Installation
dotnet add package AAPakFile
Requires .NET 10.0 or later. AOT-compatible.
Usage
All operations are exposed through the static PackageFile class. Every method is async and accepts an optional CancellationToken and IProgress<T> for progress reporting.
Export a package to a folder
await PackageFile.ExportToFolderAsync("game_pak", outputPath: "extracted/");
Export a package to a ZIP archive
await PackageFile.ExportToZipArchiveAsync("game_pak", "extracted.zip");
Import files from a folder into an existing package
Files present in the package but absent from the source folder are left untouched.
await PackageFile.ImportFromFolderAsync("game_pak", sourceFolder: "mods/");
Import files from a ZIP archive into an existing package
await PackageFile.ImportFromZipArchiveAsync("game_pak", "mods.zip");
Create a new package from a folder
await PackageFile.CreateFromFolderAsync("output.pak", sourceFolder: "files/");
Open a package for reading
await using var reader = await PackageFile.OpenReaderAsync("game_pak");
foreach (var entry in reader.Entries)
{
Console.WriteLine(entry.FileName);
}
Open a single file inside a package
await using var stream = await PackageFile.OpenFileAsync("game_pak", "game/textures/sky.dds");
Edit a package
await using var editor = await PackageFile.OpenEditorAsync("game_pak");
await editor.AddOrReplaceAsync("game/textures/sky.dds", File.OpenRead("sky.dds"));
await editor.SaveAsync();
Verify package integrity
// Quick — stops on the first invalid file
var result = await PackageFile.VerifyPackageAsync("game_pak");
Console.WriteLine(result.IsValid ? "OK" : $"Corrupt: {result.InvalidFile}");
// Full — reports every file
await foreach (var fileResult in PackageFile.VerifyAllFilesAsync("game_pak"))
{
if (!fileResult.IsValid)
Console.WriteLine($"Corrupt: {fileResult.FileName}");
}
Compact a package
Deleted and replaced files leave gaps; compaction reclaims that space.
// Safe: writes to a temp file, then atomically replaces the original.
// Requires ~same free disk space as the package.
await PackageFile.CompactAsync("game_pak");
// Fast: shifts data in-place. No extra disk space required,
// but the file is unrecoverable if interrupted mid-operation.
await PackageFile.CompactInPlaceAsync("game_pak");
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.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.