[–] duiker101 12y ago ↗ I am not really sure... what is going on here? [–] bsaul 12y ago ↗ Just wait a bit. Damn, i wish i could live that first moment again :)
[–] m00dy 12y ago ↗ for a candy hack :Dthis.candies.accumulated = 1000this.candies.current = 1000this.candies.max = 1000 [–] zhbohao 12y ago ↗ wow, it really hacks! how could u find this bug? [–] simias 12y ago ↗ Most if not all of the code runs on the client side, it's expected you can cheat pretty much anything in the game. [–] candyluver13 12y ago ↗ (function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })(); game.candies.current = 999999999999 [–] JonSkeptic 12y ago ↗ This game is kind of fun. I would feel bad cheating it. [–] blueblob 12y ago ↗ I was sad that I couldn't figure out how to run this. :-( It did not run for me in the web console in firefox:[10:15:03.006] TypeError: this.candies is undefinedbut then I realized how useful the lollypop farm is and was quite happy. [–] chocolate_ 12y ago ↗ It won't work now. See candyluver13's comment below for a working cheat. [–] m00dy 12y ago ↗ yeah , before typing you need to stop by pressing pause in the debugger.
[–] zhbohao 12y ago ↗ wow, it really hacks! how could u find this bug? [–] simias 12y ago ↗ Most if not all of the code runs on the client side, it's expected you can cheat pretty much anything in the game. [–] candyluver13 12y ago ↗ (function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })(); game.candies.current = 999999999999
[–] simias 12y ago ↗ Most if not all of the code runs on the client side, it's expected you can cheat pretty much anything in the game. [–] candyluver13 12y ago ↗ (function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })(); game.candies.current = 999999999999
[–] candyluver13 12y ago ↗ (function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })(); game.candies.current = 999999999999
[–] blueblob 12y ago ↗ I was sad that I couldn't figure out how to run this. :-( It did not run for me in the web console in firefox:[10:15:03.006] TypeError: this.candies is undefinedbut then I realized how useful the lollypop farm is and was quite happy. [–] chocolate_ 12y ago ↗ It won't work now. See candyluver13's comment below for a working cheat. [–] m00dy 12y ago ↗ yeah , before typing you need to stop by pressing pause in the debugger.
[–] ozh 12y ago ↗ Squirrel tips: don't overthink it. It's always much simpler than it first looks :) [–] ygra 12y ago ↗ Even for the Tic-Tac-Toe? [–] ozh 12y ago ↗ Yeah. Just try to think a bit outside the box... :) [–] fmax30 12y ago ↗ woah thanks , i literally had to think out of the box :).
[–] ygra 12y ago ↗ Even for the Tic-Tac-Toe? [–] ozh 12y ago ↗ Yeah. Just try to think a bit outside the box... :) [–] fmax30 12y ago ↗ woah thanks , i literally had to think out of the box :).
[–] ozh 12y ago ↗ Yeah. Just try to think a bit outside the box... :) [–] fmax30 12y ago ↗ woah thanks , i literally had to think out of the box :).
[–] ygra 12y ago ↗ Technically it's not ASCII, though, with characters like ¤ or ¨ appearing. [–] acemtp 12y ago ↗ Exact, We should perhaps change the title.
[–] minkowsky 12y ago ↗ Save the game in text, and replace all the false to true, then reload the game, and you get everything.
[–] acemtp 12y ago ↗ "You threw 2 600 candies on the ground" I should stop that but it's really funny, you should try
[–] andyhmltn 12y ago ↗ Does something happen? Because I have ~100 candies but I looked at the source and it's HUGE. What is this!? [–] acemtp 12y ago ↗ It's a game. When you have 30 candies, a button appears and you can start the game. more and more things unlock when you continue the game [–] andyhmltn 12y ago ↗ Doh, as it was a text based game I didn't think you could click so I kept trying to press R and was just thinking it was a joke haha
[–] acemtp 12y ago ↗ It's a game. When you have 30 candies, a button appears and you can start the game. more and more things unlock when you continue the game [–] andyhmltn 12y ago ↗ Doh, as it was a text based game I didn't think you could click so I kept trying to press R and was just thinking it was a joke haha
[–] andyhmltn 12y ago ↗ Doh, as it was a text based game I didn't think you could click so I kept trying to press R and was just thinking it was a joke haha
[–] candyluver13 12y ago ↗ (function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })();game.candies.current = 999999999999
[–] wil421 12y ago ↗ I am strangely addicted.This is kind of like those drug dealer/mobster games that I used to play on my TI-83. Where you would all of the sudden die for no reason or get arrested.
[–] JD557 12y ago ↗ Where can I report bugs?There seems to be a problem with the "octupus king crown with obsidian" that makes most levels impossible. [–] acemtp 12y ago ↗ He put this in the "cfg": Feel free to contact me at aniwey@gmail.com if you have any comment or question :)
[–] acemtp 12y ago ↗ He put this in the "cfg": Feel free to contact me at aniwey@gmail.com if you have any comment or question :)
[–] chrismorgan 12y ago ↗ The easiest way to cheat is to save and modify the values. Numbers can be set to `Infinity` as desired to save trouble... [–] acemtp 12y ago ↗ Cheating is damn easy but it kills the interest in the game. [–] guidopallemans 12y ago ↗ It's how i got rid of my cookie clicker addiction [–] moron4hire 12y ago ↗ I, uh, I wrote a bot... to play cookie clicker... at lightning speed. [–] chrismorgan 12y ago ↗ But if you do it that way, you don't get the "cheater" special achievement!
[–] acemtp 12y ago ↗ Cheating is damn easy but it kills the interest in the game. [–] guidopallemans 12y ago ↗ It's how i got rid of my cookie clicker addiction [–] moron4hire 12y ago ↗ I, uh, I wrote a bot... to play cookie clicker... at lightning speed. [–] chrismorgan 12y ago ↗ But if you do it that way, you don't get the "cheater" special achievement!
[–] guidopallemans 12y ago ↗ It's how i got rid of my cookie clicker addiction [–] moron4hire 12y ago ↗ I, uh, I wrote a bot... to play cookie clicker... at lightning speed. [–] chrismorgan 12y ago ↗ But if you do it that way, you don't get the "cheater" special achievement!
[–] moron4hire 12y ago ↗ I, uh, I wrote a bot... to play cookie clicker... at lightning speed. [–] chrismorgan 12y ago ↗ But if you do it that way, you don't get the "cheater" special achievement!
[–] chrismorgan 12y ago ↗ But if you do it that way, you don't get the "cheater" special achievement!
[–] pbobak 12y ago ↗ Has anyone gone past the dragon? What is the solution to the puzzle at the lighthouse? Very addictive game.
[–] slowmover 12y ago ↗ Was this written in javascript directly, or compiled to javascript from another language? [–] mischanix 12y ago ↗ Looks like it was written in TypeScript, e.g.: ///<reference path="Saving.ts"/> [–] anonova 12y ago ↗ The source is available at http://candybox2.net/source_code.html
[–] mischanix 12y ago ↗ Looks like it was written in TypeScript, e.g.: ///<reference path="Saving.ts"/>
42 comments
[ 3.2 ms ] story [ 95.6 ms ] threadthis.candies.accumulated = 1000
this.candies.current = 1000
this.candies.max = 1000
[10:15:03.006] TypeError: this.candies is undefined
but then I realized how useful the lollypop farm is and was quite happy.
game.candies.current = 999999999999
This is kind of like those drug dealer/mobster games that I used to play on my TI-83. Where you would all of the sudden die for no reason or get arrested.
There seems to be a problem with the "octupus king crown with obsidian" that makes most levels impossible.