File Formats - SWTOR-Slicers/WikiPedia GitHub Wiki

SWTOR File Formats

SWTOR uses a number of different file formats to store data. These are interesting, but are likely only relevant to you if you are making a tool, or are wondering what type of data is stored in a particular file. Each of these different formats serves to store data for a particular use. The most common files you will likely come across are .gr2, .jba, .mat, .dds, and .xml.

Table of contents

Sections
Formats
File Structures
Reading a file

Formats

Below is a list of all of the know formats used in the game

Format Content Type Typical usage
.gr2 binary models, skeletons
.jba binary animation data
.clo binary cloth animations
.mat xml stores texture data
.dds image texture maps
.xml xml LUTs*/indices

*LUT: Look Up Table

File Structures

.gr2

Variations

The .gr2 format has 3 variations:

  • GAWB: This is your typical model file. The file extension is .gr2
  • Skeleton: This is the skeleton (or armature) for animated models. The file extension is .gr2
  • lod: This is a .lod file, it contains level of detail data. The file extension is .lod.gr2

Structure

Check out the gr2 structure here

.clo

Check out the clo structure here

.jba

Check out the jba structure here

.mat

.dds

.xml

Reading a file

This section covers good conventions and the process for reading the file formats that are stored as binary.

Note: a good an efficient file reader will read the headers, and use that data to find the corresponding data, versus parsing the whole file (more on that later)