Hello everyone !
So I'm trying to do a time system (not by myself, honestly, I was following a tutorial on youtube and tried to change it a bit because some parts were not what I wanted them to be) but it fails after a few time and freezes completely the game.
So I created a Time Common event, set to Parallel Process and with the Condition Switch 0021:Time (a switch automatically set to true once and for all at the beginning of the game).
So the time goes well, it increases until 5am and the color of the screen changes (so it becomes like dawn) and it keeps going until 7am. The problem is when it reaches 7am : it freezes completely, and the screen doesn't change anymore, I can't move, etc.
I tried with some Ruby Script to log and debug the thing, but it looks like the bug comes from the "wait" line, as my debug shows every line of log until the "FRAME WAIT" log line, just before the wait statement.
Here's the code, so it's clearer :
And here's the log just before the freeze :
And strangely, a few seconds after this log comes more lines :
But it doesn't change much, it's still frozen, one new frame appears randomly sometimes...
Any idea where it may be coming from and why ?
Thanks a lot for your answers
So I'm trying to do a time system (not by myself, honestly, I was following a tutorial on youtube and tried to change it a bit because some parts were not what I wanted them to be) but it fails after a few time and freezes completely the game.
So I created a Time Common event, set to Parallel Process and with the Condition Switch 0021:Time (a switch automatically set to true once and for all at the beginning of the game).
So the time goes well, it increases until 5am and the color of the screen changes (so it becomes like dawn) and it keeps going until 7am. The problem is when it reaches 7am : it freezes completely, and the screen doesn't change anymore, I can't move, etc.
I tried with some Ruby Script to log and debug the thing, but it looks like the bug comes from the "wait" line, as my debug shows every line of log until the "FRAME WAIT" log line, just before the wait statement.
Here's the code, so it's clearer :
And here's the log just before the freeze :
And strangely, a few seconds after this log comes more lines :
But it doesn't change much, it's still frozen, one new frame appears randomly sometimes...
Any idea where it may be coming from and why ?
Thanks a lot for your answers