GithubHelp home page GithubHelp logo

frozencookies's Introduction

FrozenCookies

An automated Cookie Clicker tool.

Discord

For devolopers / code intended behavior purposes only. https://discord.gg/Cpw8csuypT

How to use

Steam Install

  1. Download https://icehawk78.github.io/FrozenCookies/Steam/SteamMod.zip and extract it to your mods/local folder.
  2. Load up Cookie Clicker via Steam.

Bookmarklet install

  1. Paste the contents (not the url) of https://icehawk78.github.io/FrozenCookies/fc_bookmarklet_loader.js into a bookmark.
  2. Load up Cookie Clicker.
  3. Load the recently created bookmark.

Userscript install

  1. If you don't already have it, install the required browser add-on. Tampermonkey (Chrome) or Greasemonkey (Firefox)
  2. Go to https://icehawk78.github.io/FrozenCookies/fc_userscript_loader.user.js
  3. Click the 'install' button in the upper right corner.
  4. Load up Cookie Clicker.

What can Frozen Cookies do?

  • Long number shortening. (convert 1,234,567,890 to 1.235 billion)
  • Calculates the most efficient* next purchase.
  • Optionally, will automatically buy that most efficient* next purchase.
  • Calculates all sorts of stuff having to do with Golden Cookies.
  • Optionally, will automatically click Golden Cookies when they appear.
  • Calculates all sorts of stuff having to do with Heavenly Chips.
  • Displays a timer for the following items: Next Golden Cookie, Time left in Frenzy, Time until next Heavenly Chip.
  • Displays a second timer for the time to completion of Golden Cookie Bank, Next Purchase, and the end of a Chain of Purchases.
  • Calculates far more building/upgrade efficiency information that any person ever wants to know, and displays it in a not extremely user friendly manner.
  • Automatically updates to the most recent version upon load. Regardless of if that version is better or not.
  • Might not eat all of your cookies.

*Note: Not guaranteed to actually be the most efficient purchase. Just the most efficient that I currently know of.

What's new?

2020 Nov 2

  • Version 1.10.0
  • Add version check
  • Removed unused variables
  • Removed unused function
  • Update CookieClicker 2.031
  • New Building upgrades
  • New Grandma upgrades
  • New Synergie upgrades

