Git Product home page Git Product logo

cookiemaster's Introduction

CookieMaster

CookieMaster is a browser plugin for Cookie Clicker.

It offers many useful features, statistics and options to help you get the most out of the game. See below for a full list, as well as upcoming and planned features.

CookieMaster is currently being actively developed, with stuff being added almost daily. If you find a bug or have a feature request, you are encouraged to open an issue in the Issue Tracker.

How To Use

  • Paste the following code into a new bookmark in your browser:
javascript:with(document)(head.appendChild(createElement('script')).src='//cookiemaster.creatale.de/b?c='+Date.now())._

Beta

If you want to play CookieClicker Beta, you can use the following bookmarklet for CookieMaster:

javascript:with(document)(head.appendChild(createElement('script')).src='//cookiemaster.creatale.de/beta/b?c='+Date.now())._

Screenshot

CookieMaster Statistics and main game window

Features

  • Long number shortening, e.g. 3,476,112,098,761 can be displayed as 3.476 T
  • Show different suffix types when shortening numbers, e.g. 26.696 Qa, 26.696 quadrillion, 26.696 P
  • Number localization: Display a period or comma as your preferred decimal separator
  • Calculate and display the most efficient purchases and upgrades
  • Display estimated time left until upgrades and buildings are affordable
  • Clean up the game window: Remove the top bar, make the cookie counter more visible, etc.
  • Change the game highlight font
  • Display accurate countdown timers for game events, e.g. next Golden Cookie, remaining time for buffs
  • Play audio alerts when Golden Cookies and Reindeer spawn (with volume control)
  • Flash the screen when Golden Cookies and Reindeer spawn
  • Display countdowns to next Golden Cookie and Reindeer in the title tab
  • Option to make Golden Cookies more visible when they spawn
  • Option to increase the hitbox area for Golden Cookies, making them easier to click during Cookie Chains
  • Auto-clicker for the Big Cookie with speed control
  • Ability to set auto-clicker during Frenzies, Click Frenzies or continuously
  • Ability to auto-click Golden Cookies and Reindeer
  • Button to instantly pop all on-screen wrinklers
  • Calculate and display Heavenly Chip data, including time left and cookies left until the next one
  • Calculate and display information about banked cookies for maximum buff payouts and other items
  • Calculate and display your maximum Chain Cookie reward and the required bank and CpS to reach the next reward level
  • Calculate and display how many cookies Wrinklers have sucked and the reward for popping them
  • Display missing achievements and shadow achievements
  • Clicking Golden Cookies and Reindeer no longer pops Wrinklers that lie beneath them
  • Other useful stats
  • Pause button
  • BETA: Persistent stat logging for tracking your CpS through your sessions
  • BETA: Ability to export your logged stats as a CSV file
  • True Neverclick helper - prevents you accidentally clicking Big Cookie while getting the achievement

Planned and Upcoming Features

  • Smart auto-clicking for Golden Cookies and Reindeer to maximise your returns
  • Multiple save slots with import/export functionality
  • Performance optimizations to allow CookieMaster to poll and update even more rapidly

Releases

I try to update CookieMaster as often as possible, but I'm currently a single developer doing this in my spare time, so there's no fixed release schedule as such.

For a full release history, consult the changelog page

Browser Support

Extensive browser testing has not yet been carried out, however CookieMaster should work happily in current releases of the following browsers:

  • Chrome (recommended)
  • Firefox
  • Safari
  • Internet Explorer 10+

CookieMaster uses some new web features that may not be supported in older browsers.

Developers / Contributing

CookieMaster uses Node.js and Grunt for building and managing the project. Although not necessary for contributing changes, it is recommended to have these installed if you want to take advantage of the project build tasks.

It is recommended to download and run Cookie Clicker locally for testing any changes you make to the plugin. All Cookie Clicker game assets are static, so just run a wget or your preferred equivalent on http://orteil.dashnet.org/cookieclicker/ to grab the game files. The CookieMaster source file paths assume that you have Cookie Clicker running in an adjacent directory named /cookieclicker.

  1. Make sure you have Git, and optionally Node.js and Grunt installed first.
  2. Fork the CookieMaster repository on GitHub and clone it to your local machine.
  3. Make your changes. All source files are located in the src/ folder. If you are using Node/Grunt, you can run grunt build to create a build/ directory with optimized files for local testing (remember to only include src/ files in your commits if you issue a pull request).
  4. When you're done making changes, commit and push them up to your forked repository.
  5. You may then create a pull request from GitHub if you would like to have your changes considered for inclusion in the main CookieMaster repo.

Contributers

cookiemaster's People

Contributors

