Giter Club home page Giter Club logo

bit-heroes-bot's People

Contributors

9-9-9-9 avatar daredoes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bit-heroes-bot's Issues

Unable to build

Hi,

i'd like to test your bot, I've installed JDK (8, javac command is working), Maven (latest version, MVN command is working), but i'm gettins those errors:

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bh.bot:BitHeroes:jar:1.0.2
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 36, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 44, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] --------------------------< bh.bot:BitHeroes >--------------------------
[INFO] Building BitHeroes 1.0.2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ BitHeroes ---
[INFO] Deleting C:\Users\Marco\Documents\GitHub\Bit-Heroes-bot\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BitHeroes ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 16 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ BitHeroes ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 21 source files to C:\Users\Marco\Documents\GitHub\Bit-Heroes-bot\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.389 s
[INFO] Finished at: 2021-08-24T12:24:35+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project BitHeroes: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Nella destinazione, BitHeroes.jar specifica
un nome di file o di directory
(F = file, D = directory)? F
Impossibile trovare il file - BitHeroes-*-jar-with-dependencies.jar
0 File copiati
Error: Unable to access jarfile BitHeroes.jar

mini-client

Hello
Im unable to generate "mini-client" but everytime i start client.bat it always says " Unable to generate mini-client!!! " even after i checked my user-config and i think i did everything right as the "prepare-mini-chrome-client" says.
There is 98% chance i just fvcked up but after this time i dont know what can i do different.

[QUESTION] Mini Chrome - Out of memory

Hello,
I would like to share a problem I came across grinding:

After some time doing raid or any other resource I get this error, my pc has 24g of ram memory, so I found it strange, I did a search on this problem, honestly I didn't find a solution, from what I understood this would be a problem that the game developers would have to deal with.

I would like to know if anyone has gone through this, and if there is any way to get around this problem.

I'm using:

  • Lubuntu 22.04
  • Virtualizing with virt manager with antiX-21 OS each VM has 6G of ram

image

Just to top it off, the problem occurs both on the VM and directly on my machine.
I already did a test running only the mini-chrome and nothing else on my pc, even so, after a while I get this error.

[Bug] Selecting PVP team

Describe the bug
While bot is on AFK mode, it picks just first team for PVP even i have in settings to be the las team(4).

To Reproduce
Mode?------------AFK
Steps to reproduce the behavior?---------Start bot on AFK mode, let it do the work.

Expected behavior
I expected to chose last team(4) on PVP.

Screenshots

** Environment: **

  • OS: Windows 10
  • Client Steam
  • Version 2.5.0

Unable to access jarfile BitHeroes.jar

Hello.
After building, i tried to run steam version of bot by using steam.bot.bat and got this mistake.

C:\Users\ierun\Bit-Heroes-bot-release-1.7.2>call _.bat --steam

C:\Users\ierun\Bit-Heroes-bot-release-1.7.2>java -jar BitHeroes.jar --steam
Error: Unable to access jarfile BitHeroes.jar

C:\Users\ierun\Bit-Heroes-bot-release-1.7.2>goto L_EXIT

C:\Users\ierun\Bit-Heroes-bot-release-1.7.2>pause
Для продолжения нажмите любую клавишу . . .

[Question] how to execute two accounts with different profiles

hello first thanks for the work!
I'm testing the project and I'm loving it!
I would like to know if I can run two accounts simultaneously with different profiles?
Given that they share the same coordinate, could this be a problem? Sorry if this is not the right place for this question.

Trials not working

Windows 10, latest (great) version 1.4.0

Trials not working, here's the error:
Image is not available: game-images_steam_labels_attendable-places_trials-tp, profile steam

error on world boss

bh.bot.common.exceptions.InvalidDataException: Unable to detect index of selected radio button among 1 results
at bh.bot.app.AbstractApplication.detectRadioButtons(AbstractApplication.java:698)
at bh.bot.app.AbstractApplication.tryEnterWorldBoss(AbstractApplication.java:1326)
at bh.bot.app.AfkApp.doLoop(AfkApp.java:353)
at bh.bot.app.AfkApp.lambda$internalRun$0(AfkApp.java:117)
at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
** ERR ** doLoop encountered error!

i get this error when it tries to do world boss. It just started doing this today i believe

GJ

well done, this gonna help us a lot ❤️

