Skip to main content

Baldur's Gate Computer Assisted Reroll for easy character high ability scores roll

Project description

BGCAR

pypi license: GPLv3 lint release

Baldur's Gate Computer Assisted Reroll (BGCAR) helps one effortlessly reach high ability scores for one's CHARNAME by performing computer assisted reroll. This program performs live roll result analysis and only stores the highest value. This is done by capturing screen area containing the total roll score and analyzing its value with OCR.

Installation

Installing from PyPI:

pip install bgcar

Installing from source:

git clone https://github.com/simonkeyd/bgcar && cd ${_##*/}
pip install -r requirements.txt

Step by step guide

  1. Start Baldur's Gate or Baldur's Gate 2 in windowed mode
  2. Proceed to create your character and stop at ability page
  3. Run bgcar (for first time use add -i parameter)
  4. For first time use follow the initial wizard to provide the different positions that the program needs.
    Click on corresponding buttons when asked to and mark the area of the Total roll score by first clicking on the top left of this score and then on the bottom right.
  5. Let the program perform the rolls and stop it by pressing 't' when done

note: Baldur's Gate game window has to be in the foreground so that bgcar can perform capture and clicks.

Demo

BGCAR demo

Advanced usage

see bgcar -h

usage: bgcar [-h] [-d] [-i] [-t TIME] [-m MAX_ROLL_COUNT] [--gpu]

options:
  -h, --help            show this help message and exit
  -d, --debug           print debug level messages (each roll value, etc)
  -i, --initialize      initialize required settings like button location - mandatory before
                        program use
  -t TIME, --time TIME  time in second to wait between each click (one can use decimal
                        values); a delay too short for your setup might cause the program to
                        misbehave (eg. not store roll correctly) (default: 0.03)
  -m MAX_ROLL_COUNT, --max-roll-count MAX_ROLL_COUNT
                        limit the maximum number of roll that you want the program to perform;
                        by default bgcar will run in infinite mode
  --gpu                 enable GPU mode for OCR and accelerating program

Known issues

Invalid value results (eg. program finding incorrect value for a Total roll) can be caused by the following:

  • Total roll score area too big or too small
  • too poor game resolution
  • too small game window (or both)

To prevent this from happening try re-initializing Total roll area (using -i parameter) or enlarging game window and increasing game resolution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bgcar-1.0.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bgcar-1.0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file bgcar-1.0.2.tar.gz.

File metadata

  • Download URL: bgcar-1.0.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for bgcar-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cbe72228baeee46b4cb87f05be61ff67592b0a666e249667ea76e989b81d6881
MD5 9c5eba3d3145095e652c6198dfbd2a5c
BLAKE2b-256 4e7ea0ed8968b9760286df7031ce6b49bf5cf8372f4347c10fd723d8bee019ad

See more details on using hashes here.

File details

Details for the file bgcar-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: bgcar-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for bgcar-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb9e51f198d27488725e0f96527e2affc672b973e2aba6be26ad3dd6e488d336
MD5 cf7321356dd19ec102f243ef2da42766
BLAKE2b-256 0fb78ff175b32862eebfaf129ff9630c4bbb681a57f8738ac621274a34390d7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page