Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to pack back Data0.bdt or other .bdt? #53

Open
haohao698690 opened this issue Mar 28, 2022 · 1 comment
Open

how to pack back Data0.bdt or other .bdt? #53

haohao698690 opened this issue Mar 28, 2022 · 1 comment

Comments

@haohao698690
Copy link

haohao698690 commented Mar 28, 2022

Or any method to let the game load loose file located at /sound?
It seems nether the patch of UXM and mod engine 2 do this. So I am considering how to re-pack the .bdt files.

@googleben
Copy link

See #45 (comment). You're right about UXM and Mod Engine. If you read UXM's warnings, it notes that patching a vanilla Sekiro will crash the game - it's likely that will happen with Elden Ring as well. As for Mod Engine, its method is much more sophisticated than UXM's and is the approach I recommend in the linked issue, but will take effort to update for ER.

As far as repacking .bdt files, it's not easy. .bhd and .bdt files use several forms of encryption - some of which are symmetric (i.e. reproducible since we need the key to decrypt them), but they also use RSA encryption which is asymmetric, which means we don't have the key we need to encrypt the files. I'm rusty on my encryption but I believe you can derive the RSA public key from its paired private key, but not vice versa. FromSoft likely ships the public key and encrypts with the private key to prevent modification. Because of that there has been little effort to make a .bdt repacker.

In order to load custom files without waiting for a Mod Engine update you'll have to do some programming legwork yourself, either updating Mod Engine or writing code to repack .bdt files and then modifying the .exe with your RSA key.

If all of that sounds like gibberish, the tl;dr is that you'll just have to wait for Mod Engine or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants