i found a bug, i'm not surprised no one's found it cause it only appears when you encrypt the game files file when you make the game disk, when you got to do a transition, it can't find the screenshot file because the Data folder doesn't exist, i fixed it by making an empty folder called data but i think i know why the error was coming up, the screenshot is being made in the Data folder which becomes encrypted and you can't write to it any more unless you create another folder called Data.....i think you know what i am on about Fantasist, best course of action is to probably chnage the location of the screenshot file to the root directory
also, just to make a note to anyone who wants to burn their game to a CD and play it off from there, you can't if your using this script cause you can't write files to a CD without burning it all the time and in that cause, you need a Rewritable CD/DVD and to change this script to burn and erase the screenshot file every time it's made, i don't expect Fantasist to fix his script to do that cause if anyone on the forum thinks that's a good way to make your game run on a CD, then you obviously don't know why games install then