Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Trying add CoinClick support, need help #9

Open
ValoWaking opened this issue Dec 30, 2020 · 15 comments
Open

Trying add CoinClick support, need help #9

ValoWaking opened this issue Dec 30, 2020 · 15 comments
Assignees
Labels
enhancement New feature or request

Comments

@ValoWaking
Copy link

ValoWaking commented Dec 30, 2020

Hi im trying to add CoinClick support and bot didnt want to start, so i need help:

class BotCoinClick:

def __init__(self):
    self.start_img_path = "rc_items/CoinClick_gameimg.png"
    self.game = "CoinClick"

def play(self):
    start_game(self.start_img_path)
    start_game_msg(self.game)
    self.run_game()
    end_game()

def run_game(self):
    while check_image("rc_items/bitcoin_droppingcoin.png"):
    click_image("rc_items/bitcoin_droppingcoin.png")
@ValoWaking ValoWaking added the enhancement New feature or request label Dec 30, 2020
@SteidleR
Copy link
Collaborator

Too few information to help you. Does 'coinclick_gameimg.png' exist and has the correct scale? Added BotCoinClick().play() to the main function?
What you mean with 'didn't want to start'? Is the Game on the games page clicked and it doesn't click on 'Start Game' or does it just not find the template on the main game page?

Sorry for the many questions ;D but i need more information

@ValoWaking
Copy link
Author

No, i mean that the command prompt is closed in few seconds... Now i fixed it. At this moment bot is enter to the game, but didn't want to click the coins, and mouse cursor doesn't move

`class BotCoinClick:
def init(self):
self.start_img_path = "rc_items/CoinClick_gameimg.png"
self.game = "CoinClick"

def play(self):
    start_game(self.start_img_path)
    start_game_msg(self.game)
    self.run_game()
    end_game()

def run_game(self):
    while not check_image("rc_items/gain_power.png"):
        if check_image("rc_items/bitcoin_droppingcoin.png"):
              click_image("rc_items/bitcoin_droppingcoin.png")
        if check_image("rc_items/dashcoin_droppingcoin.png"):
              click_image("rc_items/dashcoin_droppingcoin.png")
        if check_image("rc_items/dogecoin_droppingcoin.png"):
              click_image("rc_items/dogecoin_droppingcoin.png")
        if check_image("rc_items/litecoin_droppingcoin.png"):
              click_image("rc_items/litecoin_droppingcoin.png")

def main():
global GAME_NUM
while True:
GAME_NUM += 1
BotCoinClick().play()
time.sleep(20)`

@ValoWaking
Copy link
Author

Try it by your self

dashcoin_droppingcoin
dogecoin_droppingcoin
litecoin_droppingcoin
bitcoin_droppingcoin

@ValoWaking
Copy link
Author

also try this
bitcoin_droppingcoin
dashcoin_droppingcoin
dogecoin_droppingcoin
litecoin_droppingcoin

@SteidleR
Copy link
Collaborator

I've already tested to implement this a few weeks ago but my implementation was too slow. The coins are moving way too fast so the template matching can't recognize this. maybe you have to implement a other method to check if there is a coin to click. Maybe you could achieve this by using some color recognition at a given position or column?
Please let me know if you could come up with some working bot. I'm currently developing the coinflip bot and after that i will look at coin click

@ValoWaking
Copy link
Author

Yeah, i think about this. OpenCV is create new screenshots so slowly...

@ValoWaking
Copy link
Author

ValoWaking commented Dec 30, 2020

And today I have message "System is detect you a bot" ))) but account still not banned

@SteidleR
Copy link
Collaborator

Ok this is interesting ;) I've run this bot 20hours and without any message. But no ban is good

@ValoWaking
Copy link
Author

Did u try to compile Rollercoin-Automation on c#?

@SteidleR
Copy link
Collaborator

no

@jonnytracker
Copy link

i have submitted working coin click game i created ..

@SteidleR
Copy link
Collaborator

SteidleR commented Jan 1, 2021

Nice, thanks! I will merge that and restructure the code a bit to get it working with the current bot

@SteidleR
Copy link
Collaborator

SteidleR commented Jan 1, 2021

@blcx Sry but i couldnt get your code to run correctly. The doge coins won't get clicked. Maybe you could work on your code and contribute to it (I have it on the branch 'coinclick'). It would be really nice if you could get it to run.

@jonnytracker
Copy link

I will away few days from my computer and will check it when im back ..

The issue:

  1. it is hard coded for my screen HD , please make sure there is no font magnifying or other screen magnification.
  2. Is it at least clicking the menu and game start button ? If so then it probably is the region box issue due to different screen size

Anyway il take a look when im back.
Thank you

@SteidleR
Copy link
Collaborator

SteidleR commented Jan 2, 2021

menu and start button are clicked, some of the coins are also clicked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants