Code Monkey home page Code Monkey logo

cookiebot's Introduction

Cookie Bot

Cookie Bot is an add-on you can load into Cookie Clicker, that will do an automatic playthrough for Cookie Clicker. It does not cheat (but see below) and it is not strictly speaking a third-party tool in the sense of cookie clicker, but it allows you to get all achievements needed for a complete playthrough.

The tool is designed to mimic a human player, and it avoids being super-human in terms of clicking speed and possible moves. This includes also not playing at night, i.e. from 23:00 until 07:00. For the night mode, if possible, the golden switch is used together with fitting spirits in order to maximize output.

In most cases, the bot uses the same interface as a human player. Some achievements take very long time or are even impossible with the regular game interface. In these cases, the bot accesses the internal game parameters and cheats the game. Cheats are activities that are not possible from the user interface.

Cookie Bot will start wherever you are in your game and continue to a complete playthrough.

Current version

You can see the current version, and a full history of all versions and what they changed by consulting the releases page.

What it does

Cookie Bot plays through the complete game of Cookie Clicker. This will take about two months, depending a lot on randomness in the game itself. See also the FAQ for more details. It indicates its current steps when you hover over the version text of it (bottom left of screen).

Limitations

It is not claimed that Cookie Bot uses the best strategy possible. The idea is to use one strategy that works in all cases. That being said, please feel free to suggest improvements.

Cookie Bot does not combine well with imports. If you want to run it on another game, first reload cookie clicker and get rid of the bot, then import, and finally reload the bot.

Usage

Bookmarklet

Copy this code and save it as a bookmark. Paste it in the URL section. To activate, click the bookmark when the Cookie Clicker game is open.

javascript: (function () {
	Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlay.js');
}());

If (for some reason) the above doesn't work, try pasting everything after the javascript: bit into your browser's console.

You can also try the beta version with the following code (No guarantees whatsoever).

javascript: (function () {
	Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlayBeta.js');
}());

Userscript

Cookie Bot can also be activated via script in Tampermonkey (or Greasemonkey). This script will automatically load Cookie Monster every time the original game loads. Check your browsers/plugin's documentation for how to add a userscript. This script is courtesy of SearchAndDestroy.

// ==UserScript==
// @name        Cookie Bot
// @namespace   https://github.com/prinzstani/CookieBot
// @include     http://orteil.dashnet.org/cookieclicker/
// @version     2.01
// @author      prinzstani
// @grant       none
// ==/UserScript==
    
var code = "(" + (function() {
    var checkReady = setInterval(function() {
        if (typeof Game.ready !== 'undefined' && Game.ready) {
            Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlay.js');
            clearInterval(checkReady);
        }
    }, 1000);
}).toString() + ")()";

window.eval(code);

If you are using the beta, use this instead:

// ==UserScript==
// @name        Cookie Bot Beta
// @namespace   https://github.com/prinzstani/CookieBot
// @include     http://orteil.dashnet.org/cookieclicker/
// @version     2.01
// @author      prinzstani
// @grant       none
// ==/UserScript==
    
var code = "(" + (function() {
    var checkReady = setInterval(function() {
        if (typeof Game.ready !== 'undefined' && Game.ready) {
            Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlayBeta.js');
            clearInterval(checkReady);
        }
    }, 1000);
}).toString() + ")()";

window.eval(code);

Steam

Cookie Bot can be used in the Steam version by creating a new folder and 2 files within it. These scripts are courtesy of thelmexx. Create a folder in the {Install Folder}\resources\app\mods\local folder named CookieBot and add these 2 files within it.

info.txt:
{
	"Name": "CookieBot",
	"ID": "cookie bot",
	"Author": "prinzstani",
	"Description": "Cookie Bot is an add-on you can load into Cookie Clicker, that will do an automatic playthrough for Cookie Clicker.",
	"ModVersion": 2.030,
	"GameVersion": 2.042,
	"Date": "13/09/2021",
	"Dependencies": [],
	"Disabled": 1
}
main.js:

Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlay.js');

Or for the beta: Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlayBeta.js');

Alternative Install

Alternatively, you can download the files CookieBot4Steam.zip or CookieBotBeta4Steam.zip, extract it, and place it in your {Install Folder}\resources\app\mods\local.

Bugs and suggestions

Any bug or suggestion should be created as an issue in the repository for easier tracking. This allows to follow the status of the issue.

All suggestions are welcome, even the smallest ones.

Before submitting a bug report, please reload the bot, as it is continuously improved. Maybe the bug is already fixed. When you do report a bug, please make sure to include the following information.

  • Version number of Cookie Clicker and of Cookie Bot, also indicating whether you use the beta or not.
  • Description of the Problem
  • Export save of the status when the problem arises.

Contributors

We need more contributors. Please contact [email protected] if you are interested.

cookiebot's People

Contributors

jade99 avatar kikithecat12345 avatar prinzstani avatar tanzgarnele avatar troycomi avatar uecasm 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookiebot's Issues

Bot gets stuck reincarnating

The bot gets stuck when it needs to reincarnate. It's ascending but I need to reincarnate manually before the bot continues.
It gets stuck since your last commit.
Also the game was updated to 2.016 but it gets stuck before that.

runJustRight

I'm having some sort of issue with the script now, and I'm not sure if it's connected to the newest update or not. I'm now getting messages about runJustRight:

Starting runJustRight
runJustRight does not work, retry.

The bot now seems to be ignoring heavenly chip upgrades, sometimes rapidly buying and selling buildings, and forces ascensions as soon as they are available (even though I alrighty have Reincarnation). The "What is the bot doing?" box just shows "Running just right."

Cookie bot not starting

I click the bookmark to start it, and It says that the cookie bot is starting, and it get the first like 5 achievements, but then nothing. Clicking is set to auto, and the logs read "NULL".

Why not to keep "Lucky!" cookies required at max

I am new to cookieclicker.
Why the bot does not consider "Lucky!" cookies required when playing auto mode?
It may try to keep cookies at the bank at top level even after buying. In my opinion, if it does it may reduce time to finish game.

New update approaching.

There is a new update approaching for cookie clicker. This will include a new minigame the stock markets as well as new heavenly upgrades and regular upgrades.

Support for clicking new Fortune upgrades in news ticker.

2.021 of CC now has fortune upgrades once the fortune cookie heavenly upgrade is bought. I had a fortune appear in my news ticker and I had to click it manually.

I'm not certain if clicking the news ticker will generate these fortunes or if it's only on automatic roll over.

Getting "Lucky Payout" Faster

Would it be possible to control the amount of prestige levels that you get to make getting Lucky Payout much faster?

Hard ascend timer gets confused by being suspended

### ascend after 12.326822326388887 days just while waiting for next achievement.

Not 40 like it's supposed to. I haven't looked too closely at the cause but I'm fairly sure that the trigger is suspending/hibernating the PC with the browser tab still open.

Add sugar lump clicking when it can be clicked immediately for 50% chance to harvest

On my save, I can click the sugar lump immediately to have a 50% chance of it giving me a sugar lump, so auto-clicking that at maximum speed should give sugar lumps at a high rate. Then, using those sugar lumps to a minimum of 100 on building upgrades should maximize CpS. Currently, the bot waits 5 seconds per sugar lump for it to be ripe, when it could click ~150 times in that time and harvest 75 sugar lumps instead of 1-3.

Here's my save:

