Due to the couple between gstreamer and python interface, we won't use a virtual environment.
Currently for Linux/Wayland ONLY.
inspired by: Rob Dundas
Wayland version of the old one
Using screenshot APIs provided by Wayland compositors is just SLOOOOOW. A few tweaks required. One of them is using screencast API.
- Arch Linux
- Wayland session & Pipewire
gst-plugin-pipewire
xdg-desktop-portal
xdg-desktop-portal-gnome
(addtional for GNOME)- or other backends (refer archwiki:XDG_Desktop_Portal)
- Python
- numpy
- pillow
- pynput
- gobject
- dbus
- maybe something else?
- Enter game & load world
- find a fishing spot
- maximize screen or switch to full screen
- press esc to open menu
- open a terminal to run the script with
python -m AutoFishing
- select the game window
- refocus to the game window within 2 seconds
- wait and adjust your pointing direction
- goal: leave as much black wire near the cross pointer as possible
- enjoy auto fishing
You might need to do some adjustments, eg. right click once to make everything synchronized correctly.
rm -rf ~/.cache/gstreamer-1.0