So I’m trying to teach myself how to use quicktest and randomtest. I’ve loaded both through their html files on firefox and both came up with the same error. I’ve looked but I haven’t been able to figure out what it means. Here is the only thing that pops up:
Random Test
*****Seed 1
RANDOMTEST FAILED
this.resetCheckedPurchases is not a function
Quick Test
startup
executing
QUICKTEST FAILED
TypeError: this.resetCheckedPurchases is not a function
It sounds like you’re using a file that still has the *check_purchase command in it, which is something CoG uses for published games that are either paid for/no ads or free samples/ads with later chapters you have to buy.
Look for *check_purchase in the startup file you’re using and remove it, and any other lines of code related to it. You don’t need them.
Huh. Is there ANYTHING in the startup file that has anything to do with either check purchases, or resetting them, or anything? Startup should have *title, *scene_list, *create and then the game text. (Also *author but I leave it out because it doesn’t always work on my version.)
Sorry I can’t be more help. Hopefully somebody else will have a better idea. The only other thing I can think of is that you’ve got quicktest and randomtest in the wrong place. For me – and they work – I have quicktest and randomtest in the main choicescript folder (dfabulich-choicescript-0cdb371) and then the startup and other game files are in the web\mygame\scenes subfolder.
@distracteddad thanks for trying! I’m not sure what is wrong either, I have renamed the folder name but I doubt that would be it because then it wouldn’t be able to reach the text file.
@Fiogan ok, yeah, I could. The only thing is I’m helping others code their games so total I thing I have like 40 text files. I know really small but I was hoping for a quick fix. Also I have a mod installed so that will have to be redone.
Oh . . . I keep my game files in separate choice script folders so as to keep things tidy and non-muddled. Also because sometimes choicescript updates, so whenever I start a new game I make sure I’m using the latest version. Useful because games can take years to complete and such.
I do this as well. but this way I can keep them with the compiled html files as well. Also I can share the files with people I am working with by folder through dropbox
Ah, I see, I think. So when you run randomtest and quicktest, where are you running them from? And how?
I know I usually open quicktest.html in Firefox, by right-clicking on the file name from inside my choicescript folder for the game in question - but I’m not sure how that would work if I had several games worth of code in one choicescript folder. Does that mean there are multiple startup.txts within the same folder? Or am I misunderstanding what you’re doing?
Thanks @Fiogan you were right after all. The quicktest was only working for startup then it popped up with the same message so I re-downloaded the files from the site tested it and it worked. Cannot thank you enough. This will save me so much time.
testing process:
Re-downloaded. Moved to Dropbox. Works.
Copy and pasted into the index thing then changed some stuff then copy and pasted back in. Still works.
Changed name. Still Works.
Copy and pasted Original problematic text files. Works.
compiled file and inserted that into folder. Works.