That...is a very weird post, and a very weird request. Wouldn't it be a piece of cake to just copy the image file to another location on your computer, then paste it back as required?
Or rename it, including the file extension, if you want to hide it somehow?
But sure, you can open anything you want in a text editor and save the gibberish data, which I guess you could consider a string...
Very weird

I have absolutely no idea how that could be "useful in general"...
It may be a weird request, I'll grant you that. But, this is a war with my friend and I intend to win... Also, I am not sure if you understood that the program is on his computer. So he goes in and changes the cute doggie to the doge coin abomination that you see in the first post. I've tried to prevent it, but now I am on the verge of succeeding. I hope.
I was thinking yesterday about these "useful in general" situations and I realized it was ideas I came up with months ago. So the ideas were rather, lacking in programming understanding. Not that my understanding is flawless now, but it's better.
But as a reason, how about saving custom icons that are built within the game as strings to be collected later? Remember, I am stretching for a reason here...
At any rate, here is what I am doing at the moment. Sadly, trying to figure out how to wait for the image to be loaded has encountered quite a few issues...
I was reading
here and looked at
@caethyril 's suggestion, and I am now trying to implement it. If anyone sees this and realizes the issue, please tell me what I am doing wrong?
JavaScript:
KoriDNA = '#925036#af733d#c5c5c5#925036#af733d#925036#925036#cf975f#cf975f#af733d#cf975f#e1ba79#cf975f#cf975f#cf975f#e1ba79';
function loadKori() {
var wolf = ImageManager.loadSvActor("wolf");
wolf.addLoadListener(antiKoriHacking);
};
function antiKoriHacking(wolf) {
var koriCheck = "";
for (var x = 40; x < 44; x++) {
for (var y = 40; y < 44; y++) {
var color = wolf.getPixel(x, y)
if (color != "#000000") koriCheck += color;
}
}
if (koriCheck != KoriDNA) dogSafetyAlert()
};
function dogSafetyAlert() {
console.log("Dogs in your computer have mutated. Restore files in order to continue.")
};
The function is intended to be called each time he transfers. In the above scenario, most likely by calling loadKori().
This question is, however, actually useful to me, as I currently lack the understanding of how to wait for images to load...