ilpersi / BHBot

A bot that automates a game called Bit Heroes
GNU General Public License v3.0
28 stars 32 forks source link

Game restarting after trying to persuade #179

Open igoramd opened 4 years ago

igoramd commented 4 years ago

The game is restarting after trying to persuade a familiar. It's happen when the new feature (auto persuade) is actived. The game acts faster then bot. Maybe any way to deactive AUTOBRIBE?

The logs: [DungeonThread] AUTOBRIBE com.github.ilpersi.BHBot.BHBotLogger - Familiar encountered [DungeonThread] WARN com.github.ilpersi.BHBot.BHBotLogger - Count for familiar squib is 0! Temporary removing it form the settings... [DungeonThread] ERROR com.github.ilpersi.BHBot.BHBotLogger - Impossible to find the decline button, restarting... [DungeonThread] WARN com.github.ilpersi.BHBot.BHBotLogger - Doing driver emergency restart...

Desktop:

settings.zip

ilpersi commented 4 years ago

Try to comment out the familiars settings and to set persuasionLevel to 0. This should completely disable the auto-bribing and the auto-persuading features.

igoramd commented 4 years ago

I commented the familiars settings and set the persuasionLevel to 0 and the bot continued restarting the game :(

It looked like this:

persuasionLevel 0 #bribeLevel 0 #familiars squib 0 #familiarScreenshot 1 #contributeFamiliars 1

I also tried to comment on persuasionLevel, but got the same result. Is there any other setting for commenting?

settings.ini: settings.zip

ilpersi commented 4 years ago

I am able to reproduce this and I am still thinking about the best way to fix this.

Probably, as the feature is built in the game, we do not need it anymore so more code refactoring is required. If you want to run the bot I suggest disabling the game feature while I try to find a better solution.

igoramd commented 4 years ago

Yes, I have currently disabled the game feature and am using the bot's AUTOBRIBE, but this makes a dungeon rush slower.

I'll be waiting for news. Thank you very much for your attention! <3 :)

ilpersi commented 4 years ago

I would prefer if we keep this open. It helps me remind things to do and it may be useful for other people having the same issue.

tengen-toppa commented 4 years ago

Is any possibility to add a choice switch in front of all above the capture logic procedure to decide bot going to handle the capture or not ? If chose let game build-in handling, bot complete ignore the capture window. Otherwise, user can use now bot capture process but must close built-in option first.

ilpersi commented 4 years ago

@tengen-toppa as one of the bot features is overlapping with a built-in one I am going to remove the unnecessary function from the bot otherwise it may be misleading for users.

tengen-toppa commented 4 years ago

@tengen-toppa as one of the bot features is overlapping with a built-in one I am going to remove the unnecessary function from the bot otherwise it may be misleading for users.

Appreciate your hard work on BH bot.

ilpersi commented 3 years ago

@igoramd I just released the new v46.4: it does not solve this issue, but it has many improvements and optimizations for encounter management that now is much faster than it used to be.

Check it out. 👍🏻

igoramd commented 3 years ago

Hey, it's incredibly faster now! It was really good.

I will have no more problems with that. Should I close this now?

ilpersi commented 3 years ago

I still need to make the bot work with built-in settings so l let's keep this open even if I consider it a low priority. :)