Skip to content

Bot freezes up and does not collect resources #16

@awc782

Description

@awc782

Moving from map to map works fine for me when running the bot, but when it gets to the collect action it freezes up.

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/jae/Desktop/Dindo-Bot/threads/bot.py", line 42, in run
    self.interpret(instructions)
  File "/home/jae/Desktop/Dindo-Bot/threads/bot.py", line 102, in interpret
    self.collect(instruction['map'], instruction['store_path'])
  File "/home/jae/Desktop/Dindo-Bot/threads/job.py", line 39, in collect
    screen = tools.screen_game(self.game_location)
  File "/home/jae/Desktop/Dindo-Bot/lib/tools.py", line 96, in screen_game
    raw = root.get_image(x, y, width, height, X.ZPixmap, 0xffffffff)
  File "/usr/lib/python2.7/dist-packages/Xlib/xobject/drawable.py", line 266, in get_image
    plane_mask = plane_mask)
  File "/usr/lib/python2.7/dist-packages/Xlib/protocol/rq.py", line 1369, in __init__
    self.reply()
  File "/usr/lib/python2.7/dist-packages/Xlib/protocol/rq.py", line 1389, in reply
    raise self._error
BadMatch: <class 'Xlib.error.BadMatch'>: code = 8, resource_id = 294, sequence_number = 13, major_opcode = 73, minor_opcode = 0

This is the error that shows up in terminal, I also have tried disabling Check resources color.
Thanks for replying! This is a really cool project you are working on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions