Cookie Clicker

Cookie Clicker

44 ratings
Offline cookies
By bvb
You keep producing cookies even while the game is closed.
2
   
Award
Favorite
Favorited
Unfavorite
Why?
If you don't want to leave your game running all night to bake those precious cookies.
No mods, no save file tricks, just guide how to buy "Prefect idling" upgrade and keep it forever.

How?
Close the game.

Browse to local files of your installed game and open file:
...\SteamLibrary\steamapps\common\Cookie Clicker\resources\app\src\main.js

Find section (9090 line)
Game.RebuildUpgrades=function()//recalculate the upgrades you can buy

And just a little lower this piece of code:
if (!me.bought && me.pool!='debug' && me.pool!='prestige' && me.pool!='prestigeDecor' && (Game.ascensionMode!=1 || (!me.lasting && me.tier!='fortune'))) { if (me.unlocked) list.push(me); }

delete "debug" condition and move it to unlock condition, so this code will look like this:
if (!me.bought && me.pool!='prestige' && me.pool!='prestigeDecor' && (Game.ascensionMode!=1 || (!me.lasting && me.tier!='fortune'))) { if (me.unlocked || me.pool=='debug') list.push(me); }

Start the game, buy "Perfect idling" upgrade and save.
Close the game and revert your changes.
That's it.
21 Comments
z 17 Jan, 2023 @ 12:11am 
I have just tried this with the latest version of CC - 2.048. Replacing the old code with the new code causes all the debug options to appear in the store, including Perfect Idling. I bought Perfect Idling and then reverted the code in main.js so that my store was not filled with the other debug upgrades. When I restarted CC, all the other upgrades were no longer in my store. But in the Stats tab, directly at the top of the Upgrades section, there is now a Debug subsection containing the single upgrade Perfect Idling.

Note that as of version 2.048, the code in question no longer starts at line 9090, but instead starts at line 9340.
Chris P Bacon 9 Jun, 2022 @ 11:45pm 
anyone tried this after update? because it doesnt work anymore...
Traumtaenzerin 16 Sep, 2021 @ 5:05am 
It's great, but after the first ascension it seems like it's not working anymore?
babek 11 Sep, 2021 @ 11:39am 
i'd leave my pc on to have my cookies bake themselves. only difference between using perfect idling and doing that is the number i'll see on my electricity bill.
huge shoutout to anyone who calls this cheating
procy 9 Sep, 2021 @ 5:34pm 
this is already a feature you unlock in game as you progress...
brodudeguy10 9 Sep, 2021 @ 4:28pm 
but that's cheating!


You can unlock this withOUT cheating.
Pepek 9 Sep, 2021 @ 6:46am 
Ok nevermind
I made little mistake with != and ==
Pepek 9 Sep, 2021 @ 1:13am 
Hello. Sorry for asking. I dont see Perfect idling upgrade. :/ I have changed the code. I see more upgrades. But I don't see Switch, Tech and more upgrades. But don't debug
Not_So_Bad_Andy 7 Sep, 2021 @ 3:11pm 
Thank you. Love having this game on Steam but didn't really feel like keeping the game open all the time. Worked perfectly.
Inspirer 7 Sep, 2021 @ 11:35am 
Guys, you do realize that offline production is unlockable in-game without any modifications, right? Just keep playing, that's the whole point of the game - to unlock stuff.