Dindo-Bot: Bot freezes up and does not collect resources
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.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Attempt to fix get_image() function issue #16 — committed to Gamerium/Dindo-Bot by AXeL-dev 4 years ago
- Fix job level up popup closing #16 — committed to Gamerium/Dindo-Bot by AXeL-dev 4 years ago
- Add an option in bot settings to disable auto closing popups #16 In case something goes wrong or popup detection fails — committed to Gamerium/Dindo-Bot by AXeL-dev 4 years ago
- Restore the possibility to set custom game window height #16 Calculated window decoration height didn't work well for me (even after refreshing maps) — committed to Gamerium/Dindo-Bot by AXeL-dev 4 years ago
The bot inconsistently resizes the game window both using window decoration height option and automatic resizing. This does not affect farming, however, it does cause the pod bar percentage to be inaccurate.
I am wondering if this is because the bot resizes to the middle of the screen and my laptop resolution is not large enough (the bottom of the bot is slightly hidden)
One Issue that is coming up is that when the Profession Level increased popup shows up on the side, the bot simulates pressing the esc key but that brings up the main menu instead of closing the popup.
Other than that when a character challenges you the bot will freeze, this may be a similar fix to closing the popup
I do not move or resize the bot after creating the map. Once the bot resizes and auto-snaps the window I don’t touch it. My screen resolution is 1366x768.
It’s really clear, I appreciate the effort. (Your english is perfect)
Hi, here is my maps.data and log files. I will try the fix and let you know if it works.
maps.zip logs.zip
Hey again, can you share your
maps.datafile here please? (it should be inside the Dindo-bot directory)Edit: i have done some changes that might help to fix your issue, so please first install the following package:
sudo apt install scrotThen, update or redownload the bot & try again 😃 .
Note: i still need to get your
logs/*.log&maps.datafiles for better investigation.My linux distribution is ubuntu bionic, I updated it to the most recent distro which is 18.04 but I am still receiving the same error. Thanks for the support!