Implement name overrides #181

Merged
lucas merged 2 commits from feat/name-overrides into master 2024-07-19 09:35:17 +02:00
Owner

For most of the game files, we don't know the actual name, only the hash
of that name. To still allow building bundles that contain files with
that name (e.g. to override a game file with a custom one), there needs
to be a way to tell DTMT to name a file such that its hash is the same
as the one in the game.
The initial idea was to just expect the file name on disk to be the
hash, but that wouldn't allow for arbitrary folder structures anymore.

So instead, there is now a new, optional setting in dtmt.cfg, where
the modder can map a file path to an override name.

For most of the game files, we don't know the actual name, only the hash of that name. To still allow building bundles that contain files with that name (e.g. to override a game file with a custom one), there needs to be a way to tell DTMT to name a file such that its hash is the same as the one in the game. The initial idea was to just expect the file name on disk to be the hash, but that wouldn't allow for arbitrary folder structures anymore. So instead, there is now a new, optional setting in `dtmt.cfg`, where the modder can map a file path to an override name.
lucas added 1 commit 2024-07-17 15:46:41 +02:00
lucas force-pushed feat/name-overrides from ce25087257 to f81dc7b397 2024-07-17 15:47:24 +02:00 Compare
lucas force-pushed feat/name-overrides from f81dc7b397 to 611f99a7b9 2024-07-17 20:40:14 +02:00 Compare
lucas force-pushed feat/name-overrides from 611f99a7b9 to 95fc6c160b 2024-07-18 09:51:25 +02:00 Compare
lucas merged commit 437e724d07 into master 2024-07-19 09:35:17 +02:00
lucas deleted branch feat/name-overrides 2024-07-19 09:35:17 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bitsquid_dt/dtmt#181
No description provided.