What's new
Choice of Mods

Join our amazing community to find Choicescript games and modifications to improve your gameplay!

Tutorial To Save and Mod Dashingdon and Cogdemos Wip With Links

Cat 91

Member
Member
I love playing the demos, but I hate how some games don't have save files and I love to be able to mod stats. I found a way to do both and I'll share it with everyone and what you'll need. This has been tested on a phone but it should work for PC as well.

WARNING:DO NOT LET STATS GO OVER 100%, YOU WILL GET ERRORS!!!!! ALSO, YOU WILL OCCASIONALLY BE FROZEN ON THE THE FIRST PAGE, JUST REFRESH AND TAP TO THE NEXT PAGE AS FAST AS YOU CAN, YOU SHOULD BE FINE AFTER THAT

UPDATE:add /mygame to the end of the cogdemos url and the save and mod editor should work again. I only tried a couple of games though

1. Download Firefox (I recommend iceraven because it's faster and runs on Mozilla software, which is required)

2. Go to Firefox add-ons and install ChoiceScript Game Tools to get your save manager! You can check the other features that come with it, like a back button

3. Also download Mobidevtools so that you can input the codes for the mod menus in the developer console

4. For the mod menus, you'll need code from the ChoiceScript stats modifier website

5. Go to Dashingdon or cogdemos and choose a wip to play

6. In iceraven browser click the three circles at the top right corner add click add-ons

7. Click on Mobidevtools to have the developer console pop up on the screen

8. Copy the load.js-Numbers code to the developer console in iceraven to edit percentage stats on the ChoiceScript modifier site. Hit execute

9. Copy the load.js-Strings to the developer console to edit numerical stats like money and item amount from the ChoiceScript modifier site. Hit execute

10. You can only use one code at a time, so if you need to use another one, simply refresh the page and copy it to the dev console. The save editor saves the page you were last on

And there you have it! If this helps one person I'll be overjoyed, let me know how this works for you!
 
Last edited:

Foulwarden

Well-known member
Member
I love playing the demos, but I hate how some games don't have save files and I love to be able to mod stats. I found a way to do both and I'll share it with everyone and what you'll need. This has been tested on a phone but it should work for PC as well.

WARNING:DO NOT LET STATS GO OVER 100%, YOU WILL GET ERRORS!!!!! ALSO, YOU WILL OCCASIONALLY BE FROZEN ON THE THE FIRST PAGE, JUST REFRESH AND TAP TO THE NEXT PAGE AS FAST AS YOU CAN, YOU SHOULD BE FINE AFTER THAT

1. Download Firefox (I recommend iceraven because it's faster and runs on Mozilla software, which is required)

2. Go to Firefox add-ons and install ChoiceScript Game Tools to get your save manager! You can check the other features that come with it, like a back button

3. Also download Mobidevtools so that you can input the codes for the mod menus in the developer console

4. For the mod menus, you'll need code from the ChoiceScript stats modifier website

5. Go to Dashingdon or cogdemos and choose a wip to play

6. In iceraven browser click the three circles at the top right corner add click add-ons

7. Click on Mobidevtools to have the developer console pop up on the screen

8. Copy the load.js-Numbers code to the developer console in iceraven to edit percentage stats on the ChoiceScript modifier site. Hit execute

9. Copy the load.js-Strings to the developer console to edit numerical stats like money and item amount from the ChoiceScript modifier site. Hit execute

10. You can only use one code at a time, so if you need to use another one, simply refresh the page and copy it to the dev console. The save editor saves the page you were last on

And there you have it! If this helps one person I'll be overjoyed, let me know how this works for you!
Can you clarify on number 8? Also pictures would help immensely.
 

God

Well-known member
Member
Btw you can just copy n paste one of the cheat masters and it would give you a mod menu where you can edit everything including the strings
 

KratosTheTrueGod

Active member
Member
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).

kratos-anger.gif

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?
 
Last edited:

KratosTheTrueGod

Active member
Member
Ios? Never mind
You would need devtools to use the method I mentioned above, but I am not sure how to get that for IOS. I know that for android you could use kiwi browser, but that may not work due to Apples restrictions not allowing third party browser engines. I tried searching, but what I have found is that you would need to jump through hoops to get it working. You can try "https://apps.apple.com/us/app/web-inspector/id1584825745" (I have never used it though, since I don't have an IOS device, and don't know how it works nor who the owner is, so only test it if you believe it is safe) and see if devtools (specifically console) works, otherwise I am out of ideas.
 

Addylan

Well-known member
Member
Nice, thanks for sharing this, fam. Had a blast with some of my favorite wips.
I especially liked the view code feature, saves a lot time for stuff. Honestly, I think this deserves a highlight/sticky post something so other players won't miss this out.
 

Cat 91

Member
Member
Nice, thanks for sharing this, fam. Had a blast with some of my favorite wips.
I especially liked the view code feature, saves a lot time for stuff. Honestly, I think this deserves a highlight/sticky post something so other players won't miss this out.
Thanks! I originally posted this in another thread back in October but almost no one saw it. I think a lot of members would LOVE this
 

Bob

Member
Member
You would need devtools to use the method I mentioned above, but I am not sure how to get that for IOS. I know that for android you could use kiwi browser, but that may not work due to Apples restrictions not allowing third party browser engines. I tried searching, but what I have found is that you would need to jump through hoops to get it working. You can try "https://apps.apple.com/us/app/web-inspector/id1584825745" (I have never used it though, since I don't have an IOS device, and don't know how it works nor who the owner is, so only test it if you believe it is safe) and see if devtools (specifically console) works, otherwise I am out of ideas.
 

Bob

Member
Member
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).

kratos-anger.gif

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?
Can you please give us pictures on window["0"].stats. part I'm struggling with this one and using it mobile
 
Top