greenc avatar jmtar avatar kgarrison343 avatar llbit avatar mrtnnbr avatar rashfael avatar samboni avatar super-aardvark 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookiemaster's Issues

next purchase timer

next purchase timer doesn't take into account amount of cookies needed to stay above lucky+frenzy limit, if you have the maintain bank option turned on.

Stuck Paypal Text

When going from the 'Updates' tab to Stats+ or Settings, the Paypal Donate button and text stay stuck in the upper right corner, overlapping with existing checkboxes and such.

Out of screen item tooltips

If the item is low on the screen, the item tooltip often becomes partially (or almost completly) out of the screen. This issue is especially problematic on prism's (I have the efficiency key off) because i can't scroll down any more.
captura de tela 2014-02-16 00 34 28

Display and use "Effective CPS" variable in calculations when Auto-click is enabled

An "Effective CPS" variable would be a nice option to have when Auto-click is enabled that would be calculated as:

effectiveCPS = (clicksPerSecond * baseCookiesPerCllick) + baseCookiesPerSecond

Using the effective CPS variable will allow you to display to the user how much they're actually making per second with Auto-click turned on as well as create a more accurate "Time to next HC" value which is inaccurate when Auto-click is turned on.

Elder covenant bug

so when i updated cookie master and i load it back up it revokes my elder covenant and makes me rebuy it buy when i rebuy it it revokes it again please fix this so i can use cookie master again

Stop using rawgithub.com

I found this notice on rawgithub.com:

Use this for testing and for sharing demo code with friends, but don't use it for anything production-related.

"Festive biscuit" missing upgrade

CookieMaster v.1.13.0 reports that I have a "Festive biscuit" upgrade missing. I can't find info about this upgrade on the wiki and it doesn't add up to the total upgrades count (the regular Stats page reports two upgrades missing, which corresponds to two Halloween cookies).

Audio alerts error

Audio alerts aren't working in the latest version, I'm using chrome extension. Both default and custom links report an error.

image

Lucky and Lucky+Frenzy Calculations

I've noticed that the Lucky and Lucky+Frenzy cookies required calculations in the tooltips take into consideration the added cookies that are required after you buy said item (let me give an example, with made up values, to be more clear).

you got 100 cursors.
lucky + frenzy required bank is 100G
the 101st cursor costs 1G, and increases the lucky + frenzy required bank by 0.5G.

If your bank is empty, the tooltip of the 101st cursor will say you'll need 101.5G cookies to stay above the lucky + frenzy limit.

However, this is not the most efficient way, you should buy the cursor as soon as you get 101G (not 101.5G)

Let me elaborate:

if you buy the 101st cursor as soon as you have 101G, then as your bank increases again, so does the lucky+frenzy reward.

If you wait for the 101.5G, during that time, the lucky+frenzy reward will stay the same until you buy the next cursor.

Please forgive me if I wasn't clear enough, and I'll be glad to answer any question.

Current Lucky and Lucky+Frenzy Reward Incorrect

When the grandmatriarchs are appeased or not yet awoken the Lucky and Lucky+Frenzy rewards are not calculated correctly. CookieMaster displays the same current reward as the maximum, even if the maximum is not same as the current.

bug

CM makes game think you have built and sold one of every building.

When loading version 1.14.0 of the script on a newly wiped game, it causes the game to think you have built and sold one of every building. This awards you with the achievements associated with those conditions and access to upgrades you normally would not have access to yet.

MS4wNDExfHwxMzkyNTQ0MjI5MDIyOzEzOTI1NDQyMjkwMzc7MTM5MjU0NTMxODQ1MHwwMDExMDAwMHwwOzA7MDswOzA7MTstMTstMTswOzA7MDswOzA7MDswOzA7MDswOzA7
MDswOzA7dmFsZW50aW5lczt8MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDsw
LDAsMCwwO3wyNDMwNTE0MDg0NjEwMDU5OzIyNTE3OTk4MTM2OTQwOTE7MjI1MTc5OTgxMzY4NTI0OTsyODE0NzQ5NzY3MTA2NTYxOzIyNTE3OTk4MTM2ODUyNTE7MjI1MTc5
OTgxMzY4NTI0OTsyMjUxNzk5ODEzNjg1MjQ5OzIwOTcxNjN8MzUzOTM2MjMwNjE5NTQ1NzsyMjUyMDc0NjkxNTk2ODczOzQzMTE3NDQ1MTM%3D%21END%21

Contributing

Hey, this is kind of a long shot but, bear with me. Didn't find any way to contact you so, this will do.

I recently took over the Cookie Monster development – more or less by force – because I was dissatisfied with the lack of updates and the overall low quality of the code.

So I started a huge refactor and performances overhaul – which is almost done. My point is to have something clean, tested, and easy to crawl through and extend so that people can make pull requests.

A few days in my rewrite I fell upon this repository (by checking who was hogging all of rawgithub actually) and although Cookie Master isn't yet up to par feature-wise, I feel both my rewrite and your plugin were written with the same state of mind and intents.
So instead of you know, wasting both of our work on two similar but separate repositories, I wondered if you wanted to join me on the new Cookie Monster and join our forces and stuff ? I ask this and not the opposite because Cookie Monster, despite the state it was left in, is currently the most advanced in terms of features.

You can take a look at where I'm standing now by checking the sources of the repo, see if that helps maybe https://github.com/Anahkiasen/cookie-monster/tree/develop

Also you can check the original sources to, well, see what I started with https://github.com/Anahkiasen/cookie-monster/blob/develop/dist/js/original.js

"Lucky deficit if purchased" warning does not take into account CpS increase

Lucky cookie deficit calculation does not take account for CpS increase for buying the building/upgrade in question.
Example: When I mouse over an Antimatter Condenser, the popup says that purchasing it would cause a deficit worth 9 minutes 30 seconds. However, when I buy it, the stats+ screen says it will take 9 minutes 23 seconds. The AC in question added about 2% of my CpS.
Example2: First Prism upgrade (lots of bonus CpS), says 19:56, turns out 18:36.

I hope I understood the case right.

A number of fixes and suggestions regarding "missing upgrades/achievements" lists

  1. Most upgrade and achievement descriptions do are on the same line as previous text. Also, they are bolded instead of italic.
  2. Both upgrades and achievements go in the order of ID (so that ones added in later versions go last) instead of in-game order.
  3. Suggestion: add icons.
  4. Suggestion (tentative): add upgrade requirements.

Add confirmation dialog when switching seasons

When you restart the game with high Heavenly Cookie counts it's really easy to spam-click upgrades as they become available and I find it pretty easy to spam click between seasons a few times before I realize I'm doing it. Mostly a problem since the game doesn't really sort the upgrades very well and sometimes the seasonal is at the beginning, sometimes it's not.

Could you add a dialog box that asks whether you're sure you want to change the season since the price doesn't decrease until you reset the game?

Timers disapear

Timers disappear after they run out once. They can be brought back by applying changes.

Add long scale lare-number names

The "Standard" number shortening is the short scale, I'd prefer to use the long scale, i.e. "million", "milliard", "billion", "billiard" etc.

Golden Cookie sounds do not play

After reloading recently golden cookie sounds stopped working. I'm unsure if this happened before 1.4.2, but I see that things have been hotfixed since the release so maybe something of that broke it.

The reindeer sounds do work. Tried downloading the cookie sound from the URL in the source and that works.

bug

Delay Golden Cookie sound trigger by ~1 second to allow for fade-in

Currently the Golden Cookie sound trigger plays as soon as a Golden Cookie spawns, which is accurate, but because of the fade-in on the cookie it's generally about 1 to 2 seconds before it's actually visible.

Could either delay the sound by 1-2 seconds or disable the fade-in, not sure which is optimal.

Suggestion: Additional Cookie Chain Information

In addition to the bank/CpS required for next Chain tier stats, it would be cool to have bank/CpS required for current Chain tier stats. Along with this, having an upgrade/building purchase warning about dropping to a lower Chain tier would be helpful.

Time Remaining

I was thinking maybe to make an option to calculate time remaining based off of "Base CpS" or "Frenzy CpS"? The new way the timer is calculated can be strange at times.

Occasional weird BCI changes

