question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CookieMonster data API / Expose data variables

See original GitHub issue

Some time ago, I wrote myself a little script which used CookieMonster’s pp data to determine which buildings to buy automatically. To achieve this, I had access to many different global variables like

CM.Cache.min
CM.Cache.Objects
CM.Cache.Upgrades
//etc.

These variables are all gone now, unfortunately. I also already recursively went down the tree of objects in the current game to see if some of these still exist or are accessible, but I can’t seem to find them.

Are these variables somehow still accessible somewhere or won’t I be able to extract these data anymore in the future?

If, with the current system, they are not available, consider this as a feature request, which would help me and maybe some other users as well 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DanielNoordcommented, Apr 15, 2021

The mod has indeed been changed to no longer automatically expose such variables.

But this is indeed a nice feature request. I will try to find something to make this more intuitive!

0reactions
ThexXTURBOXxcommented, May 9, 2021

Got my script working again with the new API, thank you very much 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

baron816/cookie-monster
Fetching Data with AJAX Requests; Integrating with an API Backend ... Any other variables except NODE_ENV will be ignored to avoid accidentally exposing...
Read more >
Using the Data API for Aurora Serverless v1
The Data API doesn't require a persistent connection to the DB cluster. Instead, it provides a secure HTTP endpoint and integration with AWS...
Read more >
ARMS Data API
This API resource gets all States and the metadata and variables available for each of the States. Input fields: not needed. Method: supports...
Read more >
API Dimensions & Metrics | Google Analytics Data API
API Name UI Name Description browser Browser The browsers used to view your website. city City The city from which the user activity originated. date Date...
Read more >
Available APIs
We plan on adding all of our publicly available data sets. Here you'll find which of our many data sets are currently available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found