Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.87 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.87 KB

OpenSource PythonVersions License Git.io

Noobtown -- Automate builds in Minetest

Completed:

  • Main Menu
  • Calibration Screen
  • locate Minetest window, and raise focus
  • retrieve X, Y coordinates from screen
  • generate all craft-grid coords, given upper-left and lower-right corners
  • generate all inventory coords, given a1 and h8 corners
  • Python global hotkey hook, so you can tap ` to return
  • save data in Python's .pickle format
  • screenshot function
  • OCR the XYZ coords
  • RGB PixelAt(x,y) color function
  • .pitch CSM to report tilt of camera view

To-do:

  • create a simple scripting language
  • North, South, East, West
  • Left, Right, Forward, Backward
  • Chop, Place a block, look Up, look Down
  • 1-8 will select that inventory slot
  • Jump, Hold shift, Release shift
  • comments

  • add some kind of looping functionality
  • letter followed by number will repeat that many times
  • OCR xyz >> movement >> OCR xyz >> compare routine
  • pixel RGB >> action >> pixel RGB >> compare if item's been placed / used
  • .pitch >> OCR >> .pitch >> compare camera view tilt

sudo pip3 install keyboard
(or)
sudo python3 -m pip install keyboard

ended up importing keyboard instead of keybinder for the hotkey.
better examples, can get it to run, but you have to use sudo...

sudo ./noobtown
(or)
sudo python3 -m noobtown