Status
Not open for further replies.

bishiba

Adept
Veteran
Joined
Apr 6, 2016
Messages
273
Reaction score
160
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
3,177
Reaction score
1,875
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
273
Reaction score
160
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,647
Reaction score
15,736
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 Posts

Latest Profile Posts

SF_People3_2 added!
index.php

Went to the doctor because I was actually sick and it was covered over with healthy people from a factory shift who all had to get negative covid tests to go back to work because one of their shift mates got it. Waited for several hours to find out that my low-grade fever, chills, light-headedness and fatigue were in fact covid...
And here I thought I've lost my music sense. Good exercise once in a while
Made Edits to a Character Art from 'Hibiki Katakura MV Monsters' (DLC), to Look More like One of My Own Characters. :LZScheeze:

Decided to retake an old concept I was working on long ago, first change I decided to tackle on right away is the sprites. Never been fan of the default chibis, so I edited it a bit... :kaoswt:
8YavqRj.png

Not sure if this will be the final take, but I like it more than the regular one.

Forum statistics

Threads
118,534
Messages
1,116,735
Members
155,568
Latest member
izalep
Top