CREATE and FUCK your own AI GIRLFRIEND TRY FOR FREE
x

HTML Cheat code list for HTML games & short tutorial

TwoLayerBoom

New Member
May 9, 2017
6
7
The way to debug depends on what kind of protection a game is using, but generally I don't bother cracking the encryption.

In this case, if you check what is being tested you'd find if _testcode == setup.decrypt($mcCache), and then you'd see that the variable is set to (State.variables.mcCache = 'tpncsb';.

Then you can use the decrypt function itself to get the value:

View attachment 4052041

That said, when breaking an access code in a game, always look for the weakest point, which will usually be a boolean (true/false) statement.

For example, in this case you could simply replace if _testcode == setup.decrypt($mcCache) for if true, which would make any code work.

You could also overwrite the decrypt function from the console like SugarCube.setup.decrypt=function(){return 'a';}, which would set the correct passcode to the letter a.

There's usually a dozen ways to break each game. Always go with whatever is easiest/more comfortable to you.
Thanks A LOT!!! you're the GOAT <3
 
  • Red Heart
Reactions: Satori6

Odiosis

Newbie
Game Developer
Sep 27, 2024
33
82
LOL, I think this thread is a good place for people who wanted to start to learn frontend and JavaScript, but didn't find anything interesting to start with.
Thank you!
 
  • Like
Reactions: @LonelyWolf

Flash9786

New Member
Aug 30, 2018
6
8
Man I am unable to use the cheats in Debasing Grounds. It could be cuz I am dumb but like could you make a guide for that? It would be really helpful. Thanks a lot in advance!
 

Washington404

Newbie
Sep 20, 2019
63
33
Are you looking for something in specific?

There's way too much data in $data haha
$data[13] includes all the girls/npcs.
How would I go about finding all the girls data for myself? I want to lessen the grind by increasing the girls like stat
 

Izuocha123

Newbie
Nov 20, 2021
30
5
Satori6 Hello Satori, i dont know if you are still doing this html thing but if you are, can you please take a look at this. I just downloaded this new html game and followed your tutorial and tried to get money and change variable in game but nothing happened. After writing the code it shows undefined in the stat value. I have attached an image to show what is happening and the html file of the game. View attachment index.rar Screenshot 2024-10-28 215135.png View attachment index.rar View attachment index.rar
 

Izuocha123

Newbie
Nov 20, 2021
30
5
you broke the money object by setting it to a variable value. you need to edit SugarCube.State.variables.money.num money in this game is not a variable but an object with a subset of properies
Ohhh that's why, but i guess I did try to do the thing you suggested , ex I did this SugarCube.State.variables.money.num = 1000 and hit enter, then i checked if it worked or not and no change was there.

Really sorry lol, I dont know anything about javascript.

Thankyou for replying.
 
Jul 17, 2020
401
278
snip
I did this SugarCube.State.variables.money.num = 1000 and hit enter, then i checked if it worked or not and no change was there.
snip
you broke money object the only way to fix it is to load a save from before you broke it or start a new game.
it's like you made scrambled eggs, you can't just unscramble the egg and put the whites and yolk back in the shell
 

Crown98

Member
Jul 3, 2019
192
74
I didn't understand much of this post (not english native) BUT I think maybe this is the right place to ask this question.
Is there a way to unlock content behind paywall? Like there is this HTML game where the dev have a CRAZY paywall of almost $100 (I'm fine sub/pay for content, I did it a lot when I think they deserve it but this one is absolutely crazy)
If it's possible then I'll post the game HTML here if not then maybe I misunderstood the post lol