Mi4wMzF8fDE2MTQyNzYzNzkxMDk7MTQyNzk1NDU1OTcwMTsxNjE0MjkzNDU3Njc1O0F1dG9tYXRlZCBBbGV4IENvb2tpZW1hY2hpbmU7anVwcmZ8MDExMTAwMDAwMDAwMDAxMDAxMDEwfDEuMjQ0NTgwNzg2NzI5MTA4OGUrNjc7Mi4xNjU4MTU0MjQ2NjUxOTNlKzY5OzM1NTI4OzM5NzQ3Mzs2LjMyNTM5NTY3MzU3NTU3NGUrNjg7ODU1OTsxOzI7My40MzU0ODcwMDk3MDA1MTkyZSs3ODsxOzA7MDswOy0xOzMxNzE7MjQ1NTs0LjE1MjE4NjI2MTMwMTIzNzNlKzY4OzM3OzE0Ozk2OzIyMzA0NTM7NTtjaHJpc3RtYXM7NC45ODIyNTMwNjIxOTM4NjNlKzY5OzEyOzEuNTA4OTA4MDMxNzMxNzMxM2UrMjI7MS41MDg5MDgwMzE1MTMwNWUrMjI7MjE4NjgxMzQwOTM5NzswOzA7Njk5OzYxMzs3MTY7MjI2OzcyNDsyNTsxNTsxOzE7MDswOzA7MzI3OzI4MDY4MzsxNjE0MjE3ODU4NzY5OzE5MjQ3OzA7OzQxOzE7MTs1LjE5NTg1OTQ0Nzc1ODg0M2UrNTY7fDEwODQsMzI4NCwzLjI0MjUyMzI3MzI0NDczMmUrNjYsMjE5LCwwLDEwODQ7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DExMTExMTExMDAxMTExMTEwMDAwMDAxMTAwMTExMTExMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTAxMDAwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAxMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDAwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTAwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMXwxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDAwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwfDAsMjgxNTA4MiwyODE0NjcwLDcsMCwwOzIsMTMwODYxMSwxMzA4NDk4LDAuNSwwLDA7MTEsMjU5MjAwMCwyNTg5NzM0LDEsMCwwOzksMjE5MCw0NSw5Niw1OzEsNDUwLDQxOCw2NjY7fA%3D%3D%21END%21

Hacking in cookies Shadow achievement

After you have obtained 1 duodecillion cookies does the bot wait till a certain time to hack in cookies or has this not been implemented?

Here is my save if you wish to test it