Every so often (not sure what it depends on) building BCIs become much lower until I buy any building. After I buy it, the BCIs return to normal.
When this happens, the change is more pronounced for lower buildings - farm usually has the lowest BCI of all; so it may be related to Thousand/Million/etc. Fingers upgrades (I don't think it ever happened without them).

Auto-buy buildings/upgrades

It would be nice if there was an auto-buy option which would buy the best upgrade/building as soon as it can be afforded, similar to the auto-clicking popups option.

Elder Pledge Issue

After buying an Elder Pledge, buying anything seems to end the pledge and I'm back in Grandmapocalypse...

MultiCookie issues

When I load cookieMaster on multiCookie (I use cookie master in a tampermonkey script) the farm and factory have a BCI of zero and nothing else breaks 300, despite the fact that the most efficient building should have a BCI of around 4500. When the CPS changes, whether it be by a golden cookie effect or buying something, then it reverts to normal. The cookie clicker save stored with the vanilla game is a newly started game.

Building tooltip hover does not work on buildings you have not bought at least 1 of

When a new building is unlocked in this new version, the tooltip hover with "Bonus Income", "BCI" etc doesn't display. Once you buy at least one of the building, though, it works. Would only be useful for seeing the "Time left" to see how long it would take to buy the building. The BCI coloring appears to function properly on the building before it is bought, though.

Stat logging, actual cookie gain per hour or other timeframe

What i would love to see is that the actual cookie gain per hour is tracked. So cookies gained in the last hour and your average cookies per hour based on the last x number of hours tracked. (so not the time since last reset but the time the game is running)

Now calculations on remaining time is purely based on CpS, which changes with every frenzy and doesnt include the minutes/hours worth of gain for every golden cookie, frenzy's etc

So when you need for example 1 quintillion cookies, even though the timer says 18 hours, the amount is met after playing a mere 30 minues, so if the stat logger gives me an average gain of 2 quintillion cookies per hour i know that i only need to play for 30 minutes instead of 18 hours.

This becomes especially interesting end game when the cookies needed are in the quint/sextillions of cookies

EDIT
another way that increases the acuracy atleast somewhat is to use the current stat logging where it tracks effective CpS and based on those numbers adding another line giving the average CpS, and then using that average CpS for time calculations instead of the effective CpS. this stil does not include the gain trough lucky golden cookies though.

Unavailable buildings taken into account for building colors

If an unavailable (blacked out) building has the lowest BCI, all available ones are colored yellow and above.
While it's not a bug, it's somewhat inconvenient because that building won't become available for a while, and you need to check manually to see what you should buy.
So what I'm proposing is to remove hidden buildings from BCI comparison.

Errant "cookie chain" warning

If you have insufficient bank to make a cookie chain (100K baked total), tooltips for buildings and upgrades still show the cookie chain warning if they're too expensive to purchase.

Feature: Golden Cookies/Reindeer + Wrinklers

Can you please make clicking Golden Cookies or Reindeer not trigger the wrinklers under them? I sometimes accidentally pop them this way, mostly during Cookie Chains. It is not a bug in your plugin, it happens even without it.

Document BCI

Please document the mysterious BCI metric. I have deduced that it probably means "Base Cost per Income", but it might not be so clear for others what it is.

Suggestion: Additional Heavenly Chips Information

In addition to the cookies remaining for the current chip, it would be useful to be able to see the total number of cookies the current chip will cost. It could also be useful to see the total time it took to acquire the last chip.

Valentine's Day Upgrade Breaks CookieMaster

You're probably already aware of this but just in case: The Valentine's Day update (1.0411) breaks CookieMaster almost completely. A few minor things still work such as number formatting on prices but options and stats+ are inaccessible.

"Cookies sucked by wrinklers" statistic is wrong

A full 10 wrinklers wither 50% of the cookie production, so after spending all the cookies and popping all wrinklers, the "Cookies sucked" statistic should be about equal to the cookies in the bank (slightly lower, considering that wrinklers don't appear instantly).
Instead, the displayed number is much higher than the cookies in the bank.

CPS increase after reset

First let me say i loved this new feature.

However (If I'm reading it right), there's a slight error on it, and I'll use mine as an example:

My Base CPS right now (SI notation):903.74 T
CPS after reset: 1.388 P (154% increase)

now, 1.388 P is indeed (roughly) 154% of 903.74 (this is, 903.74 P x 1.54 ~= 1.388)

However, this is an increase of 54% (54% more than 100%, which would be no increase).

So, I would suggest subtracting 100% on the formula.

As an added request, can we please get a couple decimal places on the percentage of increase? It kinda makes me shiver a bit when i do the calculation of CPS after reset by hand and I get a value that's about 20T different from the one CookieMaster calculates.

Thanks a lot for your effort on CookieMaster!!

Season upgrades still don't appear in v1.16.2

I updated to v1.16.2 and the icons for season upgrades do not appear, even though I had them before in this game. I updated from v1.15.2 directly to v1.16.2, maybe this is the problem?

Auto-click golden cookie sometimes misses later cookie chain clicks

Auto-click cookies sometimes misses cookies in the cookie chain that are later in the chain since they start spawning and have <1 second to be clicked. Not sure if that is a bug in the original code (seems like they are semi-random in the later cookie chain clicks where it might be a rounding error rounding up to 1 second or down to close to 0). But either way, the auto-click misses it. Not sure if there is an auto-click golden cookie poll interval that can be adjusted (only during chains) or something to that effect.

Golden Cookie timer is wrong

I know, that the spawn time of golden cookies is random but with all upgrades purchased the displayed time is always between 90 and 120 seconds longer than the real spawn time.
If the displayed time is the max spawn time, than i have never reached it and would prefer the average or minimum spawn time to be displayed.

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.