Problem 2: Bot controls mouse and keyboard. It's inconvenient

This bot currently using java.awt.Robot class to send mouse click and press keyboard and it's inconvenient.

I would like to migrate to use PostMessage or similar APIs so users can use their device while doing bot.

If anyone have interested in developing this bot and can help me to resolve/implement this feature, please go on.
Targets: Windows (7+) & Linux (or at least Ubuntu)

[Bug] ... (Post resize) JNA detect invalid screen size of Steam client! Expected 800x520 but found 799x520

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Mode? (AFK/ReRun/...)
Steps to reproduce the behavior?

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

** Environment: **

  • OS: (Windows 7/Windows 10/Ubuntu 20)
  • Client (Steam/Mini-client/Web)
  • Version (2.4.0/2.3.0/...)

Additional context
Add any other context about the problem here.

Unable to generate mini-client, Reason: None data was provided

Hi there, sorry to boder you, but i dont know what I am doing wrong, well actually I dont know what I am doing.
I followed the steps of "prepare-mini-chrome-client" and then clicked "client" but that error come up, so i dont know whats wrong, hope u can help me.
miniclient error

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>del mini-game-on-chrome7.bat 1>nul 2>&1

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>del mini-game-on-chrome8.bat 1>nul 2>&1

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>del mini-game-on-chrome9.bat 1>nul 2>&1

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>del mini-game-on-chrome10.bat 1>nul 2>&1

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>call _.bat client