2020 Oct 26

  • Version 1.9.0
  • Fix autoAscend number entry. (Issue #49)
  • Fix recommendation list to show accurate efficiency percentages even when AutoBuy excludes the purchase of some buildings (like when they've hit their max). (Issue #47)
  • Simplified Auto-Godzamok: Now just on or off. When on, it will wait until Dragonflight or Click Frenzy and sell all the cursors and farms to get the Devastation buff. Then, if AutoBuy is turned on, it will immediately buy the buildings back (stopping at the max for those buildings if a max has been set).
  • Fix autoharvest of sugar lump. (Issue #18)
  • Show correct buff value on Devastation tooltip, even if additional buildings have been sold after the buff has started. (Issue #46)
  • Fix Auto Bulkbuy to only actually kick in after a reincarnation instead of all the time.
  • Other minor fixes

2020 Sept 28

  • Version 1.8.0
  • Move preferences to their own file
  • Rearange preferences into sections
  • Reword preferences for consistency
  • Fix autoCast() to correctly consider CPS
  • Update autoCast SE to javascript console
  • Display next purchase and chain name in timers

2020 Sept 15

  • Add function to make sure game is in buymode when autobuying
  • Fixed achievement not showing.

2018 Oct 27

  • Added Shimmering veil blacklists
  • Updated SE auto cast strategy to use new fractal engine instead of chancemaker.
  • Added farms to godzamok sold buildings as they contribute barely synergy. Sells all farms except 1 for the garden. Added a new option to limit farms just like cursors
  • Added Fractal engine related upgrade values

2018 Aug 6

  • New "Harvest Bank" option to select a higher Bank than for Frenzy/Clicking Frenzy if you want to get the maximum return from harvesting Bakeberries, Chocoroots, White Chocoroots, Queenbeets or Duketaters
  • Scenario selection for harvesting

2018 Aug 4

  • Automatically blacklists Sugar Frenzy and Chocolate Egg

2018 Mar 2:

  • Updated to work in patch 2.0045
  • More auto-Godzamok behavior options
  • Auto Spell Casting (Conj. Baked Goods, Force the Hand of Fate, Spontaneous Edifice, and Haggler's Charm [the fastest to spam for spell achievements])
  • Wizard Tower purchase limit toggle to stay at 100 mana
  • Auto Sugar Lump Harvesting
  • Cursor Autobuy limit option to keep Godzamok efficient at very high cursor counts
  • Auto bulk purchase on reincarnation (option to automatically buy in 10s or 100s after reincarnation to speed up early run

2017 Apr 14:

  • New option: FPS modifier

2017 Apr 12:

  • Wrinklers can now be popped efficiently or instantly

2017 Mar 31:

  • New option: Auto-ascension
  • Scientific notation changed a fair bit

2016 Dec 1:

  • New option: Default Season

2016 Nov 19:

  • Update discount calc with new discounts
  • Fix problem with lucky bank targeting during wrath
  • Add Earth Shatterer option to Chocolate Egg calc and display
  • Fix 'HC After Reset' stat
  • Fix: Auto-GS waited for Frenzy to end but incurred 7x cost anyway
  • Removed 'No GS' blacklists
  • Added label to Auto-GS option
  • Auto-GS no longer cheats

2016 Nov 13:

  • Fixed auto-buying of Santa upgrades
  • Fixed Lucky calc
  • Add support for new GC buffs
  • Internal Information: delta-CPS for Bank targets now compares to current bank
  • Golden Switch excluded from auto-buy (no blacklist necessary)

2016 Aug 11:

  • Added Golden Switch blacklists

2016 Jul 24:

  • Updated for Cookie Clicker 2.002

2014 May 27:

  • Time to Recoup Chocolate stat added
  • Chocolate Egg benefits being included in the HC stats section
  • Wrath Stage information added to the Internal Information section

2014 May 23:

  • Google Chrome updated, blocks invalid MIME-type scripts from running, forcing all users to switch to the gh-pages branch hosted on http://icehaw78.github.io/FrozenCookies; No local code changes were needed for this

2014 May 20:

  • Wrinklers will autopop if turned on, in Easter or Halloween, and don't have all seasonal cookies for that season unlocked Will autobuy and value Faberge Egg, Golden Goose Egg, and Wrinklerspawn
  • Century Egg doesn't cause the browser to freeze (note: It's still broken in beta; won't be fixed)
  • "Manual Seasons" blacklist removed (this is now integrated with the core autobuy - if you're in a season and don't have all related cookies, autobuy won't buy another season upgrade)
  • Wrinkler Saving functionality removed entirely, due to that working with the core game now
  • "No Buildings" blacklist added (for use with all of your Chocolate Egg hoarding needs - will maintain a Pledge if deemed valuable, as well as maintaining seasons)
  • Resetting while FC is loaded will now pop all wrinklers, sell all buildings, and finally buy the Chocolate Egg (if available) before actually resetting, without any manual interaction needed.
  • Console logging cleaned up quite a bit (now condenses HC reports by either 'In Frenzy' or 'Out of Frenzy', rather than spamming 100x "You gained 1 HC!" when not in a frenzy)
  • Added more granular Frenzy timing info in the Golden Cookie Info section
  • Keyboard shortcuts now include 'e' to pop up your save export string in a handy copyable window.
  • "Pastemode" added, to reverse the efficiency calculations

2014 May 18:

  • Updated to work with Easter beta (Major issue of Century Egg causing an infinite loop will freeze FC)

2014 Apr 28:

  • Found and fixed a major bug that was valuing autoclicking for wrinklers, which reverted the general consensus of "Never leave One Mind" for high-automation players
  • Started a cross-community strategy optimization Holy War

2014 Apr 8:

  • Rewrite cache recalculations with the design from @Bryanarby
  • Autopop wrinklers is season-aware and cost-efficiency-aware
  • Prevent negative-efficiency upgrades from being prioritized/existing
  • Provided number-shortening-code to Orteil for use in core CC

2014 Mar 18:

  • Chained Upgrades accurately simulate all prerequisites' benefits as well as costs
  • Wrinkler valuation updated to prevent exiting of One Mind if it shouldn't
  • Autobuy won't switch seasons during the first hour of that season (to avoid constant back and forth before unlocking anything in a given season).
  • A beta Wrinkler-saver (that is off by default) which will simply hook into the game's built in Save function, will store your wrinklers upon save, and when FC is first loaded, will restore them entirely (including amount sucked, life, and even position around the cookie). Use at your own risk.
  • A new "smart tracking" for the graphing stats, which introduces a delay between tracking times, and will increase the reporting during times of increased purchasing, and will decrease the reporting during times of saving. This is currently the recommended tracking method, if you plan on using the graphs. (Thanks to /u/bryanarby for the initial idea of a modulated tracking function.)
  • Even fewer bugs than before.
  • Possibly more bugs, as well?

2014 Mar 12:

  • Graphs!
  • Actually working with the most recent update
  • An attempt to model Reindeer/Wrinklers for efficiency calculation purposes (not quite working yet)
  • Maybe other stuff that I forgot?

2013 Dec 31:

  • Reindeer Autoclicker [technically not new, since someone else added this earlier]
  • Automatic Santa stage upgrading
  • Fixed a bug in the chained upgrade cost code that was calculating the cumulative cost of buildings very very wrong

2013 Nov 15:

  • Auto Blacklist Disabler - this will allow you to set a blacklist, but once its goal is reached, it will return to no blacklist. (This allows you to, among other things, turn on Grandmapocalypse Mode to acquire all halloween cookies, without having to monitor whether they're all gotten or not, and then it returns to normal buy all.) Without this turned on, blacklists will work how they previously did.
  • Grandmapocalypse Mode Blacklist - this will now stop you at Wrath:1, rather than Wrath:3, as this seems likely to be far more effective for wrinklers. After you've bought the Elder Pact, of course, you can't go back, but for those who want to run in the earlier mode, this will allow you to do so.
  • Beautified numbers now round properly. This includes a bug that surfaced last week, where thousands were displaying as millions, as well as the much older bug where 999,999,999 would display as 1000 million, rather than 1 billion.
  • Golden cookie double-clicking bugs and buying Elder Covenant bugs - these should not be happening any more; if they are, please let me know.

2013 Oct 28:

  • Chain timer no longer resets after the purchase of each item in the chain (the total value of the chain is the cost of every prerequisite, the amount completed of the timer is the cost of all purchased prereqs + cookies on hand).
  • You can now change how numbers are shortened, with many different formatting options to choose from.
  • The giant efficiency table now marks Chained upgrades as such with a (C) in the list.
  • Clicking CPS is now included in any calculations involving time delays when autoclick is turned on.
  • Click Frenzy Autoclick (should) override the base autoclick speed if both are turned on and set.
  • Frenzy Power now shown when active (x7, x666, or x0.5)
  • Efficiency Table should now be slightly less terribly formatted (though likely not by much).
  • Numerous bugs from the previous versions should be fixed (I forget what all they are, though.)

2013 Oct 23:

  • Improved code stability, added large cookie autoclicker, clicking frenzy autoclicker, and blacklists for Speedrun/Hardcore achievements

2013 Oct 22:

  • Fixed multiple problems with the previous changes

2013 Oct 21:

  • Updated GC valuation code

2013 Oct 17:

  • Timers are much smoother and not on the FC page
  • Many stability improvements
  • Newer GC valuation code
  • Moved the hosting URL to one that won't cause script-type warnings when you load it. (http://icehawk78.github.io/FrozenCookies)

2013 Oct 03:

  • Finally getting around to updating this file.
  • Lots of other changes have been added in the meantime.

2013 Sep 23:

  • Added Chained Upgrade purchases

Upcoming features!

  • The ability to switch between multiple different number-shortening styles.
  • Add less terrible UI, including more detailed tooltips, and possible color/icon markers indicating relative efficiency of purchases.
  • Add the ability to set custom Golden Click ratio and Cookie Click ratio for more accurate valuation of Golden Cookie upgrades and Mouse upgrades.
  • Add a toggle to make timers utilise Effective CPS rather than Current CPS for "Time to Completion"
  • Other stuff? (If you're a visitor and have other ideas to be added, go here to let me know: https://github.com/Lordshinjo/FrozenCookies/issues/new )

Efficiency? What's that?

Frozen Cookies uses a custom tweaked Efficiency calculation to determine what the optimal purchase at the current point in time is. The current raw efficiency formula is the following:

           cost         cost
1.15 * ----------- + ---------
       current cps   delta cps

This originated from the assertion that, for any purchases A and B, purchase A is superior if and only if the following inequality is true:

a.cost     b.cost       b.cost     a.cost
------ + -----------  < ------ + -----------
 CPS     a.CPS + CPS     CPS     b.CPS + CPS

Initially, this was just simplified down to (cost/cps + cost/Δ cps), but thanks to a number of repeated simulations by Vandalite, it was found that adding a modifier to the (cost/cps) section very slightly increased the optimal build speed, as can be seen here:

Cookie Monster uses the more naïve (cost/Δ CPS) formula, which is far less efficient than either of the Frozen Cookie efficiency algorithms.

For Golden Cookies, it was determined that using the naïve cost/Δ cps to determine when it is optimal to begin building a bank for Golden Cookies is superior to our primary efficiency algorithm, since you actually gain effective CPS increases continually while building bank (from increased Lucky payouts).

All of these calculations are subject to change if it is revealed that a different algorithm will build (and maintain) a CPS base faster than the current one. Additionally, there is uncompleted code that will simplify these numbers to a simple percentage-based system for easier user reference.

Information about Frozen Cookies' Data

This is an explanation of each piece of data contained in the Frozen Cookie menu screen.

Autobuy Information

  • Next Purchase: This is what FC's formulas have determined is the optimal next purchase, and if autobuy is turned on, is what FC will buy next.
  • Building Chain to: This is only visible if FC has calculated that the best purchase is an upgrade that has prerequisites that are not yet met. In that case, this is that upgrade (whereas the "Next Purchase" will be the recommended prerequisite to purchase).
  • Time til completion: This is how long, at your current CPS, it will take to purchase the Next Purchase. This includes any calculated needed GC Bank.
  • Time til Chain completion: Only visible if building to a chain, this is how long, at your current CPS, it will take to purchase all prerequisites and the target upgrade.
  • Cost: The cost of the Next Purchase.
  • Golden Cookie Bank: The amount of cookies that FC has calculated you should keep on hand as a bank to maximise the value from Golden Cookies.
  • Base Δ CPS: The total amount of displayed CPS that will increase from the Next Purchase. (This includes all bonuses, regardless of what items they're on - it's just the raw amount that your CPS will increase above the Big Cookie.)
  • Full Δ CPS: The amount of estimated effective CPS that will increase from the Next Purchase. This is the Base Δ CPS + the amount of change in the estimated CPS value of Golden Cookies.
  • Purchase Efficiency: This is the efficiency calculation for the next purchase. If building to a chain, this may temporarily appear much worse than other options. If the recommendation engine formula changes, this number will too.
  • Chain Efficiency: Only visible if building to a chain. This is the efficiency calculation for the entire chain. (This currently does not take into account CPS increases from the purchase of prerequisites, and thus is actually under-estimating how efficient the full chain will be, to simplify calculations. This may be changed at a later date.)
  • Golden Cookie Efficiency: This the efficiency calculation of holding on to a bank of 10x Max Golden Cookie Value (and thus maximize the amount of Cookies earned across all Golden Cookie clicks).

Golden Cookie Information

  • Current Average Cookie Value: This is the average value of Golden Cookies with your current CPS, Cookie Bank, and upgrades. This is the idealised equivalent to clicking 1000 Golden Cookies with your current CPS/Bank/Upgrades, and then dividing the total amount of Cookies gained by 1000. If your GC Average is currently maxed out, then this will be marked as (Max).
  • Max Lucky Cookie Value: This is the absolute maximum value that you can get from a Lucky! Golden Cookie, with the upgrades you have purchased. (Specifically, if you have Get Lucky, it's 8400 _ Current CPS; Otherwise, it's 1200 _ Current CPS).
  • Cookie Bank Required for Max Lucky: This is the amount of cookies needed to maximise a Lucky! Golden Cookie. It's just the previous value * 10.
  • Estimated Cookie CPS: This is a rough estimate of how much CPS you'd effectively add by clicking every Golden Cookie. Currently, with the Autoclick GC turned off, this will return 0.
  • Golden Cookie Clicks: The number of times you've clicked a Golden Cookie.
  • Missed Golden Cookie Clicks: The number of times you've not clicked a Golden Cookie before it faded from view.
  • Last Golden Cookie Effect: The internal name of the last Golden Cookie effect.
  • Total Recorded Frenzy Time: The total amount of time (while FC was loaded) that has been spent in a Frenzy.
  • Total Recorded Non-Frenzy Time: The total amount of time (while FC was loaded) that has been spent not in a Frenzy.

Heavenly Chips Information

  • HC Now: The number of HC currently owned.
  • HC After Reset: The number of HC you'll have if you reset right now.
  • Cookies to next HC: The number of cookies needed to gain one more HC after reset.
  • Estimated time to next HC: This is how long, at your current CPS, it will take to make enough cookies to gain one more HC after reset.
  • Time since last HC: This is how long it has been since the last time you gained an HC.
  • Time to get last HC: This is how long it actually took (including lucky bonuses, frenzy time, etc) to gain the last HC.
  • Average HC Gain/hr: When the last HC was gained, this was the total number of HC that have been gained (ever) since the last reset, divided by the total amount of play time. Used in conjunction with the next value, this provides a (very) rough estimate of when you should begin to think about resetting. (When Average HC/hr is constantly less than Prev HC/hr.)
  • Previous Average HC Gain/hr: This is the same calculation as the previous, but for the HC prior to the last one. (Yes, it's confusing. Sorry.)

Other Information

  • Base CPS: This is how many cookies you create every second, when a Frenzy is not active. (Marked with (*) when this is the current CPS.)
  • Frenzy CPS: This is how many cookies you create every second, when a Frenzy is active. (Marked with (*) when this is the current CPS.)
  • Estimated Effective CPS: This is an estimate (over time) of roughly how many cookies you create every second, when including the effects of clicking Golden Cookies. This will currently be the same as the Base CPS if Autoclick GC is turned off.
  • Game Started: How long it's been since the most recent reset.

Internal Information

This is actually a table of literally every purchase that Frozen Cookies is currently considering buying.

  • Efficiency: The calculated Efficiency value of that purchase. This returns Infinity if the Δ CPS is negative. Smaller numbers are better.
  • Cost: The cost of either the individual purchase, or the entire chain, for chained upgrades.
  • Δ CPS: The full CPS change that buying this purchase would have. Includes estimated Golden Cookie CPS changes, meaning that it may be negative (especially for Elder Covenant.)

Known Issues

  • Currently will not ever buy or recommend buying any of the Grandmapocalypse-increasing buildings while the Autoclick GC is turned on. (Due to the severe lack of efficiency in Wrath Cookies compared to Golden Cookies.)
  • Currently will not ever buy or recommend buying the Sacrificial Rolling Pin. (Due to not modelling the cost of the Elder Pact as lost CPS.)
  • Currently will not buy or recommend buying chains of buildings in order to unlock an upgrade that, itself, might be the most efficient purchase even when combined with the cost of the prerequisite buildings.
  • Reports of people buying upgrades and having the cost deducted, but the purchase reverted has been noted. This is difficult to reproduce and may have already been fixed, but that is not currently guaranteed. Recommend saving before making any large upgrade purchases, just in case.
  • Possibly other things?

Contact Us!

Everyone who is contributing to this project can be found at some time or another on the Cookie Clicker IRC.

Server: irc.gamesurge.net

Channel: #ccdev or #dashnet

Special Thanks

From the Cookie Clicker IRC, thanks to the following users:

  • Bryanarby, for continuing development and update compatibility
  • Vandalite, for tons of calculations and other general help with the underlying math
  • Code14715, for excessively helpful amounts of testing
  • Eearslya, for constantly nagging me to add more non-cheat-y features
  • Saeldur, for helping make the timers suck less
  • Icehawk78, for writing this section and being a conceited ass
  • Other people who I've temporarily forgotten and will add later

frozencookies's People

Contributors

achappell avatar adavidw avatar biscuitcookies avatar briansmiley avatar chrisheib avatar darkroman avatar erik-hasse avatar flacjacket avatar geojak avatar heldchen avatar hnns88 avatar icehawk78 avatar joukevandermaas avatar jtatum avatar kevmert avatar kisslab69 avatar lordshinjo avatar marktraceur avatar memethyl avatar mezmerro avatar mrmarkfrench avatar mtarnuhal avatar pichu0102 avatar piels avatar saeldur avatar shinji257 avatar super-aardvark avatar theglander avatar valepakh avatar z16 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frozencookies's Issues

Support for Wrinklers

Currently FrozenCookies tends to kill off the new Wrinklers whenever it auto-clicks the golden cookies. A desired fix would be to have a separate option for auto-clicking the Wrinklers (up to the point that all 7 Halloween cookies are clicked) or not auto-clicking the Wrinklers at all.

Auto-reset option

We already have a heuristic described for resetting (when HC gain/hr is consistently lower each time), so why not codify it? Turn it off by default, and come up with a simple first-pass algo for determining that it's going down consistently. I'd say if it goes 10 times without reaching a new high, it's time to reset, but I could go with more research.

Add "Estimated Completion Time" using eCPS (Was: Estimation Improvements)

I believe it would be better to split the "Purchase Completion Time" under "Autobuy Information" into a "Maximum Completion Time" and an "Estimated Completion Time" with the former using the "Base CPS" value under "Other Information", whilst the latter uses the "Estimated Effective CPS" value (or something to a similar effect).

Basically, this will give you a value for when the next purchase would be completed without Golden Cookies, and another value for when the next purchase would be completed with the estimated effect of Golden Cookies on your income.

Also, if possible, can you implement a sound (that can be turned on/off) that will play when the "Clicking Frenzy" effects comes on?

Thanks for making this, it helps so much whilst I'm doing other things =)

Add option to Ignore Items

In light of the fact that certain Shadow Achievements require not buying certain Upgrades, an option to ignore certain Buildings/Upgrades would be beneficial.

Autoclick GC often clicks multiple times on the same GC

I very frequently get multiple effects from each GC click. I have seen up to 5 simultaneous effects on occasion. This makes it really easy to get full-length frenzied clicking frenzies!

I'm guessing the update rate on FC is faster than the game's update, so FC can click a few times before the game sets Game.goldenCookie.life to 0.

image

image

Optimal Purchase Search Depth is too shallow

At 198 Cursors, this doesn't prioritise buying two cursors to unlock the last Cursor upgrade. Similar behaviour occurs in earlier sections, this is just the easiest to notice.

Currently, unsure of what algorithm would be better.

Purchase efficiency

I think there's a better way of choosing the most efficient purchase.

The idea is, you want the largest CPS bonuses as early as possible so that you have them for the longest and as such make the most cookies in the time you've spent. The game is infinite.

Your formula (admitedly i only half understood it) doesn't take into account how many cookies you currently have, which i believe is a mistake. It has lead to a situation where it is reccomended that I should purchase a portal despite the fact that i can afford a Anti matter converter. To me (as i previously stated) the Anti matter converter is better, as it gives a bigger CPS bonus, therefore you want it sooner to have the bonus for longer.

I sadly (or perhaps its impossible) dont have any maths to suggest how the most effecient purchase should be chosen. I do have some logic.

Your software should come up with, for each possible purchase, Cost, CPS bonus, Time to reach the required resource, and Time till it pays for itself.

--Look at the upgrade with the largest CPS Bonus. This is 'Upgrade A'.
--If you can afford it, buy it
--If not, look at all purchases which pay for themselves in less time that it will take to reach the required resources for 'Upgrade A'.
--If there are none, wait till you can afford 'Uprade A' and purchase it.
--If there are some, from that list, repeat this process from the start.

I hope this is understandable. Thanks.

Scientific Notation - A little gripe

In school, I was always taught that when you turn a number into a scientific notation, you should only have one number in front of the decimal. Now I understand that this is really only a minor cosmetic gripe, however I would like the scientific notation option to change the number to have only one unit in front of the decimal, instead of one to three units.

I imagine one way to go about this would be to cut the number down to whole numbers, then have the program count how many numbers there are. The program should then take this and apply it as the power, and then take the first four or five numbers and put a decimal place behind the first number. Finally, the program should put the X.XXX next to x10 ^YYY with YYY being the amount of numbers in the chain.

Just a minor gripe, so I don't mind if you decide to not fix this, or place it at the bottom of the pile of things you have to get through.

Thankyou for creating this!

Edit:
I guess it might be easier for people to use the way you have for mental calculations as all of the notations are in the same bracket if you will. What I mean by this is that you don't have x10^14 sitting next to x10^15, you only have x10^15, some x10^12 and maybe one x10^18. This makes it easier to subtract one value with another as you can ignore the notation (if it's the same).

Loader script needed

To always load the newest version of the code. (Automated checks for updates might also be useful, if possible.)

Click Frenzy Alert

Can there be a sound or some alert when a golden cookie is a click frenzy? I usually leave this plugin on in the background and always miss them

Christmas update stuff

The Christmas update went live on 20/12/2013, lots of stuff was added that FC doesn't buy/click. :)

I thought I'd create a comprehensible overview of the todo list:

  • auto-click reindeer (done, see #67)
  • timer for countdown until next reindeer
  • auto-upgrade Santa if not 'final Santa' level (efficiency calculation?)
  • auto-buy reindeer drops
  • auto-buy Santa drops

Request

With the latest update to cookie clicker in addition with wrinklers we are can click raindeer. I was wondering when we can expect a new version of FC to include this

Auto-popping wrinklers not working right in Chromium

I'm having no luck with the auto-popping setting. I'll debug a bit later, but just figured I'd let you know now.

Latest version (as of 2013-11-16 22:40:00) of FC, Chromium 28.0.1500.52 from Ubuntu 12.04 repositories, and Ubuntu GNU/Linux 12.04 (pretty much stock, but with no 3D acceleration).

Let me know if I can help further, else I'll take a crack at untangling the bug myself a little bit later.

Setting GC Clicked to 0% = fatal error

When I select GC Clicked percentage to 0% everything freezes, error message is about line 625:
var currentBank = bestBank(0).cost;
something about cost being undefined.

Was only able to fix by deleting saved settings from Chrome, a refresh and reload would load it with that error.

Schedule Soft Reset

It would be nice to be able to schedule a soft reset for when I reach X Heavenly Chips. Afterwards it could start with the strictest blacklist settings needed to get all the upgrades again. (If you have speed run achievements, it will skip that blacklist, etc) Not sure how configurable it should be, I just like my HCs to be a nice round number.

Inaccurate calculations for expensive purchases

Hey,

Once my upgrades, buildings, ect start requiring several hundred trillion cookies, Frozen Cookie's calculations break as seen here: http://imgur.com/XmXjo4e

As the picture shows, I have enough cookies to buy the most efficient upgrade according to FC, but it still says that there is a long purchase time. As the game progresses, the purchase time required will sometimes go up to days longer, and at that there is no point in having FC.

Let halloween cookies accrue

The auto-buy function will buy elder pledge before all the halloween cookies are bought up. This is Bad.

I figure the best heuristic for this is to check whether Autopop Wrinklers is also on, and ignore Elder Pledge until all the cookies are found.

Another option is to add yet another preference for this, but...I don't like that idea.

Modularize most things

I'd like to have "modules" that can get loaded by preferences or by config variables (in the frozen_cookies.js script), to make the codebase a little easier to hack on and extend, and to hopefully decrease the network load if someone doesn't have preferences enabled (for e.g. autoclick, autobuy, autoreindeer).

I will wait until the reindeer patch is merged, though. I don't want to rebase that.

Add the license to the repo

There should be a COPYING file in the base directory, copyright statements in each file, and (maybe) a license header at the top of each file as well.

Potential improvement to GC autoclicker efficiency

I haven't seen the under the hood workings of FC so I was curious if it is possible to have the GC autoclicker wait during a frenzy until there is less than approximately 30 seconds remaining in the frenzy before clicking the next spawned golden cookie?

In my personal experience that seems to be the optimal strategy so long as frenzy remains under the current rules where frenzy-frenzy does not stack or add the two times together as it still allows the full 26 seconds of click frenzy.

Hopefully I did not miss this in the suggestion list.

Purchase Completion Time factors in clickrate even if autoclick is disabled

I just noticed that the estimated purchase completion time factors in your autoclick rate, but also does this if autoclick is disabled.

E.g. I can see Kitten Overseers will be purchased in 2 minutes when Autoclick is disabled but set to 30 clicks/sec. When I set it to 0 clicks/sec (but still disabled), the ETA is 5 minutes.

Menu scrolling to top

I find that when the menu is open there is always a refresh moment which moves the use back to the top of the menu which can be annoying when trying to view information. We should come up with some way of fixing this

Minimize javascript

This could be accomplished by a step that happens before release, but it could also happen on a server that serves the javascript (and also maybe does some other stuff for the user, but that's a separate issue).

Coincidentally, this is also the first bug I'll file in Cookie Clicker. :)

We should, however, make sure that the source code is easy to find - to that end I'd have the minimize script add a @source tag to the top of the file in a comment.

Also should consider @licstart...@licend blocks for the licenses of the files.

Achievements toast doesn't show

Using Chrome, having FC loaded prevents the 'Achievement Unlocked: x' toaster message from appearing. They do unlock, but the notification just doesn't show up.

Additionally, the 'Elder Calm' achievement pops up whenever I load FC into Cookie Clicker, even though it doesn't really unlock, or it already was unlocked.

Frozen Cookies does not load

When I attempt to click the bookmark, Frozen Cookies does not load, and the console spits this out:

Resource interpreted as Script but transferred with MIME type text/plain: "https://raw.github.com/Icehawk78/FrozenCookies/master/cc_upgrade_prerequisites.js?_=1385155565405". jquery.js:8516
Resource interpreted as Script but transferred with MIME type text/plain: "https://raw.github.com/Icehawk78/FrozenCookies/master/fc_main.js?_=1385155565406". jquery.js:8516
GET https://raw.github.com/Icehawk78/FrozenCookies/master/fc_button.js?_=1385155565407 403 (Forbidden)

Console Feedback

I like reading the console, and sometimes have FC on Autobuy, thus I propose:

Line 975:
logEvent('Store', 'Autobought ' + recommendation.purchase.name + ' for ' + Beautify(recommendation.delta_cps) + ' CPS.');
Change to:
logEvent('Store', 'Autobought ' + recommendation.purchase.name + ' for ' + Beautify(recommendation.cost) + ', resulting in ' + Beautify(recommendation.delta_cps) + ' CPS.');
For more details on purchases.

Comment out Line 925:
logEvent('Cache', 'Recalculating cached values.');
And Line 911:
logEvent('Bank', 'Target Bank level changed to ' + Beautify(targetBank.cost) + ' cookies.');
Perhaps set it to a debug mode or something?

Also, consider a few new reports, such as "Frenzy Ended", and suppressing HC Gained (Line 894) during Click/Elder Frenzy (gets spammy), and instead "Click Frenzy ended, x HCs gained".
If feasible, it would also be cool to know how much a Elder/Click Frenzy was worth, similar to the Lucky! GCs.

Oh, I've neglected to mention this: Thanks a ton for your hard work, making a great game even greater! :)

Wrinkler Estimates

In the FrozenCookie page it would be nice to see an estimate of what I would get if I popped all the Wrinklers right now (maybe with a button to do so). It would be nice also to see the estimate for each wrinkler on top of each wrinkler, but the easier temporary solution might be to list each in the stats page like so:

Wrinkler 1 2.34 Qa [Pop]
Wrinkler 2 1.42 Qa [Pop]

Banking going to 0 cookies

[3h 59m 50s] GC: Lucky! +5.595 trillion cookies!
[4h 1m 33s] Bank: Target Bank level changed to 391.633 trillion cookies.
[4h 1m 35s] Bank: Target Bank level changed to 55.948 trillion cookies.
[4h 2m 7s] GC: Frenzy : cookie production x7 for 77 seconds!
[4h 2m 8s] Bank: Target Bank level changed to 55.948 trillion cookies.
[4h 3m 12s] Store: Autobought Macaroons for 54.004 billion CPS.
[4h 3m 12s] Bank: Target Bank level changed to 0 cookies.
[4h 3m 12s] Store: Autobought Farm for 8.66 million CPS.
[4h 3m 12s] Store: Autobought Alchemy lab for 14.755 million CPS.
[4h 3m 12s] Store: Autobought Antimatter condenser for 13.691 billion CPS.
[4h 3m 12s] Store: Autobought Grandma for 998.947 million CPS.
[4h 3m 12s] Store: Autobought Mine for 9.78 million CPS.
[4h 3m 12s] Store: Autobought Factory for 8.884 million CPS.
[4h 3m 12s] Store: Autobought Time machine for 1.36 billion CPS.
[4h 3m 12s] Store: Autobought Farm for 8.66 million CPS.
[4h 3m 12s] Store: Autobought Alchemy lab for 14.755 million CPS.
[4h 4m 6s] GC: Lucky! +3.153 trillion cookies!

This:
GC: Lucky! +5.595 trillion cookies!
was the previous Lucky cookie, so I don't understand:

  1. Why it would then increase the Target Bank level changed to 391.633 trillion cookies. (I didn't have get lucky upgrade, so it was impossible to get a lucky during frenzy, and frenzy wasn't running)
  2. Why it would set bank to 0 after first waiting for luckybank and then making a big purchase, is this an error, or did it, perhaps because of frenzy being active, calculate the benefits of buying these upgrades now and losing luckybanked cash was better than the potential of + cash from Lucky?

Weird values for chain completion time

I have noticed that when the game tries to complete a chain such as Sextillion Fingers or Reverse Cyclotrons, that the estimated completion time in the Autobuy information is ridiculously high, whereas the correct value is shown in the timer in the bottom left corner.

In my save you can see the problem (Sorry about the wall of text)

MS4wMzgzfHwxMzgyMDgxNTQyNTgzO05hTjsxMzgyMTcxODA5ODgxfDExMTExMXwxNDIwOTE5NTY3NDU3OTc2ODsxMzMyOTQ3NjM2NDk1NTAzODA7Njc2MDsxODcyOzE3MjAxMDk3OTI3MzI1NTEuODs1NDstMTstMTs3NDg4OTQwMDM5NzMzOTY1MDswOzE1OzYzNTcxOzA7LTE7MTs1NjJ8MjI4LDIyOCwxMTczMDU5NzM5MzY3LDA7MjEwLDIxMCwzNjQyMzA2MTUzNjkxLDA7MTc1LDE3NSw2MTMzMDI2NDMsMDsxNjIsMTYyLDE1NjI2NDYwMTQsMDsxNTMsMTUzLDUwNDI0NDg0MzUsMDsxNDQsMTQ0LDEyMTY5OTUxMDIzLDA7MTM0LDEzNCw0MTM2NzkxNjY0MiwwOzEzNywxMzcsNzQ0MDg1ODg3NDA3LDA7MTE1LDExNSw2OTgyMzg3OTAyNDg1LDA7MTA3LDEwNyw0ODM0MzkxMTg2Mzc4MSwwO3w0NTAzNTk5NjI3MzcwNDk1OzQ1MDM1OTk2MjczNzA0OTU7NDUwMzU5OTYyNzM3MDQ5NTs0NTAzNTczODQ5ODMxOTM1OzI4MTQ3NDk3NjU1MzM2OTU7MTA0ODA5NXw0NTAzNTk5NjI3MzcwNDk1OzIyNjA1MjcxODUxMzM1Njc7NjM%3D%21END%21

It is currently chaining to Sextillion Fingers and the autobuy info says it will take over 350 billion days to complete, whereas the timer says over 2 days and 5 hours.

Periodically Autobuying Elder Covenant/Revoke Elder Covenant/Cursors when not viable

Well, Elder Covenant or Revoke Elder Covenant never makes sense, but cursors possibly could.

But anyhow, this is in my console, not sure if it helps:
[59m 29s] Bank: Target Bank level changed to 19.189 quadrillion cookies.
[59m 29s] Store: Autobought Cursor for 5.541 quadrillion, resulting in 605.272 trillion CPS.
[59m 29s] Bank: Target Bank level changed to 0 cookies.
[1h 21s] Store: Autobought Elder Pledge for 512, resulting in 179.997 trillion CPS.
[1h 21s] Bank: Target Bank level changed to 268.705 quadrillion cookies.
Cursors were 0% at the time (efficiency was around 4,000ish for all but cursors, which were 20,000 ish.

Also, I don't know what the issue is with Elder Covenant/Revoke Elder covenant, but how about just a blacklist for them if the bug can't be found? Elder Pledge is always better.

Auto Clicking improvements

Hey thanks for the great work guys.

I just wanted to let you know I've been playing around with the auto clicking stuff and trying to get the recommendation list to take autoclicking into account.

Here's what I've done - if you like please feel free to introduce. Added the following to upgradeStats() :

 var clickCpsOrig = 1000 / cookie_click_speed * Game.mouseCps();
 var cpsOrig = baseCpsOrig + gcPs(weightedCookieValue(true)) + clickCpsOrig; 

and

  var clickCpsNew = 1000 / cookie_click_speed * Game.mouseCps();
  var cpsNew = baseCpsNew + gcPs(weightedCookieValue(true)) + clickCpsNew; 

My version is now prioritizing cursors and mouse upgrades as appropriate.

If that looks really wrong could you please let me know?

Cheers,
Matt

Auto off upon loading

Can you please have it so that Auto-Buy and Auto-Click are turned off when first loaded up and have to be turned on to activate?

Only I'm trying not to buy the One Mind upgrade, and when I try loading your Frozen Cookies script, it's buying it automatically.

Thanks

Incorrect building cost calculation causes infinite purchase loop

I have encountered a case where FC incorrectly calculates building cost. In this case, a Farm costs 875 cookies, but FC thinks it would only cost 866 cookies.

In this case, the bank contains 872 cookies. FC will attempt to buy the Farm, but this doesn't happen because the Farm actually costs 875 cookies. Because the bank still contains 872 cookies, this will repeat infinitely.

Screenshot:
screenshot

With this save and these settings, this issue always occurs within 1 minute, although not always with a Farm.

Save:
MS4wNDAzfHwxMzg3ODcxNjAzNjU5OzEzODc4MzgwODY2MDA7MTM4Nzg3MjM0Nzg4NHwwMDExMDAwMHw5NTgyLjQ3ODkzMzMzNDA2NzsxMDY4OS40Nzg5MzMzMzQwNjU7MjkzNDsyNTQ7OTM2NjswOy0xOy0xOzUyODM0MzU3NDEyNTE2ODU7MDswOzA7MDswOzE7MDswOzA7NDsxfDEwLDEwLDk2MCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwO3wyMjUxNzk5ODEzNjg1MzExOzIyNTE3OTk4MTM3MjYyMDk7MjI1MTc5OTgxMzY4NTc2MTsyMjUxNzk5ODEzNjg1MjUxOzIyNTE3OTk4MTM4MTYzMjE7MjI1MTc5OTgxMzY4ODgzMzs1NDk3NTg1Njg1NDV8NDUwMzU5ODQ4NjQ1NDI3MTsyMzc4MTI5MTYxMDQzOTY3OzEyODcxMQ%3D%3D%21END%21

FC settings:
settings

Cursors randomly being purchased?

Cursors are sometimes automatically purchased after reaching 240, even when they're not efficient. May be triggered by golden cookies, I noticed a couple times that they were bought after getting lucky cookies.

Elder Pledge

Hi!
Im just asking if you could implement a fuction so it only autobuys Elder Pledge. I just want my computer on collecting cookies with auto golden cookie on and not auto buy, but it would be nice if it only bought elder pledge so you dont get red cookies :)

Color Coding

Even though autobuy is the main reason to use this script that doesn't mean color coding stuff isn't pretty or just plain fun to look at. Also it is nice to know if the game will be getting an upgrade (like kittens) soonish before going to bed and such. Not a big deal but just an idea. You really can't see any kind of order at the moment anyway.

Auto Clicker maybe with an option? (Default of which should be off because people may want True Neverclick). Of course have it at a reasonable pace but still enough to get the Uncanny Clicker achievement. Bonus points for making the game fully automatic by having it turn itself on once you get both of the non-clicking achievements (1 Million cookies without clicks). There are a few upgrades only obtainable by clicking so there is a reason for it.

If you going to have circles then why not have one for buying stuff? I tell time more easily visually personally. Also I don't know what the deal is with bars but I love watching them grow/drain. You could just make it a hourglass shape with it draining on one side and increasing on the other but I'm guessing that wouldn't be as easy to make.

Local Storage corrupt, Time to get last HC broken

Screenshot of issue:
http://puu.sh/57QPC.png

Can't get this fixed by F5, or restarting chrome.

I got this fixed by deleting the local storage, so maybe just a heads up that this can get corrupted?

I played normally, wiped settings, played again, reset, played, wiped again and hadn't reset since, maybe the wipes/resets are an issue, maybe delete the statistics from local storage upon reset/wipe/Load?

(I did notice Max HC Gain/hr is mistaken because I had loaded an earlier save with tons more income)

Also, I just notice Max HC Gain was missing?

shrugs

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.