Cookie Clicker

Cookie Clicker

Garden Speed Helper
z 9 月 14 日 上午 1:27
Garden Speed Helper with Memory
This is a very nice little mod, with only one problem. The garden speed gets reset to the default any time the game is reloaded.

I have made a fixed version of this mod, which remembers the garden speed across reloads, but resets it after an ascension. This new version contains many other features as well; they are described in Post #3 below.

To find the new version of this mod, just follow the directions at the end of Post #3.

Simply replace the main.js and info.txt files with the ones mentioned at the end of Post #3. Just make sure to unsubscribe from this mod in the Workshop so that this change doesn't get overwritten with the old version. (If and when Einzelmais decides to incorporate this as the official mod, this step will not be necessary.)

Note: If you run Cookie Monster, you should proceed as follows: Disable Cookie Monster, reload the game, make the above patch in the source file, reload the game, and then re-enable Cookie Monster. This will prevent some nasty errors on the part of Cookie Monster.
最后由 z 编辑于; 9 月 25 日 上午 3:41
< >
正在显示第 1 - 3 条,共 3 条留言
Einzelmais  [开发者] 9 月 14 日 上午 4:06 
Nice! I couldn't figure that out when I originally made it. I'm not maintaining it rn because I'm not playing myself atm, so I fully support this edit! Maybe I'll add it when I got the time.
z 9 月 15 日 上午 1:07 
For some reason, this fix stopped working. I have temporarily removed it until I can find and fix the problem. Sorry for any inconvenience.
z 9 月 25 日 上午 3:24 
I have now fixed the bug in Garden Speed Helper, and it reliably (100%) remembers the interval selected and restores it after a reload. The interval is reset to the default after an ascension.

In addition, there are a number of features I thought would be useful for this mod, and so I added them as well. Many of them are selectable via a new Garden Speed Helper section on the Options page of Cookie Clicker. Once consequence of adding these new features, though, is that CCSE is now required to run this mod. CCSE should precede this mod (and all others) in the loading order. If CCSE is not loaded, Garden Speed Helper will try to load it (and should succeed).

The new features available are the following, starting on the Options page:
  • An option to make Juicy Queenbeets plantable (off by default). I noticed a line to do just this in the original code, but it was commented out, I assume because the author did nor want to make such a feature mandatory. That's why this feature is off by default. When this mod loads, it reads the plantable state of Juicy Queenbeets from the game, and initializes the button to this state.
  • Buttons for all available time intervals. Turning these buttons ON or OFF adds or subtracts a button for that time interval in the display on the main page. Note that in addition to the current buttons, there are now buttons for 15, 20, 45, 90, and 120 seconds. The buttons are initialized to reflect the current display. You can select as many or as few buttons as you want; you can even set up a whole different interval progression, such as 5, 15, 30, 45, 60, 90. The "default" button is not in this list because it is always displayed. If you deselect the button for the current interval, the mod keeps running that interval until another one is selected.
  • Moving on to the main page, a bug in the garden countdown timer has been fixed. Formerly, the timer would start at one second more than the interval, count down to 2, and then, when it reached 1 second, it would start over at the interval plus one second. This timer now starts at the actual interval selected, counts down to 1, and when it would reach zero, it starts the timer at the selected interval.
  • The selected interval is now indicated by highlighting the selected text and the outline of the box containing it. This works for all buttons except the "New" button, as that button is only selected momentarily, and never permanently.
  • Hovering over a button highlights the button's text, but not the box outline.
Extensive testing has been done on all of the above features. Einzelmais - please let me know if you want anything changed here. Also, it's possible to add an option to suppress the display of the "set tick speed" label, which can be useful either on narrow displays or, more ,likely, if the player selects a number of additional speeds. Please let me know if you would like that option added; it's simple to do.

Putting all these options in has increased the file size a fair amount, so rather than posting the whole thing here, I put it in my Pastebin. That's where you can find the files main.js (https://pastebin.com/yh3wsXtq) and info.txt.[pastebin.com] Enjoy!
最后由 z 编辑于; 9 月 25 日 上午 3:30
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50