CallOfFile 2026.9.26.3
dotnet add package CallOfFile --version 2026.9.26.3
NuGet\Install-Package CallOfFile -Version 2026.9.26.3
<PackageReference Include="CallOfFile" Version="2026.9.26.3" />
<PackageVersion Include="CallOfFile" Version="2026.9.26.3" />
<PackageReference Include="CallOfFile" />
paket add CallOfFile --version 2026.9.26.3
#r "nuget: CallOfFile, 2026.9.26.3"
#:package CallOfFile@2026.9.26.3
#addin nuget:?package=CallOfFile&version=2026.9.26.3
#tool nuget:?package=CallOfFile&version=2026.9.26.3
CallOfFile
Call of File is a .NET library for reading and writing Call of Duty's XMODEL_EXPORT/XMODEL_BIN/XANIM_EXPORT/XANIM_BIN files.
Call of File currently is only tested on files from Call of Duty 4 and higher.
Using Call of Duty
Install the package from NuGet:
dotnet add package CallOfFile
Releases are versioned by date and build number (yyyy.M.d.build).
Usage
Call of File targets .NET 10.
using var reader = TokenReader.Create("model.xmodel_bin");
using var writer = TokenWriter.Create("model.xmodel_export");
writer.WriteTokens(reader.ReadTokens());
Tokens can also be read in order:
reader.ReadToken<TokenData>("MODEL");
var version = reader.ReadToken<TokenDataUInt>("VERSION").Value;
Or written directly:
writer.WriteSection("MODEL");
writer.WriteUShort("VERSION", 7);
writer.WriteVector3("OFFSET", Vector3.Zero);
CLI
The callfile CLI converts between *_EXPORT and *_BIN files:
callfile <paths> [--to bin|export]
Bug Reporting
A lot of work and testing has gone into Call of File, but if you find a bug, feel free to open an issue with as much information as possible including files used and any other information.
Contributing
Contributions are absolutely welcome, if you'd like to contribute code, then you can fork the repo and make edits, then open a PR, don't worry if you think you're code isn't perfect or well documented, as we can make any edits we feel are necessary to bring it up to scratch!
When contributing, ensure to keep your contributions compatible with the MIT license, this includes any libraries used. Also make sure to keep track of credits for any code you use!
License/Disclaimers
Call of File is based off research done on files provided in Call of Duty: Black Ops III Mod Tools and research done on export2bin itself to gain interoperability with files stored within the Call of Duty: Black Ops III Mod Tools. It is provided AS IS with no warranty.
Call of File is licensed under the MIT License. See the LICENSE file for more information.
Credits
- Milosz Krajewski - LZ4 Compression
| 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. |
-
net10.0
- K4os.Compression.LZ4 (>= 1.3.8)
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 |
|---|---|---|
| 2026.9.26.3 | 82 | 9/26/2026 |
| 2026.9.26.2 | 250 | 9/26/2026 |
| 2026.9.26.1 | 86 | 9/26/2026 |