Status
Not open for further replies.

bishiba

Adept
Veteran
Joined
Apr 6, 2016
Messages
278
Reaction score
161
First Language
Swedish
Primarily Uses
N/A
So, this is something that could be useful in general, which is why I am asking it. I don't like wasting time in general, but since I have been wondering about this type of thing for a long time I figured this would be the best time to actually ask the question. Sooo, can I somehow store a character's battler as a string. My playtesting pal doesn't respect dogs, he keeps changing the dog member to this...
1638825204468.png

And I guess it's not the worst thing ever, but it has kind of become a war between us when he is play testing. I try to protect the dogs innocence and he keeps making the little doggie suffer :( It's a war crime I tell you.

So, can I store the actual picture data as a string and extract it and set it as a battler?

Best regards,
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,031
Reaction score
2,457
First Language
English
Primarily Uses
RMMV
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 :rolleyes: I have absolutely no idea how that could be "useful in general"...
 

bishiba

Adept
Veteran
Joined
Apr 6, 2016
Messages
278
Reaction score
161
First Language
Swedish
Primarily Uses
N/A
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 :rolleyes: 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...
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,715
Reaction score
15,838
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

When you start recoloring your character because lawsuits are expensive:

lawsuits are bad.png
Been busy in Fort Myers and I'm spending tonight and tomorrow in Orlando. Then I go home on Tuesday by train (I take the Amtrak) and rest up before work on Wednesday.
I'm going to make a thread on the forum asking an interesting question... about the next RPG Maker!
#trafficjam #rm2k #catepillar
38bkNHz.gif

Forum statistics

Threads
121,840
Messages
1,144,622
Members
160,100
Latest member
Unknown-Tale
Top