Mi4wMTA2fHwxNTI0NTA0NzA1NTUwOzE1MjI0NDUxODQwOTI7MTUyNDUwNTI1MjcwMDtBdXRvbWF0ZWQgQ2FuYWRpYW5Gcmllczt3ZnpucnwxMTExMTExMTEwMDEwMDExMHwzLjU0NDc0NzUwMjk0ODE3M2UrMzI7OS44NTQ1MDQ4MjA1MTg2NDFlKzMzOzE3MTU7OTE3NTsyLjQ1ODQ5NjA4MzIwNjc3MzRlKzMzOzE1ODsyOzEzOzEuMTkzMTIwNDAyODczOTQ1ZSszOTswOzA7MDs2ODs1Mzg4OzEwNDsxOzA7MDsxNDszOzI1NzU3MzQ7MTtjaHJpc3RtYXM7MDswOzEwNjA2MjM5MzY7Mjg5NzAxNTc7MTAzMTY1Mzc3OTswOzA7NDAwOzQ0Mjs0NDE7MjI2OzcyOzIyOzE1OzE7MDswOzA7MDszOzIyOzE1MjQ0NTkyMTkzNzA7MDswO3w1MDMsODUzLDYuMzMzNDg3MTgxMjM0NTY4ZSszMCwwOzQ1MCw4MDAsNy4zMTU4OTg4OTMyNDExOTFlKzI3LDA7NDI5LDc3OSw0Ljc0NDk3MjM1NTM2MTg3M2UrMjksMSwxNTI0NTA1MzA1OTQ4OjA6MTUyNDUwNDcwNTY5MTowOjA6MDowOjA6IDEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAgMDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6MDowOjA6OzQ1Miw4MDIsMi4yNTU3NTIyMTQzNDMzMTVlKzMxLDA7NDM1LDc4NSw1LjkyNDcxNDQyNjk5MzQ1ZSszMCwwOzQwMCw3NTEsMS44MTQ2MTE3MTY1NTI1ODMzZSszMCwwOzQwMiw3NTIsNy42NTgwMTE1NjA0NDI2NTdlKzMwLDEsOC8tMS8tMS8tMSAyIDE1MjQ1MDQ3MDkxOTAgMDszNzUsNzI1LDMuNjA2MjEwMTQ1OTMxNDgxZSszMCw1LDQyLjQyMDAxODkwMzg5Mjk5IDAgNTk3IDA7MzMwLDY4MCwxLjYwMTM5OTIwNDU3MzkxN2UrMzAsMDszMzYsNjg2LDguNDQwODA5NjQwODUyODg1ZSszMCwwOzMyMSw2NzEsNC40NTU5OTEyNzk5ODA0NzFlKzMxLDA7MzA5LDY1OSwyLjUwMzUyNzYzMTkyMjM3NDdlKzMyLDA7MzAzLDY1MywxLjUxOTM1OTcyODcxMjkxMThlKzMzLDA7Mjc4LDYyOSw0LjE4MjYxNTIxOTMwNjA1MWUrMzIsMDsyNjksNjIwLDMuMTUyMTM4ODEwMDQ0OTQzNmUrMzMsMDt8MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDAwMDAwMTEwMDAwMTExMTExMTEwMDExMTExMTAwMDAwMDExMDAxMTExMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDExMTExMTExMTExMTExMTExMTAwMDAwMDAwMDAwMDAwMTEwMDAwMDAwMDAwMDAwMDAwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTEwMDAwMDAwMDAwMDAxMTExMTExMTExMTExMTExMTAxMDEwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMTAwMDAwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDAwMTAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDAxMTExMTExMTExMTExMTExMTExMTAwMTEwMDAwMTAxMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTExMTExMTExMTExMTExMTExMTEwMDEwMTExMTExMTExMTExMDAxMTExMTAxMTExMTExMDEwMTAxMDAwMDAwMDAwMDAwMDAwMDAwMDAwfDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTAwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTEwMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMDAwMDAwMDAwMDAwMDExMDExMTExMTExMTExMTAxMTExMTExMTExMTExMTAwMDExMTExMDAwMDAwMDAwMTAwMDAwMDAxMTAwMDAwMTEwMDAwMDAwMTAwfDksMTAyMCw2MzAsNDMuOSwyOw%3D%3D%21END%21

Arcane Sugar isn't normally assignable as permanent upgrade

Spotted in Cookie Clicker v2.016 beta, with Cookie Bot v2.016 beta
In this version, research upgrades cannot be selected for permanent upgrade slots anymore.
Cookie Clicker's v2.016 live version also has this behavior.
This means buying Arcane Sugar to be saved into such a slot (as stated in the FAQ) is probably no longer meaningful.
Attached is a save file in which Arcane Sugar has been bought for your convenience.
AutomatedPeterRedBakery.txt

Cookie Monster purchase integration non-functional

When using the bot and enabling the latest version of the Cookie Moster addon. It will only purchase cursors with the money it gains and nothing else, even when another building has a clearly marked better cost-effectiveness.

You can double-check to make sure this really the issue, but in my limited testing that seems to be the case.

Add more detail to seasons acheivement

Status only notes that the bot is waiting for all achievements for Christmas (for example). It's not clear what exactly it's waiting for.

Potentially, if hover on version number showed progress as is, then maybe a more detailed status could be shown when the version number is clicked.

Tampermonkey Script

If you are interested, I have made a Tampermonkey script so it is automatically loaded when you open the cookie clicker page.
There are warnings when viewing in Tampermonkey but it loads fine.

// ==UserScript==
// @name        Cookie Bot
// @namespace   https://github.com/prinzstani/CookieBot
// @include     http://orteil.dashnet.org/cookieclicker/
// @version     2.01
// @author      prinzstani
// @grant       none
// ==/UserScript==
    
