[RPGMV] Variable not going up

Hello, i'm trying to make a weekday system in my game, and the weekday variable simply doesn't go up unless i do it in a very specific way.
Here are the relevant event pages.
weekdays.png
timeofday.png
morningset.jpg

It only works if i set up an specific event to it, like so:
todayiwill.jpg

What am i doing wrong?
Hm... What are the settings of your events?
where to start the list?

first point is that parallel processes loop, which means that unrestricted that common event counts up the weekday sixty times per second as long as the "isnewday" switch is on - which is extremely bad.

I would change that common event to trigger = none and remove the switch condition, and then at every place where you control that switch to on, replace that control switch command with a call common event command to this event.

then start sorting out the rest of your events to follow, and show us the event where you trigger that "is new day"
where to start the list?

first point is that parallel processes loop, which means that unrestricted that common event counts up the weekday sixty times per second as long as the "isnewday" switch is on - which is extremely bad.

I would change that common event to trigger = none and remove the switch condition, and then at every place where you control that switch to on, replace that control switch command with a call common event command to this event.

then start sorting out the rest of your events to follow, and show us the event where you trigger that "is new day"
That is why the isnewday switch is only way for one... tick? It counts only one day. Everything else on that event works correctly except the weekday, which i really find strange.
But alright, going to try your suggestion.

Hm... What are the settings of your events?
Here. genesis_end is activated at the very start of the game and is already activated according to my debugger.
Don't mind the passionate names.
Screenshot_2.jpg
Maan, it's really bad to be honest...
Parallel / Autorun is an indefinite loop. Why do you need the content to be repeated on the first place? If you want it to only happen once, just make it a regular common event then call it accordingly from the event.

If your issue is why the weekday variable ain't going up, I bet it has something to do with the content of "other parallel process" event you haven't mentioned...

Do you really need em to be parallel? Because the consequences of using them is to make things complicated.
I think i should include those 2 pieces of media.
This one is a event that i forgot to include.
Screenshot_3.jpg

This one is another method i tried and also didn't work. It doesn't use the isnewday switch, instead activating when the timeofday is above 5.
And a video.

The strange thing is that eveyrthing in that event works as planned except the weekday counter, as shown in the video.
where to start the list?

first point is that parallel processes loop, which means that unrestricted that common event counts up the weekday sixty times per second as long as the "isnewday" switch is on - which is extremely bad.

I would change that common event to trigger = none and remove the switch condition, and then at every place where you control that switch to on, replace that control switch command with a call common event command to this event.

then start sorting out the rest of your events to follow, and show us the event where you trigger that "is new day"
Ok, i tried what you said and it still didn't work. If i put in the weekday +1 command in the place of newday on and off, the weekdays will go up constantly.

Maan, it's really bad to be honest...
Parallel / Autorun is an indefinite loop. Why do you need the content to be repeated on the first place? If you want it to only happen once, just make it a regular common event then call it accordingly from the event.

If your issue is why the weekday variable ain't going up, I bet it has something to do with the content of "other parallel process" event you haven't mentioned...

Do you really need em to be parallel? Because the consequences of using them is to make things complicated.
Sorry if it's bad, i made this when i started on rpg maker around 1 month ago.
I know that parallel and autorun are an indefinite loop, that is why they are only active when isnewday is only on, and it is only for a short time.
I already checked all my other parallel processes in the common event lists and the debug room. The fact that i can increase it if i set it manually with the debugger or by making a specific event indicates that there is no event setting it down back to it's original number.
I think it's time to go back to zero for two main reasons:
1) as you just learned yourself, it is EXTREMELY bad to try to connect multiple parallels and autoruns through switches. That always results in timing problems if someone tries to do that for a cutscene, and doing it to create a time system itself that is doubly bad.
With one single exception (that has nothing with what you want to do) all things work better if they are combined into a single event. as such you need to combine the entire time system including changing switches and counting days into ONE event and it will work much better.

2) you still haven't shown us the very basic event where the time is created in all your screenshots.
We can't even tell if your time goes up automatically by waits, or if your time reacts to the player by counting actions or steps.

So I suggest you tell us what your time is supposed to count (waits, actions, whatever) and then we start to help you building a working time system with a single common event, without the mess you have above.
Here. genesis_end is activated at the very start of the game and is already activated according to my debugger.
Don't mind the passionate names.
Ok, as Andar said,
I think it's time to go back to zero for two main reasons:
1) as you just learned yourself, it is EXTREMELY bad to try to connect multiple parallels and autoruns through switches. That always results in timing problems if someone tries to do that for a cutscene, and doing it to create a time system itself that is doubly bad.
With one single exception (that has nothing with what you want to do) all things work better if they are combined into a single event. as such you need to combine the entire time system including changing switches and counting days into ONE event and it will work much better.

2) you still haven't shown us the very basic event where the time is created in all your screenshots.
We can't even tell if your time goes up automatically by waits, or if your time reacts to the player by counting actions or steps.

