Day and Night Script Help

Hi, I was using Vlue's Advance Game Time script (http://pastebin.com/bXXaZhpQ) (). But an error kept coming up that crashes my game everytime in a scripting event where it changes the time of day a few hours later. The error that pops up says this:

"script game interpreter line 1411 ArgumentError occurred. comparison of Fixnum with nil failed"

Can someone help me out with this?
Hi there,

I use a lot of Vlue's scripts (including this one mentioned) and I don't have any issues. Try disabling all other scripts in the game and see if helps. Add them back in one by one to see which one is causing the incompatibility.

Hope it helps,

Sindaine
Line 1411 of Game Interpreter has nothing to do with the script. It is a script call in an EVENT that you have created.


Locate the event(s) that have a Script command, especially if you can narrow it down to the one that triggers just before the error, then copy the script call and paste it here (or do a screenshot, if you don't have to scroll right to see all the text).


If you can't find it, say so, and I'll give you some instructions to help identify which one it is.


... well, it MAY have nothing to do with the script. Let's start with the event command and see where it takes us.
I just made a new project and still got it
@Shaz: Ok:

 [IMG]http://oi62.tinypic.com/v83cev.jpg[/IMG]

[IMG]http://oi58.tinypic.com/2q8bymc.jpg[/IMG]
mmm ... it SEEMS to look okay, except that you can't get 280 seconds. Perhaps try:

GameTime.change(40,4)(which is 4 minutes and 40 seconds, which is 280 seconds), but I really don't know if that's going to make a difference.
Where did you put the script? Below Materials and above Main?
directly below materials
I still get the error
AwesomeChanly, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


So you get the "do you want to go to sleep" message, say yes, the screen fades out, and then you get the error?
Yes
Make sure the following variables (in customization) are not empty or equal to nil:


SECONDSINMIN


MINUTESINHOUR


HOURSINDAY


MONTHS


DAYNAMES
Moving to RGSSx Script Support

Original thread: https://forums.rpgmakerweb.com/threads/day-and-night-script-help.24726/