HTML Cheat code list for HTML games & short tutorial

Odiosis

Newbie
Game Developer
Sep 27, 2024
39
138
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
Aug 30, 2018
10
11
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!
 
  • Like
Reactions: Satori6

Izuocha123

Newbie
Nov 20, 2021
43
13
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
 
  • Like
Reactions: Satori6

Izuocha123

Newbie
Nov 20, 2021
43
13
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.
 
  • Like
Reactions: Satori6

CurtimusPrime92

Active Member
Jul 17, 2020
534
402
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
 
  • Like
Reactions: Satori6

Crown98

Member
Jul 3, 2019
221
129
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
 
  • Like
Reactions: Satori6

Izuocha123

Newbie
Nov 20, 2021
43
13
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
ok, follow the tutorial and check the variables in the console ,usually the patreon code is there but if not then check the game's original forum and look at all the pages. maybe someone has posted the new patreon code if not then post the html game and tag the op who started this thread.
 
  • Heart
Reactions: Satori6

Satori6

Game Developer
Aug 29, 2023
515
1,200
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!
I'm back after a long time. I've updated the stuff for Debasing Grounds. Please let me help if you have issues with something in particular.
 

Satori6

Game Developer
Aug 29, 2023
515
1,200
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!
As for a guide, there isn't really a simple way to go about this game, mostly due to the awful code.

This is what it looks like:
temp.png

You can usually start by searching for keywords, or text from a particular screen to try and find the relevant parts.

Once you find it, it's a matter of figuring out what all of the obfuscated variables do, and once that's done, you can just make it do whatever you like. It's not particularly difficult - it's just time-consuming because half of this game's code is fluff in a poor attempt at obfuscating it. For example, all of those "!0x0" simply mean 1 or true.

That said, I'll see if I write a short guide on the basics for figuring out how to break non-obfuscated games.
 

Satori6

Game Developer
Aug 29, 2023
515
1,200
How would I go about finding all the girls data for myself? I want to lessen the grind by increasing the girls like stat
The simplest for that game is to look at the code and find what you're after.

NPC data is $data[13]

You can enter that in the console to find the names, but to figure out which specific value you're after, you need to look at the code itself. For example, based on this we know that $data[13][1] is the mother, and $data[13][1][2] is her corruption.
temp.png

If there's a specific value that you're after, I can help you finding it.
 

Satori6

Game Developer
Aug 29, 2023
515
1,200
Satori6
Could you write us a guide on how to which variables to change for Dryad Quest
Thanks
I don't know of a way to access variables from the console for that game, so what I do is to edit the file itself to enable debug or any other mode I want and simply edit stuff from there. I just updated it, btw.
 

Satori6

Game Developer
Aug 29, 2023
515
1,200
for(var v of sleepStats)delStat(v);for(var v of filthStats)delStat(v);

its not working can you fix it?
It's basically the same, they just changed where those values are stored:
for(var v in effectsObject.filth)delStat(v);for(var v in effectsObject.sleep)delStat(v);