Event not working correctly

I've been looking through testing things and everything with the event(s) that i'm trying to make and for the life of me i cannot find what is wrong with it and it's driving me insane at this point.

Here's my problem: when i go into the area with the events, they get completely stuck on the second page permanently and the variables seemingly freezes too permanently

Here's the screenshots of the main event:
1693679687849.png

1693679732066.png

1693679763704.png

1693679800023.png

1693679732066.png

(Can't get spoiler tag to work, sorry)

And here's the common events (I think are ):
1693680898139.png

1693680931978.png

1693681138445.png


I hope someone can find out what's wrong or a solution to it with this event because i absolutely do not understand what's wrong with it
What's happening in the "SelectCreature" event? It's called from that second page, so it's probably the reason for the freeze.
What's happening in the "SelectCreature" event? It's called from that second page, so it's probably the reason for the freeze.
Sorry, i thought i had included that screenshot
1693727364642.png


SelectCreature is just a single plugin command, that's all so i doubt it's the cause of the problem
I only skimmed it and don't get what all the loops are for, but I didn't notice you turning ON self switch B anywhere?

EDIT: Oh, like the below poster noted, some pages continue outside screenshots, LOL.
Sorry, i thought i had included that screenshot
View attachment 275463

SelectCreature is just a single plugin command, that's all so i doubt it's the cause of the problem
Well, I guess it's not going to be as simple as pointing out that you can't have a transfer in the middle of an event or something. We'd probably need some more information then:
- If you create a new event that just runs OpenActorSelect and tells you the result, does it work?
- What's your configuration for SRD_ActorSelect?
- What are the parts of the events that are not visible in the screenshots? A few of them only include a top half.
- Is anything being printed in the console (press F8 to see it)?

EDIT: In general, it might be worth it to try and create the simplest event you can which still has this problem - you can copy this one to another map and keep removing things that don't remove the problem. This will be much easier to figure out.
- If you create a new event that just runs OpenActorSelect and tells you the result, does it work?
- What's your configuration for SRD_ActorSelect?
- Is anything being printed in the console (press F8 to see it)?

I think there's some confusion. OpenActorSelect and SRD_ActorSelect work fine, there's no problem with the plugin or plugin command. The problem lies with the value of the variables freezing (Which i've checked in the F8/debug menu)
(Entering first without any of the boxes/events being filled with an actor)
1693738975888.png


(Entering first with all boxes being filled)
1693739098934.png


(Entering with all the boxes being "filled" after first having entered when they weren't)
1693739200481.png


As shown in the third image for some reason they permanently stay at the value they started at.

What are the parts of the events that are not visible in the screenshots? A few of them only include a top half.
I did forget to post the bottom of the first page
I only skimmed it and don't get what all the loops are for, but I didn't notice you turning ON self switch B anywhere?
Where self switch B is turned on
1693739482438.png


As for the common event i didn't include the full thing because it's just a long conditional branch chain that does the exact same thing repeated again and again and has nothing else at the bottom of it so i thought it wasn't necessary to add that too.
EDIT: In general, it might be worth it to try and create the simplest event you can which still has this problem - you can copy this one to another map and keep removing things that don't remove the problem. This will be much easier to figure out.
I did try this for awhile but i couldn't find anything at all, no matter what i removed, added and changed it either gave me an error message or froze the values of the variables
I did forget to post the bottom of the first page
And also the bottom of the third page.

(Which i've checked in the F8/debug menu)
Ah, sorry, I guess it was F12 that open the console in MV, I meant that one.

Though those screenshots do tell us something very useful - namely that there are many copies of this event. And all of them are running the same parallel event, and none of them have a single wait command. I'm not sure what the interpreter does with those, but I doubt it's what you want. In reality there is no true parallel processing in MV, and without wait commands it might not even be possible for the interpreter to run more than one of these properly.

I did try this for awhile but i couldn't find anything at all, no matter what i removed, added and changed it either gave me an error message or froze the values of the variables
That sounds like a good thing though - it's the "freezing" the problem you're trying to diagnose? If you manage to create a simpler setup that also causes that problem it will be easier to pinpoint its cause.
And also the bottom of the third page.
Oh...Yeah i missed that one too apparently, here it is
1693748951302.png


Though those screenshots do tell us something very useful - namely that there are many copies of this event. And all of them are running the same parallel event, and none of them have a single wait command. I'm not sure what the interpreter does with those, but I doubt it's what you want. In reality there is no true parallel processing in MV, and without wait commands it might not even be possible for the interpreter to run more than one of these properly.
That is something i did not know. So if i'm understanding right for all of them to do it *almost at the same time i would have to do something along the lines of maybe making event 1 tell event 2 that it's done then event 2 tells event 3 it's done and bla bla bla?

That sounds like a good thing though - it's the "freezing" the problem you're trying to diagnose? If you manage to create a simpler setup that also causes that problem it will be easier to pinpoint its cause.
Yes, the freezing is the the problem i'm trying to fix/diagnose, i'll try again later today and see if i can make it simpler but i'm not sure i can make it simpler to any meaningful degree
That is something i did not know. So if i'm understanding right for all of them to do it *almost at the same time i would have to do something along the lines of maybe making event 1 tell event 2 that it's done then event 2 tells event 3 it's done and bla bla bla?
That is more or less how it works already - wait commands basically mean that we're done here for now, we can do something else now. If you don't have any, it's going to start from the beginning right when the next frame arrives. One of my guesses as to what could be going wrong here is that you have so many parallel events at the same time that the interpreter doesn't manage to go through all of them during a single frame, so some of them don't get ran at all.

It might also be useful if you specify what the other events here are. Are they exactly the same, or are some things different about them? And actually, does this problem only happen in this room with all those events, or does it still happen if you only have one?
SelectCreature is just a single plugin command
Then what's the point? Why take up another of your common event slots and call it separately into the stack instead of just putting that plugin command into the original event?

Ah, sorry, I guess it was F12 that open the console in MV, I meant that one.
No, you're right, both F8 and F12 work. But it looks like the OP installed a plugin that overwrites that key without knowing the default keybindings 😉
It might also be useful if you specify what the other events here are. Are they exactly the same, or are some things different about them? And actually, does this problem only happen in this room with all those events, or does it still happen if you only have one?
All of them are pretty much carbon copies with the difference being that I've changed all the variables (Box 1 uses variable 21 and 141, box 2 uses variable 22 and 142 and so on)

The problem only happens in this room because that's where the events are. I had not checked if it still happened with only one of them but i tried it and yes the values still freeze permanently with only one of them.

Then what's the point? Why take up another of your common event slots and call it separately into the stack instead of just putting that plugin command into the original event?
I don't really know to be honest, just kinda felt like doing it that way, no real reason for it tbh

One of my guesses as to what could be going wrong here is that you have so many parallel events at the same time that the interpreter doesn't manage to go through all of them during a single frame, so some of them don't get ran at all.
That does sound logical though i'm not as sure if that's the case considering when there was only one event it still froze the values but i don't really know
UPDATE!

I found the problem and i have found the solution

The problem was actually something i tried to solve in case it was the problem but it turned out that my solution was faulty, not that it wasn't the problem

The problem was very stupid, it was stuck on the self switch B page. As shown in the screenshots i had made a counter measure on page 4 on by turning self switch B off, however my event that turned on the switch to get to page 4 and then turn off the self switch WAS FAULTY! and didn't turn on that switch.

The solution was just to turn on that switch so page 4 got turned on and bla bla bla.

Thanks for all of the help nonetheless, i've both learned and found out a lot about the engine even if it wasn't part of the problem

Original thread: https://forums.rpgmakerweb.com/threads/event-not-working-correctly.160857/