Let's start with feature requests:
1. Could you please add 2 new constants?:
- REGISTRY_BGEE_PATH - the path of BG:EE (as read from the registry), or empty if not available.
- REGISTRY_BG2EE_PATH - ditto for BG2:EE.
There are already such constants for BG1, BG2, PST, IWD1 and IWD2.
2. Please allow us to specify from which exact biff we want to extract files. Currently it is only possible to do so from all biffs at once.
And here is a bug that is literaly driving me insane
This code works just fine when run from the batch file in BG1:EE directory:
Weidu.exe --noautoupdate --no-auto-tp2 --logapp --log test/bash.debug --game "C:/Program Files (x86)/BeamDog/Games/00766" --out "test" --biff-get-rest "^MAIN.*\.wav$"
all files are extracted.
BUT this one when run from BG2:EE directory, tp2 file:
AT_NOW ~Weidu.exe --noautoupdate --no-auto-tp2 --logapp --log test/bash.debug --game "C:/Program Files (x86)/BeamDog/Games/00766" --out "test" --biff-get-rest "^MAIN.*\.wav$"~
will correctly unbiff files from CHASOUND.BIF but at the same time will show errors for files in LOCCHA.BIF:
ERROR: BIFF [C:\Program Files (x86)\BeamDog\Games\00766/DATA/LOCCHA.BIF] cannot be loaded: Unix.Unix_error(20, "stat", "C:\\Program Files (x86)\\BeamDog\\Games\\00766/DATA/LOCCHA.BIF")
all files from LOCCHA.BIF ends up corrupted 0 kb files.
I really don't get it. It is exactly the same code, just running from different directory
All other bif files that I have tested can be extracted just fine.
Here is a test tp2 file that should be started in BG2:EE directory and will try to unbiff these wav files from BG1:EE. Please let me know if you can reproduce this error.
https://www.sendspace.com/file/xmq5mfedit: I'm using the latest beta.