djey47 / tdumt

TDU Modding Tools - Toolset for modding Test Drive Unlimited game
MIT License
8 stars 2 forks source link

Corrupt bnk file after repacking #1

Open djey47 opened 3 years ago

djey47 commented 3 years ago

Open, extract .2db file then repack, then game won't load it anymore

Supposedly huge count of 2DB files

Check impact on : tdumt lib 2.0, tdumt2 2.2.1

Need release tduf with fix as well

Investigation details

Due to additional single byte in file tree (with value 0x1), it is ignored when reading and not written back. Happens with files like hud.bnk. Here, .2db extension group (directory), contains 176 files.

Game seems to crash when this byte is missing. Does it instruct game engine to handle high file count?

djey47 commented 3 years ago

Other issue in dealer interior: icd12a2.bnk or icd12e2.bnk, can't just replace single .wav file in them.

Two interesting findings:

djey47 commented 3 years ago

As per PR: https://github.com/djey47/tdumt/pull/2/files

some fixes have been made, now testing in progress (with game engine)

STILL FAILING: