Script for automation and accounting of farm sessions for Borderlands 2.
Controls:
.
- Begin session or start a new run
p
- Pause
y
- Note
r_shift
- Exit
Script uses pynput
to track keyboard.
pip install pynput
- Run script via terminal:
python farmer.py
. Now it begins to track your keyboard input. - Go into the game and at the loaded location press
.
to start run. - Kill this boss!
- If run is done:
- If you didn't get anything, press
.
again to end this run and start a new one, the script will automatically re-enter the game. - If you got something, you can write about it in the game chat by pressing
y
. You can then pressenter
and the script will end this run with a note and start new run.
- If you didn't get anything, press
- Repeat several times, starting from step 3.
- Press
r_shift
to done script and watch statistics for this session and in general (last started run will not be saved).
All information about runs stored in save.toml
file. You can change keybinding in settings.toml
, and also you can change delays between pressing keys, if script does it too fast. Also you can change tag of item, that you are farming. The script will display statistics only for the tag under which the race is run.