Status
Not open for further replies.

bishiba

Adept
Veteran
Joined
Apr 6, 2016
Messages
278
Reaction score
163
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
7,616
Reaction score
5,370
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
163
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
45,495
Reaction score
16,403
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


New sprites in my project!
Updating my stream thumbnail collection here Streaming more game dev in 30 minutes or so. :LZSexcite:

Programming languages are amazing.

Someone needed help with a problem in C#. I've got 0 experience in C#. I read 0 lines of their code. I only knew what they wanted to do. I wrote a completely generic code in Javascript containing the generic answer. But they understood what I was doing and translated that to their code. 20 seconds later, problem solved.
been using ChatGPT to write a new story. I told it to :
generate a word like gundam for a false prophet super AI

it answered :
"NOVUS" as an acronym for "New Omnipotent Virtual Unit for Synthetics"? sounds similar to "gnosis," which is a term associated with knowledge and spiritual enlightenment, fitting the theme of a false prophet.


Five traps done, more on the way!
Stay tuned!

Forum statistics

Threads
129,811
Messages
1,205,404
Members
170,926
Latest member
apkchplaycom
Top