vap0r01 / RollercoinBot

Bot to play Rollercoin Games
30 stars 33 forks source link

Coinflip bug #17

Open jul081 opened 3 years ago

jul081 commented 3 years ago

When starting a coinflip game Bot stop from working and show this eror

File "pandas_libs\hashtable_class_helper.pxi", line 998, in pandas._libs.hashtable.Int64HashTable.get_item

KeyError: 0

image

i thought at first it does this because of the level and it need a lot of tile but after reaching lvl 8 it still show the same eror i tried redownload it but it shows the same thing again

SteidleR commented 3 years ago

Could you please post the complete error message? So I get a better view of whats happening...

But I think this occures because no coins are found... Which screen resolution do you have?

smarco1971 commented 3 years ago

Traceback (most recent call last): File "bot.py", line 231, in main() File "bot.py", line 225, in main bot().play() File "bot.py", line 161, in play self.check_coins() File "bot.py", line 197, in check_coins coin2 = (matches["TemplateName"][1], matches["BBox"][1]) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\series.py", line 1071, in getitem result = self.index.get_value(self, key) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\indexes\base.py", line 4730, in get_value return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None)) File "pandas/_libs/index.pyx", line 80, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 88, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 992, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 998, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 1