Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

BLTE_Decoder

Overview

BLTE_Decoder is a C# library for decoding and encoding BLTE files. BLTE is a file format used in Blizzard games for efficient storage and streaming of game assets. This project provides tools for both reading and creating BLTE files.

Features

  • BLTE Decoding: Extract and read data from BLTE formatted files.
  • BLTE Encoding: Create BLTE compliant archives from raw data.
  • Pure C# Implementation: No external dependencies required.

Getting Started

Prerequisites

  • .NET 6.0 or higher (can be adapted for older versions)

Installation

Clone the repository:

git clone https://github.com/PronikFire/BLTE_Decoder.git

Add the BLTE_Decoder project to your solution or build it as a library.

Usage

Decoding a BLTE File

usingBLTE_Decoder;// Load your BLTE file as a byte arraybyte[]blteData=File.ReadAllBytes("path/to/file.blte");Block[]decoded=BLTE.Decode(blteData,outbytetableFormat);// Use decoded data as needed

Important

After decoding you get raw data, if it is compressed you will need to decompress it. What kind of data you have you can find out from EncodingMode.

Encoding Data to BLTE

usingBLTE_Decoder;Block[]blocks= ...// your data
byte tableFormat=0x0F;byte[]blteEncoded=BLTE.Encode(blocks,tableFormat);// Save to file or streamFile.WriteAllBytes("output.blte",blteEncoded);

Note

If you are going to encode the data, you can fill in additional fields such as Hash, logicalSize, encodingModeChar and uncompressedHash.

References

About

BLTE Decoder and Encoder C#

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages