[Solved] Complicated issue

Please see this for a better explanation.

Spoiler: Old Post
I honestly dont know whats going on with my Steam Version RPG Maker MV. The game I am creating, things that I implemented early on are breaking and I don't know why since I didn't change anything.
The only thing I can think of is that I had to Refresh my PC due to one of my games Anti-Cheat Engine detecting a suspicious program I couldn't find.

Some of the things happening are:

Events with modifiers such as "Fadein Screen" don't work and it teleport you to the map but its all black. No tint is being used. A weird fix was to have another event on the map being teleported to have a parallel event that faded in the screen.

Another issue is Greater Than and Less Than conditional Branches are being reversed.

I have no idea why these things are happening but its causing my game problems.

Things I've tried:

Turning off all plugins and seeing what happens
Deleting the event and recreating it
Making a new project and transferring the .js files over to update the project.

Spoiler: Pictures
[IMG]https://pix.yikes.xyz/images/2020/02/03/Weird-error.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/03/Weird-error1.png[/IMG]

Help me please. I am super frustrated and I came so far with my game and this issue makes me want to trash the entire thing.
Not sure what I"m looking at here. I think you might have some contradictions.

"If Light Job Change Finish Quest If Off" and then it checks the next thing. It looks like to even turn the Light Job Finish Quest Switch off... it already needs to be off to begin with

I'm confused. I think the issue you are having is likely due to something you did with eventing. Adding a new event somewhere that darkens the screen, or some of these strange "redundant" commands you're giving the engine via event.

Likewise, what you're using is "Level is greater than or equal to 15". So, if they're 15 it works, and if they're higher than 15 it works. However, there's yet another issue. Every single character has to be Level 15 or above before anyone even changes to the Light class you're asking them to.

What you've done is create a massive chain of conditionals in which every single one needs to be checked before you even get the result.

Likewise, you could probably just call the text without the "text middle" switch. I'm not sure what purpose that switch is serving, especially with an "Else" case. It only checks for the conditions or the "Else" case if you tell the system to call the vent (by touch, by item use, by event, by clicking on it, etcetera). It would not "repeat" the text unless your event is repeating because you have it set to Parallel Process or something.
You really haven't given much information to go on. You say things are happening weirdly "for example" but the screenshots you're providing don't have anything to do with those things.

The screenshot is only a small snippet of the event, leaving other very important stuff out (everything outside of the event contents panel), and you haven't shown what happens if any of the conditions are true except Sariel's level is less than 15, the commands you have in the "else" branch in the screenshot will run. But do you have an "else" branch to handle what happens if Marsha's level is less than 15, or if Therese's level is less than 15?

The way you have it structured, you would need 8 "else" branches to handle all those conditions, and you've only shown one. You may need to go back and just think about all the different combinations here and what you want to happen, and restructure the event.

For the event given, what is the status of all those conditions - which ones are true, and which ones aren't? What are you expecting to happen? What IS happening?

What's the second screenshot for? You've also left out important information from that one too. When does it run? What do you expect to happen? What IS happening?
Not sure what I"m looking at here. I think you might have some contradictions.

"If Light Job Change Finish Quest If Off" and then it checks the next thing. It looks like to even turn the Light Job Finish Quest Switch off... it already needs to be off to begin with

I'm confused. I think the issue you are having is likely due to something you did with eventing. Adding a new event somewhere that darkens the screen, or some of these strange "redundant" commands you're giving the engine via event.

Likewise, what you're using is "Level is greater than or equal to 15". So, if they're 15 it works, and if they're higher than 15 it works. However, there's yet another issue. Every single character has to be Level 15 or above before anyone even changes to the Light class you're asking them to.

What you've done is create a massive chain of conditionals in which every single one needs to be checked before you even get the result.

Likewise, you could probably just call the text without the "text middle" switch. I'm not sure what purpose that switch is serving, especially with an "Else" case. It only checks for the conditions or the "Else" case if you tell the system to call the vent (by touch, by item use, by event, by clicking on it, etcetera). It would not "repeat" the text unless your event is repeating because you have it set to Parallel Process or something.

Like I said, it's complicated.

So, I have items (Light Path Item/Dark Path Item) that can change your class instantly or you would need to go through a quest to obtain it, at the price of a rare drop.

What it's doing (supposedly) is looking to see if you have used the Dark Path Item, then seeing if you accepted the Dark Path quest, then checking if the final switch of the light path quest (which grants you the class change) is off, then checks to see if the Light Path Item has already been used (there is a switch being turned on at the end of the event if all are true), the it's SUPPOSED to check to see if your level 15 or over, and if all 9f these things pass, you can instantly change classes without going through a quest. Then Light Path Item is on which prevents you from using the item again due to the previous check.

Problem is, it keeps telling me that I need to be over level 15 and the level is 17. I have variables being defined right at the beginning that track levels, which are supposedly being called here.

Frustrating, I know.

As for the text middle switch, it uses a plug-in that changes the text to the middle of the text box instead of it being left alinged.
You really haven't given much information to go on. You say things are happening weirdly "for example" but the screenshots you're providing don't have anything to do with those things.

The screenshot is only a small snippet of the event, leaving other very important stuff out (everything outside of the event contents panel), and you haven't shown what happens if any of the conditions are true except Sariel's level is less than 15, the commands you have in the "else" branch in the screenshot will run. But do you have an "else" branch to handle what happens if Marsha's level is less than 15, or if Therese's level is less than 15?

The way you have it structured, you would need 8 "else" branches to handle all those conditions, and you've only shown one. You may need to go back and just think about all the different combinations here and what you want to happen, and restructure the event.

For the event given, what is the status of all those conditions - which ones are true, and which ones aren't? What are you expecting to happen? What IS happening?

What's the second screenshot for? You've also left out important information from that one too. When does it run? What do you expect to happen? What IS happening?

I need to come back tomorrow. This thread was last minute before I went to work so I need to explain everything in detail tomorrow when in have time. It includes plugins and other stuff.

Sorry if these seems confusing, it's just what goes in in my brain when I think of how to implement event systems.
Okay... gonna backseat event here. It sounds like it's all built in the most convoluted way possible.

Create your items. Have their effect be "Call Common Event". Then, you don't need to check if the item has ever been used, don't have to waste a variable to track it, don't have to flip a switch or check if switches are flipped. Once the Common Event is called...

For every single "Conditional Branch", you want to have an Else Case. Very rarely, when designing an event, do you not want this "Else" Case. At the very least, it helps you troubleshoot the event. If you don't meet a specific condition, it will kick out the message of which one didn't work properly. Think of it as "Troubleshooting".

Going only by what you have posted in your pictures (which isn't the whole story... I'd like to see the entire event as well as the entire event box and any other events that use these switches and variables, including ones that initially set them), it looks like you only get the "Else" case if Sariel isn't level 15. However, the event seems to be cut off, and there may be other "Else" cases below which provide the exact same message.

Without knowing which plugins you're using, the best I can come up with is that you've overcomplicated your events because you were thinking what you wanted was complicated when it was somewhat simple.

For example, with my "common event call", you could do all your Conditional Branches in there and then simply remove the item once it's all done. And, if the event doesn't run to its conclusion, the item simply stays in the inventory. Likewise, you would probably only need a single switch to track that the entire event even worked "Light Side = On" or "Dark Side = On". You don't even need to ever turn it off.

You can likewise have this switch being "on" prevent the event from ever running again if they obtain the item again.

It might be easier to pinpoint the exact problem if you tell us the last thing you edited and worked on just before you noticed things going wonky.
The event you got will only run when ALL of them are over 15, as you nested them all inside each other. Is every single one of them over 15th level? If not it will not run and you will be short levels.
First of all, calm down! Don't trash your project!

As the users above pointed out, your event building process if very confusing and it seems to me that what you are dealing here is a logical issue in your event! Why don't you try to better organize it? You don't need all those conditional branches one inside the other! The Engine will read all conditional during the process of an event and will activate all of them (if the criteria is found).

Secondly, you mentioned "wierd things" occuring with your engine. Have you tested in a new project?

Events with modifiers such as "Fadein Screen" don't work and it teleport you to the map but its all black. No tint is being used. A weird fix was to have another event on the map being teleported to have a parallel event that faded in the screen.

In this new project, everything that you mentioned in this quote also occured?
Sorry it took so long to get back. I knew things where gonna explode so I just took a backseat and watched it erupt.

So now that its kind of cooled down, I wanted to take this one step at a time.

First thing I wanted to fix was the black screen issue.

Spoiler: Pictures
The Issue in question:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Black-Screen.png[/IMG]

