ilpersi / BHBot

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

Gauntlet stuck on level 60 #98

Closed Larrush closed 5 years ago

Larrush commented 5 years ago

The bot runs on level 60 even though I have set it way higher. I have the newest master with the decrease feature, so there might be some issue.

Or maybe it´s just me again ^^

# Trials/Gauntlet difficulty level
difficultyGauntlet 885
difficultyTrials 890
# Decrease difficulty when you loose
# format: <dungeon_type>:<levels_to_decrease>
# Only Trials and Gauntlet supported, you can mix them as you want (t=trials, g=gauntlet)
# Example 'difficultyFailsafe t:1 g:5' -> you loose a trial, difficultyTrials is decreased by 1. you loose a gauntlet, difficultyGauntlet is decreased by 5
difficultyFailsafe t:1 g:1
ilpersi commented 5 years ago

Can you please paste the version info that you get with print version?

Larrush commented 5 years ago

11:55:59,964 ERROR - Impossile to process user command: print java.lang.ArrayIndexOutOfBoundsException: 1 at BHBot.processCommand(BHBot.java:316) ~[BHBot.jar:?] at BHBot.main(BHBot.java:147) [BHBot.jar:?]

Sadly I only get this message. I redownloaded the .jar and it still shows me this

ilpersi commented 5 years ago

The command to type is print version not just print.

Larrush commented 5 years ago

I downloaded everything now and tried to compile a proper one, but I still get that error somehow.

This is the new version

22:09:30,756 INFO - BHBot v41.5 build on Wed Aug 07 22:02:10 CEST 2019 started.
22:09:30,757 INFO - GIT commit id: 6acd46cf2b6cea6ea37c36fcada82a09e5521990  time: 2019-07-31T20:14:12+0200
22:09:53,613 INFO - Game element found. Starting to run bot..
22:10:11,652 INFO - News popup dismissed.
22:10:26,704 INFO - Startup check to make sure autoShrine is initially disabled
22:10:28,444 DEBUG - Ignore Boss Disabled
22:10:28,458 DEBUG - Ignore Shrine Disabled
22:10:33,540 DEBUG - Checking activity: t
22:10:34,801 DEBUG - Checking activity: g
22:10:45,674 INFO - Character dialog dismissed.
22:10:45,973 READOUT - Tokens: 3, required: >1, Gauntlet cost: 1
22:10:48,667 INFO - Attempting gauntlet at level 60...
22:10:50,997 INFO - Detected gauntlet difficulty level: 901, settings level: 60. Changing..

I also put in the log until the level 60 change in.

Ps: Sry for the print mistake!

ilpersi commented 5 years ago

22:09:30,757 INFO - GIT commit id: 6acd46cf2b6cea6ea37c36fcada82a09e5521990 time: 2019-07-31T20:14:12+0200

This means, you are using version from commit https://github.com/ilpersi/BHBot/commit/6acd46cf2b6cea6ea37c36fcada82a09e5521990 that is dated July 31 so before the new feature has been released.

What is happening is that you are using an old code base (dated July 31) with a new ini settings. As the old code base does not find the difficulty as a fail-safe it is applying the default value that is 60. Make sure to compile the latest version and try again.