RollercoinBot icon indicating copy to clipboard operation
RollercoinBot copied to clipboard

Trying add CoinClick support, need help

Open ValoWaking opened this issue 5 years ago • 15 comments

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 avatar Dec 30 '20 18:12 ValoWaking

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

SteidleR avatar Dec 30 '20 19:12 SteidleR

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 avatar Dec 30 '20 19:12 ValoWaking

Try it by your self

dashcoin_droppingcoin dogecoin_droppingcoin litecoin_droppingcoin bitcoin_droppingcoin

ValoWaking avatar Dec 30 '20 19:12 ValoWaking

also try this bitcoin_droppingcoin dashcoin_droppingcoin dogecoin_droppingcoin litecoin_droppingcoin

ValoWaking avatar Dec 30 '20 19:12 ValoWaking

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

SteidleR avatar Dec 30 '20 19:12 SteidleR

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

ValoWaking avatar Dec 30 '20 19:12 ValoWaking

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

ValoWaking avatar Dec 30 '20 19:12 ValoWaking

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

SteidleR avatar Dec 30 '20 20:12 SteidleR

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

ValoWaking avatar Dec 30 '20 20:12 ValoWaking

no

SteidleR avatar Dec 30 '20 20:12 SteidleR

i have submitted working coin click game i created ..

ApexArtist avatar Jan 01 '21 12:01 ApexArtist

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

SteidleR avatar Jan 01 '21 13:01 SteidleR

@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.

SteidleR avatar Jan 01 '21 17:01 SteidleR

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

ApexArtist avatar Jan 02 '21 04:01 ApexArtist

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

SteidleR avatar Jan 02 '21 11:01 SteidleR