Event being run:
[IMG]https://pix.yikes.xyz/images/2020/02/07/Issue1.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Issue1.1.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Issue1.2.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Issue1.3.png[/IMG]

Spoiler: Explanation of my systems
So you are probably wondering "What is all of this?". Let me explain, in detail.

The first switch (#51) is using a plugin time system. Specifically, Orange Time System.

The second switch (#900) is a Manual time system as seen here:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Internal-Time-System.png[/IMG]

I use this to sync up with Achievements that go based on time played.

Then you see the Orange events that are being run, which are these:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Weekend-Buff1.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Weekend-Buff1.1.png[/IMG]

These stop at 12am local time on Monday and start 12am Local Time Staturday. The buff consists of:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Weekend-Buff-State.png[/IMG]

The next switch (#18) seen is Center Text. This centers the text within the text box using a plugin. I generally use this to make abrupt statements or location placards.

The next switch (#85) seen is the Achievements Switch (as previously mentioned). This uses
waynee95's Achievements Plugin. I use this for various Achievements in the game.

The next switch (#35) seen is the Class Level switch. This uses a common event:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Class-Change-15.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Class-Change-15-1.png[/IMG]

This is literally just a notification of when you turn level 15 that a class change is available for you.

The next switch (#86) is used for patching things that cannot be turned on in the beginning of the game, so it uses a common event that does it for you. This one is a complex system that uses granting and using items with the common event.

Firstly:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Patch-Grant-1.png[/IMG][IMG]https://pix.yikes.xyz/images/2020/02/07/Patch-Grant-1.1.png[/IMG]

This grants you the patch item. You can then use the item, then this happens:

[IMG]https://pix.yikes.xyz/images/2020/02/07/Patch-Grant-2.png[/IMG]
[IMG]https://pix.yikes.xyz/images/2020/02/07/Patch-Grant-2.1.png[/IMG]

It then runs in a circle in case its needed again with updates.

Then you see that I enable Stat Allocation (Yanfly plugin) and then self switch B which is just a blank event.

I dont know how to fix it and I have no idea whats causing it
I don't believe there's anything in that event that would cause the screen to stay black - it looks fine to me. I think there's something else making it go black. An event on the new map, set to parallel process maybe? I would look for any event on the current or new maps, or a common event, that's triggered by any of the switches you're turning on in that cutscene. Or it might even just be a parallel process event on the map you're transferring to that doesn't have any conditions at all.

I would change that event to autorun and get rid of the menu access commands. It's a cutscene - don't want it on parallel process.

You've shown 2 events here, or you've made changes to it between taking the screenshots. The first event has 3 pages, and the second only has 2.

Does the "WAKE UP" text show? If the screen is faded out, are you sure you're actually transferring to the new map? When you get there, can you access the menu okay?

Looks like you've got a few plugins. If you get to this point and hit F8 and go to the Console tab, are there any error messages listed there?

If you still can't find it, create a brand new project with 2 maps, no plugins, and JUST that one event. Adjust the transfer to go to the second map, put your starting position on the same map as this event, and see if it plays properly, or if the screen is still faded out.

I am so mad at myself. The Autorun change did the trick. I am SOOOOO mad at myself. I made this more complicated then it should be.

To answer your questions tho:

I would change that event to autorun and get rid of the menu access commands. It's a cutscene - don't want it on parallel process.

I did this so people dont accidentally bring up the menu screen when viewing the cutscene. I reenable it once its over.

You've shown 2 events here, or you've made changes to it between taking the screenshots. The first event has 3 pages, and the second only has 2.

This was done after taking the first screen shot as it was just the things from "Change Transparency: Off" to "Fadein Screen" on the 2nd event as testing to see if it would work.

Apparently this also fixed my issue with the greater than/less than reversal. Weird, I know.

Ill make another thread if something else comes up. Till then, I will mark this as solved.

Thanks Shaz. 🙂
The big difference between an autorun and parallel process is that an autorun takes control away from the player. They CAN'T access the menu until the event is finished and turned off. With a parallel process event, the player may be able to move around between dialogue windows, which could really mess up things if your cutscene consists of characters moving and interacting with each other.

To be honest, I'm not seeing how changing it from parallel process to autorun could possibly affect either of your issues. I'm glad it appears that it has, but it wouldn't surprise me if they turn up again. I'll keep my fingers crossed for you 🙂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/solved-complicated-issue.117908/