So I suggest you tell us what your time is supposed to count (waits, actions, whatever) and then we start to help you building a working time system with a single common event, without the mess you have above.
It's really hard to connect parallel events with switches. I agree, you should put everything in one event. And, yes, where is the basic event and what is it counting?
I think it's time to go back to zero for two main reasons:
1) as you just learned yourself, it is EXTREMELY bad to try to connect multiple parallels and autoruns through switches. That always results in timing problems if someone tries to do that for a cutscene, and doing it to create a time system itself that is doubly bad.
With one single exception (that has nothing with what you want to do) all things work better if they are combined into a single event. as such you need to combine the entire time system including changing switches and counting days into ONE event and it will work much better.

2) you still haven't shown us the very basic event where the time is created in all your screenshots.
We can't even tell if your time goes up automatically by waits, or if your time reacts to the player by counting actions or steps.

So I suggest you tell us what your time is supposed to count (waits, actions, whatever) and then we start to help you building a working time system with a single common event, without the mess you have above.
Ok, i can go back to zero, going to see if it works.
But first, let me explain the system.
Screenshot_5.jpg

There is a stageofday variable that increases with certain actions, like hanging around with a party member. It goes from 0 to 5. When it's higher than 5, then a line subtracts 5 from the stageofday variable, bringing it to 0. There is a time period before the timeofday gets subtracted, and that time is when the day count goes up.
I use something similar to count weeks, months and years.
Here, take a look at the common event that advances time. The common event is setted up at a normal event with nothing else in it.
And here is the event where the time is set, if that is what you meant.
Screenshot_6.jpg

It deletes itself after his job is done.
Sorry if i am not understanding what you guys are saying, i can be kind of dumb some times and thanks for having patience with me.
OK, time by action count. It doesn't matter what the player has to do to count up as this will always be handled the same way.

Most important thing to remember:
NEVER use parallel processes for any system with action count. Parallel processes are ONLY if there is a real time mechanism involved (that means a wait that counts up time even if the player does nothing).

What you need now is a common event to check the results of any countup, that means any case where time is increased.
You should call that event something like "timecheck" or so, it should be trigger = none.

And now you need another rule fixed into your mind:
whenever you count up this timeofday, the very next command needs to be "call common event timecheck".
If you have any event anywhere that counts up the timeofday without calling the timecheck, then that event is wrong and can cause bugs.

So you now have to build the timecheck common event.
Most of the things it needs to do you have scattered through the different event screenshots, and I don't have the time to construct that for you.
Basically it needs to check what has to happen in the game as a result of that timecount, and correct any overflow of days, weeks, months or whatever you use. This will be your main and only time control event.

EDIT: To make it more clear, in the event above that command "call common event timecheck" needs to be added after the control variable timeofday+=6 and before the Play ME.
And that goes for every other event where you have a control variable timeofday plus anything.

EDIT2: and the autorun to set the date in the last screenshot can stay, it has nothing to do with the time control itself as it only sets the starting date. There are other ways to do this, but this one is OK as well.
I redid the code and now it works. I don't know what i did different from other tries (i tried many things) but that seemed to do it. An admin or mod can close the thread if they see it as necessary.
chronocontinumv2.png

OK, time by action count. It doesn't matter what the player has to do to count up as this will always be handled the same way.

Most important thing to remember:
NEVER use parallel processes for any system with action count. Parallel processes are ONLY if there is a real time mechanism involved (that means a wait that counts up time even if the player does nothing).

What you need now is a common event to check the results of any countup, that means any case where time is increased.
You should call that event something like "timecheck" or so, it should be trigger = none.

And now you need another rule fixed into your mind:
whenever you count up this timeofday, the very next command needs to be "call common event timecheck".
If you have any event anywhere that counts up the timeofday without calling the timecheck, then that event is wrong and can cause bugs.

So you now have to build the timecheck common event.
Most of the things it needs to do you have scattered through the different event screenshots, and I don't have the time to construct that for you.
Basically it needs to check what has to happen in the game as a result of that timecount, and correct any overflow of days, weeks, months or whatever you use. This will be your main and only time control event.

EDIT: To make it more clear, in the event above that command "call common event timecheck" needs to be added after the control variable timeofday+=6 and before the Play ME.
And that goes for every other event where you have a control variable timeofday plus anything.

EDIT2: and the autorun to set the date in the last screenshot can stay, it has nothing to do with the time control itself as it only sets the starting date. There are other ways to do this, but this one is OK as well.
I'm still going to take your advice about parallel events and stuff. Timecheck too.
Once again, i'm grateful.
I redid the code and now it works. I don't know what i did different from other tries (i tried many things)
That is one of the "features" of timing problems - they are not random but they can't be reproduced by a normal human either. Follow the link to the "bughunting" in my signature, it explains the background of why timing problems happen and what to do to avoid them.

Original thread: https://forums.rpgmakerweb.com/threads/rpgmv-variable-not-going-up.121207/