Overlay issue in 6.99

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Overlay issue in 6.99

#1 Post by DesertFox » Sat Sep 10, 2016 6:27 pm

I'm experiencing a hiccup with regards to the overlay layer in 6.99. Previously, using the below coding, an image was overlaid at all scenarios that didn't include a screen. This was mainly for any dialogue sequences, the splashscreen sequence and one or two other scenes. Since updating to 6.99, this doesn't happen anymore. I wondered if anything was changed that would have affected this.

Code: Select all

init python:
	def overlay():
	        if orange:
	            ui.image ("monitor")
	        else:
	            ui.image ("monitor")
	config.overlay_functions.append(overlay)

screen quick_menu():
	if main_menu: #or renpy.get_screen("preferences") or renpy.get_screen("save") or renpy.get_screen("load"):
        	add "monitor"

User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Re: Overlay issue in 6.99

#2 Post by pratomoastan » Sat Sep 10, 2016 9:29 pm

Try update the renpy to nightly version.
~ Sempai !!!

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Overlay issue in 6.99

#3 Post by trooper6 » Sat Sep 10, 2016 10:03 pm

Maybe call your function something other than overlay since that word is used for layers and bunch of other things?
No clue if that will help, but just tossing out an idea.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Re: Overlay issue in 6.99

#4 Post by DesertFox » Sun Sep 11, 2016 7:24 am

Tried both suggestions. No luck I'm afraid.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Overlay issue in 6.99

#5 Post by xela » Sun Sep 11, 2016 10:53 am

For the record, PyTom opened an issue about this thread on github so it should get fixed.
Like what we're doing? Support us at:
Image

User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Re: Overlay issue in 6.99

#6 Post by DesertFox » Sun Sep 11, 2016 4:29 pm

xela wrote:For the record, PyTom opened an issue about this thread on github so it should get fixed.
Thanks for letting me know. I'll wait to hear more.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Overlay issue in 6.99

#7 Post by PyTom » Sun Sep 11, 2016 5:50 pm

Is this issue occurring outside of a splashscreen? I did add code to 6.99.12 to disable overlays during splash, now that the quick menu is part of an overlay screen.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Re: Overlay issue in 6.99

#8 Post by DesertFox » Sun Sep 11, 2016 7:05 pm

PyTom wrote:Is this issue occurring outside of a splashscreen? I did add code to 6.99.12 to disable overlays during splash, now that the quick menu is part of an overlay screen.
It mainly occurs in the splashscreen, in a screen called after that to determine styling, and then in a label that continues until a return to the main menu. Nearly all other screens are covered by quick_menu, which also calls the image.

Code: Select all

label splashscreen:
	#splash elements
	call screen pretheme()

screen pretheme():
	#Variables are set
	#A button jumps to splashcontinue

label splashcontinue:
	#splash elements
	return

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Overlay issue in 6.99

#9 Post by PyTom » Sun Sep 11, 2016 7:53 pm

Can you try:

define config.splashscreen_suppress_overlay = False
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Re: Overlay issue in 6.99

#10 Post by DesertFox » Mon Sep 12, 2016 2:59 am

PyTom wrote:Can you try:

define config.splashscreen_suppress_overlay = False
Yes, that's working fine now. Out of interest, why the move to disable overlays in splash?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Overlay issue in 6.99

#11 Post by PyTom » Mon Sep 12, 2016 9:47 am

There's now something called an overlay screen, which is a screen that is shown whenever an overlay is. We generally don't want overlays in the splashscreen, I think - it's for presenting company logos like that, and not for game text. (For example, we can't save in the splashscreen, or get to the preferences, either.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]