Page 1 of 1

"Black screen" problem restoring saves [SOLVED]

Posted: Mon Nov 25, 2019 11:27 am
by rames44
So, I'm having a weird problem I don't understand. I'm currently using 7.3.5.606, but I checked and I get the same problem with other versions of Ren'py.

My game plays perfectly. If I create a save, the save gets the proper thumbnail. When I restore the save, however, I get a black background- the background image that was showing at the time of the save is not restored. (The "say" screen and another screen I've shown are correctly restored.) If I roll back to the previous "scene" command, or step forward to the next one, the background image shows up again, and things proceed fine. So, I was all "why isn't Ren'py remembering what image was on the screen when it made the save?"

AFAIK, I'm not doing anything funky - the background images are displayed using the "scene" command. Basically:

Code: Select all

scene image_reference with Dissolve(0.2)
some_character "text"
some_character 'text"
I haven't done anything with layers, or anything like that. I thought that maybe it was something funky about the way my game was set up, but if I rip out the splash screen and the "after load" processing, the game loop, etc. and jump straight to a bit of the content, I still get the same result when doing a save/load.

While trying to debug this, what initially I noticed was that if I use the Displayable Inspector (Shift-I) while hovering over my background image, no image reference shown. Using the screen inspector over other portions of the screen (over the side image, over a screen that I've displayed with "show") correctly show those elements, but the background screen is never detected by the inspector. I thought that might be a clue to the problem, but when checked a few other games, that just seems to be the behavior of the screen inspector.

A previous version of my game did not have this problem. It was released with a different version of Ren'py (7.2.2), but I've played back and forth with different Ren'py versions against the current version and the old version, and it's definitely my current code, not Ren'py.

So, I'm wondering if I've inadvertently modified a Ren'py setting or option somewhere that's bolluxing this up. I looked back in my git history, and there haven't been any changes in the options.rpy file since when it worked (except for updating the game's version number) but that doesn't mean I didn't mess up something elsewhere.

Any of the gurus out there have an idea as to what might be going on?

Re: "Black screen" problem restoring saves [SOLVED]

Posted: Thu Dec 26, 2019 2:21 pm
by rames44
OK, I found the problem. It was my own stupidity, an incomplete understanding of how the "after_load" label works, and a typo all rolled into one... (eyeroll)