C:\Program Files (x86)\Google\Chrome\Application\99bot-v2.4.0>java -jar BitHeroes.jar client
** WARNING ** You must move the Bit Heroes game's window to top left corner of your screen or provide exactly screen offset into the 'offset.screen.x & y' keys. See more: https://github.com/9-9-9-9/Bit-Heroes-bot/wiki/Manually-setting-game-screen-coordinate
Going to load configuration from user-config.properties
Please give me a Star at my github repository git.bh99bot.com (short link of https://github.com/9-9-9-9/Bit-Heroes-bot). Thank you
Visit our repository often to update latest bot version with new features added frequently
**** ERR ** Unable to generate mini-client!!!
Reason: None data was provided

Expeditions not working

Windows 10 64, latest version (1.4.0)

Expeditions aren't working, here's the error:

Image is not available: game-images_steam_labels_attendable-places_expedition-tp, profile steam

[Bug] Ubuntu 22 LTS - Image Scan is distorted

Describe the bug
When running the bot in an Ubuntu 22 LTS VM having installed apt install openjdk-8-jre xdotools -y the images scanned by the bot are heavily distorted, and unable to match properly.

To Reproduce
Download Ubuntu 22 LTS
Install into Virtual Box VM
run sudo apt-get install openjdk-8-jre xdotools -y
download the latest bot
setup a chrome client
issue a command with the debug and image flags
see the corrupted image

Expected behavior
The image scans produce images of the game

Screenshots
image

** Environment: **

  • OS: Ubuntu 22
  • Client: Mini-Client
  • Version: 3.6.0

Additional context
Add any other context about the problem here.

Unable to prepare Mini-Chrome

I've followed your instructions, but when I copy/paste the commands into Console Tab (into developers tools) i receive a "undefined" response.

I tried to launch your script using --debug flag, this i what I get:
C:\Users\Marco\Documents\GitHub\Bit-Heroes-bot>java -jar BitHeroes.jar rerun 10 --debug --img
Going to load configuration from user-config.properties
Enabled debug messages
Telegram is disabled due to missing or invalid configuration
Enabled saving debug images
Loop: 10
Mouse move cursor
Not found, repeat
Not found, repeat
Not found, repeat
Not found, repeat

(got X,Y coordinates using your Screenshot+Paint trick)

Bot doesn't realize it's version on released binary (2.1.0-)

For documentation purpose

2.1.0 and earlier versions, bot able to know it's release version when having source code (pom.xml) file because it reads from it.

But on released versions (zip files) bot can't because the pom.xml file wasn't included into the release

So from 2.2.0 (PR#54), an additional file named current-version.txt was added to resources folder and bot can read it's version from it

Consequence:

  • From 2.1.0, the feature to save current version was made, but won't work until 2.2.0
  • From 1.7.0, the feature to check for new updates was made, but won't work until 2.2.0

Detected 'Defeated' State

Hello!

Additional Note: I have ran "Rerun" before with no issues, but with the constant updates from BH; there's a possibility it could have broken

For the "ReRun" option, which is the only one that i'm having problems with, it's not running correctly.
It will go for about 6-7 loops and then state Warning Detected 'Defeated' State" which is weird to me because I am using insanely OP friends to farm on my alt. I'm running T2 D1 "Yeti Dungeon". Don't have this issue with any other function. Do i need to add a flag or what else should i do?

Thank you for your time!
b1 help

Various issues with 1.5.2

I'll write down in a single issue post:

  1. "strange" characters like those at the beginning/end of sentences:
    Select a function you want to launch:←[0m
    ←[33;1m** WARNING ** Please complete the above question first, otherwise bot will be hanged here!!!←[0m
    10
    ←[94;1mYou selected function:←[0m
    ←[96;1m Expedition←[0m
  2. Expeditions:
  • Astamus portal isn't working (the bot move the cursors in the right spot, but isn't clicking it)
  • auto-check is working (the bot correctly read the status of "auto" function) but doesn't enable it
  1. World boss: when using this, i receive this error:
    Key 'ig.user.raid.level' does not exists, default value '0' will be used (Not specified)
    Key 'ig.user.raid.mode' does not exists, default value '0' will be used (Not specified)
    Key 'ig.user.world-boss.level' does not exists, default value '0' will be used (Not specified)
    ←[31;1m** ERR ** Invalid World Boss level 0. Must in range 1 to 8←[0m
    ←[31;1m** ERR ** You have to do setting before using this function←[0m
    ←[31;1m** ERR ** Please launch script 'setting.bat' and follow instruction←[0m

This is my profile readonly.1.user-config.properties file:
Your setting:
NORMAL mode of raid R1 (T4)
world boss Orlag Clan (T3-T12)
Do you want to save the above setting into profile number 1 ?

Problem 3: Complex in bot development due to support multiple screen resolution

Clarify:

  • Current version (at the moment this ticket was created): 1.7.5
  • Current game resolutions supported by 99bot:
    • 800x520 for Web/Mini-client
    • 800x480 for Steam game client
  • This ticket was only created for documentation purpose so I can reference later to let guys understand why

Issues:

  • Take time to cater for both of those game resolution
  • Sometime it's hard to find texture for both resolution

So I decided:

  • from 99bot version 2.0.0 onward, will only support resolution 800x520, and Steam game window will be resized to 800x520 (using JNA)

Why 800x520:

  1. Game resolution on Web/Mini-client can't be changed
  2. Game resolution on Steam can be changed to any resolution using SetWindowPos API of Windows

Rollback planning (in case any issue occurs related this change and unable to fix and decided to drop this change):

  • Rollback to source code version 1.7.5 and push into v3.0.0

Miniclient Stopped Working

I've been using the miniclient successfully for months. Yesterday it stopped working. When I run the .bat, the window appears titled "Bit Heroes" as normal, but the screen stays black and it downloads a file called "download.gz" and that's it. Cannot get it to run. Tried recreating the miniclient and updating my account/token info. from chrome with no success. Unsure if something has happened to mine specifically or if others are seeing the same issue. I know the dev. has stopped supporting it but figured I'd give it a shot :)

Problem 1: Bot doesn't work on MacOS

Bot can't work on MacOS due to java class java.awt.Robot can not perform mouse move, mouse click and key press on MacOS

I have faced with this issue with my Mac Air 2017 with MacOS 10.14 High Sierra, and as I know, MacOS with lower version, the java.awt.Robot still works but I can't test because I dont have any other device.

If anyone can fix this issue, please provide a guideline/pull request/anything can resolve problem.

ReRun issue (bot click button wrongly)

Describe the bug
ReRun function isn't working correctly

To Reproduce
I run the command when the rerun button is visible after completing a dungeon, but the cursor goes straight up away the game and stays there without doing anything, meanwhile the cmd says that it is doing the correct job and the loop starts to decrease the number but never touches rerun button.

Expected behavior
The bot should press the rerun button and the cursor shouldn't go straight up

** Environment: **

  • WIndows 10 running Steam Bit Heroes at version 2.3.206 at 800x480

Additional context
I tested fishing in the exact same resolution and without changing the game frame position and it worked perfectly

Build error

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/ierun/Bit-Heroes-bot-master/src/main/java/bh/bot/app/dev/GenerateMetaApp.java:[14,35] package org.omg.CORBA.DynAnyPackage does not exist
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.239 s
[INFO] Finished at: 2021-09-30T20:22:54+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project 99bot: Compilation failure
[ERROR] /C:/Users/ierun/Bit-Heroes-bot-master/src/main/java/bh/bot/app/dev/GenerateMetaApp.java:[14,35] package org.omg.CORBA.DynAnyPackage does not exist
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
"cmd" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
** ERROR ** maven build failure
Для продолжения нажмите любую клавишу . . .

Can not click the radio button to navigate between Raid levels

OS: Ubuntu 18.04
Client: mini-client & web

Story: bot click the green/gray dots to navigate between Raid/World Boss levels

Issue: bot and user can not click those dots to navigate between Raid levels
But if click the dot of the last Raid and then click those dots normally

World Boss still good

Configure to close chatbox

“You did not configure to close chatbox direct message, so the income messages will stay as is and you might be disconnected after amount of time”

I have no idea how to sort this out so it closes messages, it always stops after I get one.

Skeleton Keys

Any way to get the bot to accept opening chests with skeleton keys?

Edit: won't let me change label/tag

steam rerun isn't working

Iàm experiencing this error when using Steam rerun

Using 'steam' profile which supports 800x480 game resolution
****** IMPORTANT ****** IMPORTANT ******
** WARNING ** You must move the Bit Heroes game's window to top left corner of your screen or provide exactly screen offset into the 'offset.screen.x & y' keys
** WARNING ** Your Bit Heroes game window must be 800x480. You can check it by open Settings, see the Windowed option


Going to load configuration from user-config.properties
java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(Unknown Source)
at bh.bot.common.utils.ImageUtil.loadImageFileFromResource(ImageUtil.java:14)
at bh.bot.common.types.images.BwMatrixMeta.load(BwMatrixMeta.java:211)
at bh.bot.app.AbstractApplication.run(AbstractApplication.java:51)
at bh.bot.Main.main(Main.java:76)
input == null!

Using latest Steam, Windows 10 64

[Bug] mini-client only doing wb and raid on -afk

Describe the bug
from 3.5.1 onwards my mini client only do wb and raid, even if a put only pvp option it does nothing. Steam works fine

To Reproduce
insert any mode that isn't wb and raid, it does nothing. put wb/raid it do fine.

Expected behavior
Do everything like steam version.

** Environment: **

  • Windows 10
  • Mini-client
  • 3.5.1 - 3.6.0

[Bug] ...rerun will think there was a defeat and close

Describe the bug
rerun will think there was a defeat and close

To Reproduce
Mode? (AFK/ReRun/...)
Steps to reproduce the behavior?

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

** Environment: **

  • OS: Windows 10
  • Client Steam
  • Version (2.4.0/2.3.0/#56

Additional context
Add any other context about the problem here.

help (mini client)

Hi, I'm new to using the miniclient and I'm having difficulties using it, I've always used the Steam bot, but I migrated to the browser version using another account, anyway. I follow the steps correctly, but when I filled in and saved the user-config , I couldn't start the miniclient. I would be happy for someone to help me in this situation, because I don't understand anything about programming, but I try to understand :)

[Bug] ...

The AFK option does not work:

If you put 255 for an All Run, it gets stuck there. In the screenshot URL its visible in the right side.

And its supossed to run the regen once you set it up.

Screenshots
(image source is not safe so I removed)

** Environment: **

  • windows 10
  • Client WEB
  • Version (2.9.2)

I dont know if I am doing something wrong, I think its all ok, but still doesn't work.
The config is already set, twice thinking I was setting up wrongly.

AFK Mouse Move 0,0

Could remove the mouse move 0,0 it is very inconvenient sometimes, put the AFK function similar to the RERUN function that does not have this mouse move 0,0

Bot doesn't seem to work

There was a bug in 2.8.3 that made bot internally crashed before start and made the bot not working at all

Rad.pWarn(50,"Only support screen scale 100% (original) otherwise bot will working wrongly");

Should be

Rad.pWarn(50,"Only support screen scale 100%% (original) otherwise bot will working wrongly");

(Legendary bug hehe)

The wrong line of code above causes thread of main loop interrupted and dead without any error popped up so the bot will look normal but actually it won't do it's job

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.