masterking32 / MasterHamsterKombatBot

Master Hamster Kombat Bot is a Python-based automation tool specifically designed for the game Hamster Kombat. This bot is capable of performing all in-game tasks, including auto-tapping, cipher tasks, and purchasing the best cards on your behalf. It's a free and fully automated farming bot that enhances your Hamster Kombat gaming experience.
https://masterking32.com
Apache License 2.0
266 stars 87 forks source link

Maximum number of playground games reached. Increase Limit #234

Closed CipherVasat closed 2 weeks ago

CipherVasat commented 2 weeks ago

even though i increased the number:

if self.CheckPlayGroundGameState(promo, response): promoData = SupportedPromoGames[promo["promoId"]]

            promo_count += 1
            if self.GetConfig(
                "max_promo_games_per_round", 39
            ) != 0 and promo_count > self.GetConfig("max_promo_games_per_round", 39):
                log.info(
                    f"[{self.account_name}] Maximum number of playground games reached. We will retrieve other games in the next run."
                )
                return

            log.info(
                f"[{self.account_name}] Starting {promoData['name']} Playground game..."
            )
            time.sleep(1)
            promoCode = self.GetPlayGroundGameKey(promoData)
            if promoCode is not None:
                log.info(
                    f"\033[1;34m[{self.account_name}] {promoData['name']} key: {promoCode}\033[0m"
                )
                time.sleep(2)
                log.info(f"[{self.account_name}] Claiming {promoData['name']}...")
                self.ClaimPlayGroundGame(promoCode)
                log.info(
                    f"[{self.account_name}] {promoData['name']} claimed successfully."
                )

to 39 still after 3 claims it throws such a message. whats the fix, am i missing something?

Fy0urM commented 2 weeks ago

because read config,py

Fy0urM commented 2 weeks ago

if self.GetConfig( "max_promo_games_per_round", 39 ) != 0 and promo_count > self.GetConfig("max_promo_games_per_round", 39):

the value you changed, as told by the method that uses it, will set the value you selected if the parameter the method requests is not present in config.py