See latest.
See development setup.
- Use docker compose to run the provided compose file.
- Change the passwords for both in the file, if desired.
- Log into minio, create a bucket, and access keys:
- Navigate to
http://localhost:9001
. - Log in using the
MINIO_ROOT_USER
andMINIO_ROOT_PASSWORD
defined in the compose file. - Administrator -> Buckets -> Create Bucket +.
- Set the name to
go-bif-examine
. - User -> Access Keys -> Create Access Key +.
- Copy/paste the Access Key and Secret Key to your config.
- Click create.
- Navigate to
- Log into postgres and create the database.
- Navigate to
http://localhost:8080
. - Log into postgres
- Make sure to select
postgres
type - Username:
postgres
- Password: whatever was configured in the compose file
- Make sure to select
- Click
Create database
- Set the name to
go_bif_examine
- Click Save
- Navigate to
- Copy the example config.
- Make sure hostnames and credentials for postgres and minio match what was configured in Setting up Minio and Postgres
- Hint: if you intend to run whisperer on a machine that isn't also running go-bif-examine, make sure
s3.host
is a value accessible from outside the machine running go-bif-examine!
- Hint: if you intend to run whisperer on a machine that isn't also running go-bif-examine, make sure
- Start go-bif-examine:
./go-bif-examine -config ./path/to/config.hcl
- Install whisper
- At least once instance of whisperer:
./whisperer
- If you're not running whisperer on the same machine running go-bif-examine, add the following argument:
-gprc-server ${GRPC_HOST}:${GPRC_PORT}
- Where
GRPC_HOST
== IP of machine running go-bif-examine - Where
GPRC_PORT
== port configured ingrpc.port
in the go-bif-examine config
- Where
- If you're not running whisperer on the same machine running go-bif-examine, add the following argument:
For all commands: if you're not running the CLI from the machine running add the following argument: --gprc ${GRPC_HOST}:${GPRC_PORT}
- Where
GRPC_HOST
== IP of machine running go-bif-examine - Where
GPRC_PORT
== port configured ingrpc.port
in the go-bif-examine config
These steps use the auto
command and assume your key and bif files are laid out as defined by the key file. For example, Baldur's Gate II Enhanced Edition V2.6.6.0 has them laid out like:
path/to/game/install/dir/
├─ data/
│ ├─ 25AmbSnd.bif
│ ├─ 25Areas.bif
│ ├─ ...
├─ chitin.key
Variables:
PROJECT_NAME
:Baldur's Gate II Enhanced Edition V2.6.6.0
GAME_DIR
:"/mnt/c/Program Files (x86)/Steam/steamapps/common/Baldur's Gate II Enhanced Edition"
- I'm running go-bif-examine from WSL, but have steam installed in Windows
KEY_NAME
:chitin.key
PROJECT_ID
: provided by go-bif-examine and printed to console by the CLIBIF_NAME_IN_KEY
:'data/AREA300C.bif'
- Upload key file and automatically try to upload bif files:
./go-bif-examine-cli upload auto --project-name ${PROJECT_NAME} ${KEY_NAME}
- This will print the project ID to console
- Manually upload a bif file, if needed
./go-bif-examine-cli upload bif --project-id ${PROJECT_ID} --name-in-key ${BIF_NAME_IN_KEY} ${GAME_DIR}/${BIF_NAME_IN_KEY}
- Wait... potentially a long time.
- I ran two instances of whisperer running in WSL on my AMD Ryzen 5800X equipped machine for just over 25 hours and churned through a bit over 4500 of 17877 audio resources
The CLI doesn't yet support searching for results, make manual queries via adminer for now. Sorry.
./go-bif-examine-cli download resource ${ID_OF_RESOURCE}
- See the DB for the resource ID