var code = "(" + (function() {
    var checkReady = setInterval(function() {
        if (typeof Game.ready !== 'undefined' && Game.ready) {
            Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlayBeta.js');//Beta
            //Game.LoadMod('https://prinzstani.github.io/CookieBot/cookieAutoPlay.js');//Release
            clearInterval(checkReady);
        }
    }, 1000);
}).toString() + ")()";

window.eval(code);

Improve Lucky Payout strategy

The bot behavior becomes annoying when it try to get lucky payout,
because it has poor strategy to match prestige level ending to 777777.
No interval calculation, no selling buildings to slower CpS.
It loops so many time, so please remove that part,
or improve the strategy to slow down CpS to match prestige level ending in a single run,
or at least give a way to toggle the strategy.

Night-mode switch doesn't work while grinding for 100 tredec

When I toggle the "handling of night mode" switch to "ON", the bot doesn't "prepare for night mode" as it did before the grind of baking 100 tredecillion cookies.
Bot version: 2.016 beta
Game version: 2.016 beta
The bot is also trying to get garden unlocks (currently Fern Tea) and planning to "still 18 days until next hard ascend" if those would affect the bot's strategy.
Here's my current save file in case it would be helpful: AutomatedPeterRedBakery-NightModeInGrind.txt

Krumblor uses wrong aura

Hi,

I've noticed that krumblor always uses "Breath of milk" but once unlocked "Radiant appetite" would be more efficient.

Suggestion - manual night mode

I think that there should be a button or something to activate the night mode earlier (even a console function or setting a variable can do the trick).

This comes in handy if i have to turn off my PC before 23h, but still want to get all the CPS benefits of the night mode (like switching the golden switch and temple¸ spirits).

If there is already an option like this (and i just didn't find it), i'm sorry for bothering you.

#Massive update to Cookie clicker a update to cookie bot may be required.

As previously mentioned cookie clicker has gone under a big update involving a new garden mini game for farms. With achievements as well. In addition to this there is also numerous new achievements that you may or may not already have prepared for. I'd like to know if you have any plans to update your auto play through bot or wait till further updates.

P.S
I appreciate what you have done for the CC community and I think the bot is a great concept. Keep up the good work 💯 👍

Thoughts on the bot

This is more of a insight then a issue but I've been thinking about the bot. I feel that due to the additional bake xx cookies in one ascension. I think getting all shadow achievements and cheating in sugar lumps after getting the bake 1 duodecillion cookies in 1 ascension and have at least 350 of every building achievement is a better option. My reasoning behind this is at this point everything is a big grind and even more so if you are aiming for 1 quindecillion cookies baked in one ascension which is currently impossible with legit play. So you would need all the sugar lumps you could get at that point to boost CPS. Unfortunately, I understand this would require a lot of time and coding and you may not have the time and along with the garden update it's a big ask for you.

Running Cookie Bot on new save

Cookie Bot shows that it's first goal on a new save from scratch is related to the last stage of Grandmapocalypse. There are numerous goals to attain before that and I am curious why it doesn't go through and actually list these goals as it plays through. This is not a bug, but I find it odd that a bot on a new save can't list beginning goals or achievements as it plays. Care to elaborate?

Bot doesn't click cookie on fresh save

Is it just trying to get True Neverclick, or is this a bug? The FAQ implies that it would be going for normal Neverclick, not True Neverclick. "Step 1: keep quiet until hardcore and neverclick, then buy everything until all grandma achievements are there, maybe get the first permanent slot with maximum cursors: this takes about 6 days."

Underperformance to the max

It attempts to ascend before even 1 heavenly chip, therefore killing all progress towards the first PRODUCTIVE ascension. And it doesn't take into account what's actually going to pay itself off fastest, resulting in buying grandmas, when it's going to be faster and more efficient to buy a farm. So there. Food for thought. Because if a human can outpace a bot without full cheating, then something is wrong.

Users to be able to choose what achievements the bot should aim for

Would be nice if:

  • users could select what achievements the bot should aim for
    and/or
  • disable the bot from pursuing certain achievements

For example I am running into this situation where the bot is doing the following:

  • get every halloween themed cookies
  • Waiting all results in halloween
  • popping wrinklers for droppings and/or achievements
  • trying to get plant Elderwort on sector middle

Unfortunately, the only one of of these that the bot is really pursuing is the last one, because it appeased the grandmatriarchs and when I revoke the Elder Covenant it immediately repurchases the "appease grandmatriarchs" switch.

Earlier something similar happened - after the bot acheived the "reach a covenant with the grandmatriarchs", it was pursuing the "get every halloween themed cookies" achievement, however this was my first playthrough a few days ago. I had to disable the bot, ascend, select the season switcher then reenable the bot so it could actually pursue this task, but even then, it went for Christmas, then Love, then Easter cookies before even attempting Halloween.

To prevent the bot from getting stuck or to be able to direct it at specific achievements, it'd be nice if there was a way to set it to pursue or prevent it from pursuing a specific one.

CookieBot is outdated, please update for v2.018!

On the live version, Cookie Clicker has updated to 2.018. CookieBot is therefore out of date until you update this. I use this all the time 😭 so I guess I'll have to stop until you update this. Also no up-to-date bots exist (they added the new version to the beta yesterday and to the live 10 minutes ago as of the time I wrote this)

Buying buildings after ascend

I have noticed that the bot is awfully slow to buy buildings when it is started some time after the ascend. handleBuildings tries to byu much in the first 10 minutes after ascend, but later it drops to buying 1 at a time, which takes looong time when you want to come up to 500 or more.
We could buy 100 items at a time whenever it is possible to buy 100 of the most expensive building. In a similar way, we can also buy 10 items at a time whenever it is possible to buy 10 of the most expensive buildings.

Uncaught TypeError: Cannot read property

Uncaught TypeError: Cannot read property 'Exponential interest rates' of undefined
at Object.AutoPlay.bestBuy (cookieAutoPlayBeta.js:388)
at AutoPlay.run (cookieAutoPlayBeta.js:44)

it repeat with any upgrade

Seems not working

The version information doesn't show. And also failed to auto click the golden cookies. So I think something is wrong.

Chrome console log:

Loaded the mod https://prinzstani.github.io/CookieBot/cookieAutoPlay.js, cookieAutoPlay.
cookieAutoPlay.js:3 ### COOKIE clicker STABLE - linking to latest release
cookieAutoPlay.js:5 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
(anonymous) @ cookieAutoPlay.js:5
cookieAutoPlay.js:6 Failed to load resource: net::ERR_CONNECTION_CLOSED
(anonymous) @ cookieAutoPlay.js:6
cookieAutoPlay.js:6 Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://api.github.com/repos/prinzstani/CookieBot/releases/latest'.
    at https://prinzstani.github.io/CookieBot/cookieAutoPlay.js:6:5

Bot gets stuck attempting to get 'ascending with exactly 1 trillion cookies' achievement

I've attempted this a few times, and the bot appears to be getting stuck in the 10k to 30k mark after reaching 1 trillion. It keeps fluctuating within those figures, and no progress is made any further. It buys 22 cursors, sells 11 then sells the remaining 10. I've tried ascending a few times to reset it, but it just keeps getting stuck in that specific spot for some reason. Is this supposed to happen?
I run it with cookie monster, if that helps, and I'll add my save file so you can take a look if needed.

Mi4wMTZ8fDE1NDE0MjEyMjU4NTA7MTQ5ODM3NTE3MjM0MzsxNTQxNDI0NDMzMTcyO0F1dG9tYXRlZCBKYWRlO3Jud2tzfDExMTExMTAxMDEwMTExMTAwMTAxfDEwMDAwMDAwMjc2MzguMzc0NjsxMjE4NDI0NzA0MzQwLjc5MjI7MDsxNjMxMTswOzc4MDU7NDsxMjs1LjQ5NDcxNTU3NjkzNjM0NGUrNDk7MDswOzA7MDstMTsxMjU7MDswOzA7MDswOzA7MDs7MDswOzM4MDE3MzQxMDYyNTQ7Mjc5NjgwOTU4NTcxMzsxMDA0OTI0NTIwNTQxOzA7MDs0OTc7NDk0OzQ5MzsyMjY7NzI7MDswOzA7MDs1MDswOzA7Mjk7MTM3MzsxNTQxMzQ5NzI2MjE0OzE1NDExNjAwMjM5OTM7MTs7fDAsMjgzOTQsMjU0OTgzNSwxNSwsMDswLDc2LDY2NDQ3MzQ5NDcsMTAsLDA7M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DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDExMTExMTEwfDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMDAwMDAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAwMTExMTExMTExMTExMTEwMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxMXw%3D%21END%21

Options for CookieBot

Add Options to switch on and off the night mode, and maybe the cheating, and the clicking speed.

Gardening Broken

with LvL 10 garden 2 seeds types all the bot does it try to place seeds fails wastes cookies.

The bot doesn't buy javascript consoles

Game version: 2.022
Bot version: 2.022

After running the bot on a freshly wiped save and getting past the initial hurdle (using much golden cookie and sugar lump cheating), I noticed it wasn't building any javascript consoles, and only bought the other buildings. All the javascript consoles that has been built on my save have been done manually by myself. Is there a reason behind this, or is it a bug?

I've also noticed a bug where it doesn't buy buildings when going for "True neverclick", severly halting the progress in the beginning. You can still get true neverclick even if you buy buildings. Is there a reason behind this?

I love this program, and the amazing work you have done toward exploiting the game in an ingenious way!

Improve late game for garden

Currently, the garden is used to produce sugar lumps by sacrificing the garden whenever possible. However, the garden could also be used to boost cps - for example when we have enough sugar lumps.
This needs to be implemented.
In this context, also an appropriate handling at night is needed (currently the garden is frozen at night).

Chocolate egg question

It could be that I'm impatient, but it seems like the bot doesn't want to buy the chocolate egg upgrade. The wrinklers are left alone. The garden is being played as normal and if enough cookies are in the bank, buildings will be bought, but the Chocolate Egg upgrade and elder pact is not bought.

So my question is: Is the bot waiting or is it stuck?

Attaching the save file.

CC_Dab_Bot.txt

Ascend for lucky payout

The bot keep ascending and gives me this message: "Ascend for lucky payout"
I'm not sure what is the goal as there is no such achievements, so it keeps ascending every 2 minutes.

Black cat's paw

The bot seems to get stuck to a loop when it tries to get this achievment where it ascends in born again mode, clicks one golden cookie and repeats. I'm not sure if this is intended but it seems inefficient because the spawning percentage is really low compared to normal ascensions. it shows a debug message after ascending which says, "born again did not work, trying again." Again i am not sure if this is inteded but it seems wrong.

Uncaught TypeError: Cannot read property 'won' of undefined

Hello,

When starting the bot in chromium on a raspberry pi I started getting some errors after you beautified the code. Most of them have been resolved already, but the one below still exists for me today.

The bot still appears to be running but the ''(with autoplay v.2.016)'' doesn't appear in the bottom and I can't view the current status of the bot.

Uncaught TypeError: Cannot read property 'won' of undefined
at Object.AutoPlay.findNextAchievement (:1113:65)
at :1452:10

Should you need additional information please let me know.

Love the bot btw. Have been running it for over 4 months now without a problem. Keep up the good work.

Skokunfloek

Bot not ascending after major goal achieved

For some reason, the bot isn't ascending once it achieves its major goal, on either the normal or Beta versions of the bot.

I saw this, and read up on what it does once it prepares to ascend - namely, pop all Wrinklers, sell all buildings, buy the Chocolate Cookie, and then ascend.

So I went into the Stats menu and (manually) selected to pop all the wrinklers, but before I could do the rest of the steps, the bot immediately completed them.

This leads me to believe that something related to the wrinklers is making the bot "stuck" in terms of ascending.

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.