cameroncondry / cbc-kitten-scientists

Add-on for the wonderful incremental browser game: http://kittensgame.com/web/
MIT License
114 stars 94 forks source link

everything(?) is broken? #315

Closed kohlka closed 3 years ago

kohlka commented 3 years ago

When I checked on my game today I realized that Kitten Scientists was no longer buying things on the Bonfire tab. It seemed like the other tabs were still working, so I tried refreshing the game a few times, restarted my browser, and finally even tried restarting my computer. Now none of the Kitten Scientists features are working. I'm currently playing a Winter & Atheism challenge run, if that matters, though it seemed to run just fine for about 100 years. I'm playing on the main branch of kittensgame (just http://kittensgame.com/web/).

Getting these error messages in the console log:

Uncaught (in promise) TypeError: Cannot read property 'controller' of undefined at Engine.upgrade (kitten-scientists.user.js:1726) at Engine.iterate (kitten-scientists.user.js:974) DevTools failed to load SourceMap: Could not load content for http://kittensgame.com/web/lib/system.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE 32[Violation] 'message' handler took ms DevTools failed to load SourceMap: Could not load content for https://kiwiirc.com/nextplugins/plugin-fileuploader.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE 25[Violation] 'setInterval' handler took ms 16kitten-scientists.user.js:1726 Uncaught (in promise) TypeError: Cannot read property 'controller' of undefined at Engine.upgrade (kitten-scientists.user.js:1726) at Engine.iterate (kitten-scientists.user.js:974) upgrade @ kitten-scientists.user.js:1726 iterate @ kitten-scientists.user.js:974 [Violation] Forced reflow while executing JavaScript took 33ms 6kitten-scientists.user.js:1726 Uncaught (in promise) TypeError: Cannot read property 'controller' of undefined at Engine.upgrade (kitten-scientists.user.js:1726) at Engine.iterate (kitten-scientists.user.js:974

Based on these, it seems like something kitten scientists uses (kiwiirc) might be down? Let me know if there's any other error messages I can grab or look for. And maybe I just need to wait out the outage. Thanks!

a-bland commented 3 years ago

Same here, Bonfire stopped working, getting the DevTools error, everything else still works though. I'm doing a normal run.

kohlka commented 3 years ago

Space and Trade tabs are now working for me; the rest still seems to be disabled.

JonathanBeverley commented 3 years ago

I don't use KS, but game.bldTab.buttons got refactored to game.bldTab.children and that's breaking all kinds of scripts.

vosechu commented 3 years ago

Thanks @JonathanBeverley! That gave me a clue on where to start.

For now, if you put this in the console, then load up KS, the bonfire tab works again:

this.game.bldTab.buttons = this.game.bldTab.children
jondoesntgit commented 3 years ago

Should be a one-line pull request then, right?

vosechu commented 3 years ago

Should be a one-line pull request then, right?

Ideally someone who understands the code of ks AND kittens would be able to construct a slightly less crude hack than what I proposed. :)