Skip to content

Add support for BTD (Bethesda Terrain Data) files #70

Description

@Wully616

@niftools/pyffi-reviewers

Issue Overview

BTD files store landscape mesh and texture information for Fallout 76 (\Fallout76\Data\Terrain\Appalachia.btd), instead of being stored in BSA or BA2 files

The file format itself may be unknown as of right now, as I've not found references anywhere about its structure. It may be similar to other bethesda archive formats.

I tried to reverse engineer the file and could find this information about the header at least:

Header

char[4] - magic (BTDB)
uint32 - version/content flag (6)
32 bytes - unknown
uint32 - number of materials stored in the file
uint32[number of materials] - an array of uint32s which contain either pointers or sizes, not sure

The rest of the data appears to be compressed in some format, i've not been able to reverse engineer which format from the fallout 76 exe yet.

I believe the file itself contains data relating to these files:

Data\Meshes\Terrain\Scratch%s.TMP.%u.%i,%i.HEM
Data\Meshes\Terrain%s%s.%u.%i.%i.BTR
Data\Textures\Terrain%s%s.%u.%i.%i.DDS
Data\Textures\Terrain%s%s.%u.%i.%i_msn.DDS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions