I'll copy and paste what I said in another thread to just so it is archived in a pinned thread.
Hi everyone. I just discovered something, though I am not certain if it will work in all cases, but it did for mine. Typically when we want to modify a game stat/variable, we would access the stat object directly through the window object, i.e. window.stat.varname = value. This has, for cogdemos, changed, though I am not certain if it was intentionally changed to deter cheaters, or it was an implementation they wanted to test for future updates to the cogdemos server. It seems that there is an extra layer/object you would need to go through before you can modify stats, which is the "0" object, note that this is a zero and not a capital letter o. This means that you can't access it directly since it is a numerical, i.e. window.0.stats.varname = value, but would have to index it instead. You have to enter window["0"].stats.varname = value. Everything else remains the same. I hope that helps someone, and gods speed (my cheaters).
Also, some of the games no longer allow you to view all the scene files available in one page (I believe it varies by author and what they allowed when submitting their work to cog games). So instead of entering "
https://cogdemos.ink/play/*/*/mygame/scenes/" to see all the available scenes, you need to instead enter "
https://cogdemos.ink/play/*/*/mygame/scenes/startup.txt", or "
https://cogdemos.ink/play/*/*/mygame/scenes/choicescript_stats.txt" instead, since most if not all cog games have them. From there you can search for keyword "*goto_scene" which should give you the file names of other scene files, such as "*goto_scene MainOne", which you can use to determine the other scene files, for the example provided, that would be "
https://cogdemos.ink/play/*/*/mygame/scenes/MainOne.txt". It is more tedious, as you have to manually search for the necessary files, but it works.
You could also use the devtools "Network" tab to get the scene files, but that would require you to play the whole game first (scene files are requested on a need by need basis, so if there is 10 chapters, and you have only played through 5, you probably won't see the chapters 6, 7, and etc. until they have been requested), then look through ALL the network logs to find the ones that call the scene files and get the files manually from there using the discovered name, that would for the example above be "
https://cogdemos.ink/play/*/*/mygame/scenes/MainOne.txt"., so I typically prefer the former method. Cheers.
HELP: How do I unlink the links above, they are invalid and a safety hazard as is?