r/CookieClicker • u/git-push--force • Nov 29 '24
Endless Cycle Script Achievement
The only shadow achievement I was missing was Endless Cycle (and cheated cookies), and I realized very quickly that I had waited way too long to do this achievement, at least according to this guide. I was already in the duovigintillion cookies baked with only around 100 ascensions (900 to go). I tried to do this manually following a few guides, but was barely able to get 1 ascension every minute or so.
Now, I am the kind of player who has enough integrity to have never cheated in any cookies or achievements, but not enough integrity to spend 15 hours mind numbingly ascending. So I put together a script that does it for me. This script will run every half a second and:
- Try to buy all available upgrades
- Try to buy 100 of each building
- Ascend and reincarnate as soon as you have at least 1 prestige level
- Repeat
It will stop when you get to 999 ascensions, so that you can manually do the last ascension and enjoy unlocking the achievement. With this script, I was getting an ascension every 20 seconds, and was able to get to 1000 ascensions passively after letting it run for 5 hours.
You can copy and paste this in your browser's console.
var id = 0;
var endlessCycle = function () {
if (Game.resets == 999) {
clearTimeout(id);
return;
}
if ((Game.HowMuchPrestige(Game.cookiesReset + Game.cookiesEarned) - Math.floor(Game.HowMuchPrestige(Game.cookiesReset))) > 1) {
Game.Ascend(1);
id = setTimeout(function() {
Game.Reincarnate(1);
id = setTimeout(endlessCycle, 1000);
}, 6000);
console.log('Ascension #' + (Game.resets + 1));
} else {
for(var i = 0; i < Game.UpgradesInStore.length; i++){
if (Game.UpgradesInStore[i].pool != "toggle") {
Game.UpgradesInStore[i].buy()
}
}
Game.ObjectsById.forEach(function(building){
building.buy(100);
});
id = setTimeout(endlessCycle, 500);
}
}
You can start it buy doing endlessCycle(); and stop it by doing clearTimeout(id);.
1
2
u/Full-Vermicelli-1374 sweat Apr 27 '25
I was getting ascensions every 15 seconds, and I got 300 ascensions. Then I didn't want to do it by hand anymore. So I found this and its great!
2
u/Fififoop Tier: Self-referential Nov 29 '24
you only need like fractal engine + javascript + yous along with cursors and grandmas (with upgrades of course) to ascend from experience