Aegis_Games : Makes sense. I just poked around a bit in the code base to see if I could catch anything that seemed out of place, specifically in the shop since that triggered the bug even on a clean playthrough.
While I have admittedly only been looking for a few minutes.... I got nothin'. lol
*Edit: Actually I can replicate/resolve the bug I'm hitting with
winonaquest 3
!
TL;DR: Game allows you to progress quests at night, but is unable to jump time when quest is finished.
Explanation: I was going to the shop at night. It progressed the quest, but at the end of the section it reverted to the main menu. I'm guessing because it was trying to progress time, but by default the game can't cycle the time to morning from night without the bed interaction. My previous bugs were also interacting with quest lines at night time. Testing them out, the resolution is indeed not trying to do a quest step at night time, even though it is possible to initiate it during that time period.
Looking at the end of each question section, we see this code:
Code:
$ winonaquest = "4"
$ current_location = "entrancewayrevers"
jump time # <-- THIS ONE RIGHT HERE
Hopefully this insight helps in resolving the issue going forward. Basically just need some guard rails on progressing quests at night if they try to jump time/shouldn't be done at night. (Some night specific quests don't have the jump time, reinforcing this theory.)
*Edit: Alternate way would be to modify the jump time function to only jump time to night, and if it is night, just stay night. Not sure which fix would be easier. Arguably, it probably makes more sense to fix it properly, but a quick and dirty solution might just be jank patching jump time to only every try and progress if it isn't night.
Something dirty like this:
Code:
# Timecycle.rpy
label time:
if time == "m":
$ time = "a"
jump showbuttons
elif time == "a":
$ time = "e"
jump showbuttons
elif time == "e":
$ time = "n"
jump showbuttons
Code:
#Dumb janky fix for Timecycle.rpy
label time:
if time == "m":
$ time = "a"
jump showbuttons
elif time == "a":
$ time = "e"
jump showbuttons
elif time == "e":
$ time = "n"
jump showbuttons
elif time == "n":
$ time = "n"
jump showbuttons
*Edit 2: Tested the above janky fix and it resolves the dump to main menu error. Is it janky? 100%. Does it work? Sure. lol