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.

Cookie Monster conflicts with content mods

See original GitHub issue

If a mods adds upgrades and achievements after Cookie Monster loads, then CM.Sim.Upgrades[i] and CM.Sim.Achievements[i] in CM.Sim.CopyData might be undefined, triggering a crash.

This is particularly problematic with mods that use Klattmose’s CCSE, like American Season and my own Spiced Cookies, because CCSE finishes injecting hooks hundreds of milliseconds after it finishes loading. This interval is long enough for Cookie Monster to load, so simply setting Cookie Monster to load last is not enough.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

DanielNoordcommented, Nov 28, 2020

Good, then I’ll close it!

Not really a discord user myself, but perhaps I will take a look in the near future. If any other problems arise I am usually quick to respond to new issues!

DanielNoordcommented, Nov 23, 2020

I have only started looking into the code of CM as of today, so I must confess I am also not totally sure what the reasoning behind CM.Sim.CopyData is and why it is called repeatedly.

I have just rewritten a significant portion related to another issue so I will get back to you and this issue. At the moment your suggestion seems fine, so I will certainly consider it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cookie monster not working with csse mods. : r/CookieClicker
I'm playing on browser right now. Whenever cookie monster loads with a mod that loads csse the game freezes. Anyway to fix this?...
Read more >
Add-Ons - Cookie Clicker Wiki - Fandom
Cookie Monster is a useful and complex JavaScript add-on that can be implemented into Cookie Clicker. This add-on is for displaying calculated data...
Read more >
Guide :: How to use Cookie Monster add-on - Steam Community
This guide describes how to install Cookie Monster add-on on a ... Open "Options" tab, scroll down to "Mods", click on "Manage Mods"...
Read more >
Script Compilation Error with modded game | Page 4 | Forums
The error may be because Full Monster Experience conflicts with Ghost Mode; the script shows overlap between the two mod.
Read more >
The Sims 4 - Mods and game updates - EA Help
Note: If you have installed Custom Content, it's been disabled. Check that the game is working correctly, then close the game without saving....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found