Giter Club home page Giter Club logo

cookie-clicker-autobuy's Introduction

๐Ÿ’ซ About Me:

I finished my Bachelors Degree in Computer Sience at the Free University Berlin (read my Bachelors Thesis here). I love programming and would do anything to automate every single thing in my life

I work full time at the German Red Cross Rhineland-Palatinate with my main focus being the SPELL Project

๐Ÿ’ป Tech Stack:

C CSS3 Haskell HTML5 Java JavaScript LaTeX Markdown PHP Python TypeScript Bootstrap jQuery NodeJS React Vuetify Vue.js Nginx Apache Supabase Postgres MySQL SQLite

cookie-clicker-autobuy's People

Contributors

drblaui avatar

Watchers

 avatar

cookie-clicker-autobuy's Issues

Allow turning off autobuy for upgrades

Right now, there is no way to just buy buildings. Adding a button to the menu and a check for the state of the button allows users to personalize their experience

[REQUEST] Turn off notifications

Is your feature request related to a problem? Please describe.
Notifications are annoying
Describe the solution you'd like
Turn them off

Exclude Research from autobuy upgrades

Since they require confirmation AND can change the game, they should be excluded. This will cause a rewrite of how upgrades are

  • selected and determined
  • bought (since we always buy the element with the id upgrade0

[REQUEST] Autobuy Santa and Dragon

Is your feature request related to a problem? Please describe.
When the autobuyer is on, it's rather hard to upgrade Santa or the dragon with cookies

Describe the solution you'd like
Allow the autobuyer to keep santa in the autobuy circulation and also the stages of the dragon you can pay with cookies fo

[HEAD ISSUE] Refactoring

This issue is only to provide a checklist to the milestone

  • switch to HTML Templating #21
  • Cache Scroll Position in Buying Timeline #20
  • Calculate Prices with discounts #24
  • Fix timeline sorting #26
  • adjust name text size dynamically #27
  • Change Slider #29
  • switch document.getElementById() to cookie clicker build in l('ID')
  • If all buying is turned off, remove the next buy container
  • look for other cookie clicker functions (like binding click event listeners) and implement them (unnecessary)
  • consider moving some functions out of mod context scope into global scope for easier access (unnecessary)
  • use Game.Version on Image strings, so these dynamically scale with the game

[IDEA] Switch to HTML Templating

HTML has templates, or rather allows templating. If I include basic "skeleton" html files in the mod folder and load them in with an XMLHttpRequest, the code looks cleaner and I can catch HTML syntax errors while programming. However doing this would either be async and could cause content to load in too late or sync and could cause the game to freeze while it loads heavy content

[BUG] Autobuy Slider is a guessing game

Describe the bug
Changing the slider will only show the new value after mouse up

To Reproduce
Steps to reproduce the behavior:

  1. Go to Options
  2. Use slider

Expected behavior
Show current value on slide

Game Version:

  • all

Additional context
Use the oninput Event

[REQUEST] Cache Scroll Position of Buying Timeline

Is your feature request related to a problem? Please describe.
Cookie Clicker renders (for whatever reason) the Menu every draw tick. This means if you scroll down in the Timeline container, you'll quickly be reset back to the top

Describe the solution you'd like
Save Scroll Position until user closes menu (maybe even for the whole session) and render the scrollbar to that position

Additional context
Would require finding out how to set and read scrollbar position

[REQUEST] Calculate Prices with discounts

Is your feature request related to a problem? Please describe.
Autobuyer miscalculates quite a lot when discounts are applied. Discounts have to be included

Describe the solution you'd like
Factor in Discounts

[BUG] Timeline goes the wrong way

Describe the bug
The buying timeline appends new elements to the end of itself

To Reproduce
Steps to reproduce the behavior:

  1. Let the autobuyer buy something
  2. Look into timeline
  3. Its at the end

Expected behavior
Object appearing at the front

Game Version:

  • all

"Cache" input of bulk amount

The way cookie clicker is programmed it (for whatever reason) redraws the menu every draw tick. This makes typing in values in the input box incredibly hard.

Either change to a slider (could be pretty bad UX) or save the last typed thing as a temporary variable until the set bulk amount is clicked or the menu is disabled (gross)

Create buying timeline

Keep track of what has been bought and show it in a scrollable container in the options menu. This can be done by keeping an array of objects or simply an object of objects

This will likely need a rewrite of how variables as stored, as we need a JSON Object next to the bulkAmount variable, but we can only store one thing in between sessions

Fix Bulk Amount buy when set to zero

The Bulk Buyer will request the price for 0 buildings when the value is set to 0. This will lead to buildings always being the cheapest because 0 buildings cost 0 cookies. Implementing this skip, allows the user to personalize their experience so that they only auto buy upgrades

[BUG] Buying Timeline slows game down when it's large

Describe the bug
Showing the buying timeline in the menu when it contains a lot of items causes the menu to slow down

To Reproduce
Steps to reproduce the behavior:

  1. Let the autobuyer buy a lot of things
  2. Click on menu
  3. Every Draw Tick, the game stutters

Expected behavior
Obviously no stutter

Game Version:

  • all

Additional context
Ideas: Append Elements async, allow clearing timeline or disabling it. Construct html element at autobuy and just simply append whole HTML sting when menu is loaded

[BUG] Next Showcase Name clips

Describe the bug
The name of the Upgrade/Product that will be bought next, clips into the image container when it gets too large

To Reproduce
Steps to reproduce the behavior:

  1. Wait for autoclicker to target anything with a long name
  2. Look at the name

Expected behavior
Name not clipping

Game Version:

  • all

Additional context
Should just dynamically scale names

Abstract options creation even more

The idea for this is that normal elements, like buttons can be created with a function that gets passed content, an onclick function, an optional label and an optional ID

Other elements can be injected with a separate functions that takes the desired HTML code as string

Nobody will be assigned to this in hopes that the bot doesn't create a branch for this, as this can and should be done with another issue

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.