niels-db / Rush-Royale-Bot

Python based bot for Rush Royale
MIT License
9 stars 1 forks source link

Error #5

Open FaustRUS opened 1 year ago

FaustRUS commented 1 year ago

The bot enters the 7th floor well , but after it exposes the first 4 pawns , it gives an error !

Exception in thread Thread-3: Traceback (most recent call last): File "C:\Users\everm\AppData\Local\Programs\Python\Python39\lib\threading.py", line 980, in _bootstrap_inner self.run() File "C:\Users\everm\AppData\Local\Programs\Python\Python39\lib\threading.py", line 917, in run self._target(*self._args, **self._kwargs) File "C:\Users\everm\OneDrive\Рабочий стол\Rush-Royale-Bot-new-features\Src\bot_handler.py", line 135, in bot_loop grid_df, bot.unit_series, bot.merge_series, bot.df_groups, bot.info = combat_loop( File "C:\Users\everm\OneDrive\Рабочий стол\Rush-Royale-Bot-new-features\Src\bot_handler.py", line 80, in combat_loop grid_df, unit_series, merge_series, df_groups, info = bot.try_merge(prev_grid=grid_df, merge_target=user_target) File "C:\Users\everm\OneDrive\Рабочий стол\Rush-Royale-Bot-new-features\Src\bot_core.py", line 351, in try_merge if (num_merge_target >= 6 or num_dh >= 6) and (df_groups['empty.png'] <= 1): UnboundLocalError: local variable 'num_dh' referenced before assignment

I thought it was demon hunter , but after replacing it , nothing has changed !

Piet-Jacobs commented 1 year ago

Are you running scrapper without DH? I built the scrapper logic specifically with DH in mind, but I can fix this issue later

FaustRUS commented 1 year ago

trapper, demon_hunter, chemist, scrapper, summoner Here 's the deck I 'm playing , but with any replacement , the error is the same !

Piet-Jacobs commented 1 year ago

Show me your config.ini please

FaustRUS commented 1 year ago

[bot] floor = 7 mana_level = 1,2,3 units = trapper, demon_hunter, chemist, scrapper, summoner dps_unit = bruser pve = True watch_ad = True require_shaman = True treasure_map_green = False treasure_map_gold = False

FaustRUS commented 1 year ago

Everything worked , I didn 't see that there is a br user in dps_unit ! Thank you so much for the bot !

Piet-Jacobs commented 1 year ago

Np, I will leave this issue open because I still need to fix that error. It will trigger if you are running scrapper without demon_hunter as dps_unit