I’m not sure if this is the correct forum, but I seem to have encountered a major issue in my project. My sketch has started fine so far but suddenly stopped working. Through some basic troubleshooting, I found
the issue is related to any-and-all system time functions (I.E hour(), minute(), and second()). I also tried writing the functions in the exact syntax shown in the documentation, to no avail. Please help if you can. Here’s my code, i’ve included the entirety of the draw function for clarity:
void draw() {
Current_Time[0] = hour();
// Current_Time[1] = minute();
// Current_Time[2] = second();
if (AI_Output != null) {
Output_Alpha = 0;
ShowOutput();
}
// Initialzation:
if (Splash_Frame < 240) {
Splash_Frame += 1;
Splash_Boot();
print(Splash_Frame, " ");
} else {
Nora_Boot();
// Nora Sign:
textAlign(LEFT);
Absolute_Text_Size = (float(height) / float(displayHeight)) * 100;
textSize(int(Absolute_Text_Size));
fill(255, 255, 255, 255 - Boot_Fade * 2);
text("NORA", 20, (float(height) / float(displayHeight)) * 110);
// Response Query:
textSize(int(Absolute_Text_Size * .55));
fill(255,60,180,Output_Alpha);
textLeading(25);
textAlign(CENTER, CENTER);
text(Finished_Output, 20, (float(height) / float(displayHeight)) * 200, width * .8746, height * .625);
// Initialization Frame 1:
if (Initialize_Frame == 1) {
surface.setTitle("Nora, Your Virtual Companion.");
surface.setResizable(false);
surface.setLocation(int(displayWidth * .825), int(displayHeight * .56));
surface.setAlwaysOnTop(true);
}
}
}