Yes/No prompt screen transition

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
tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Yes/No prompt screen transition

#1 Post by tigersmurf »

So I checked out http://www.renpy.org/doc/html/config.html in order to find the code for making a dissolve transition when entering and exiting the yes/no prompt screen. But the "config.enter_yesno_transition = dissolve" crashes my game when I try to add it to the options screen with all the other menu transition configurations.

It says that the config code is not recognized. So, is that an old code? Or am I just missing something?

All my menus look great, except it's very jarring that when exiting the game (or saving over a file or deleting a save or loading, etc) there's no transition. The screen just abruptly appears. Can someone help me fix this?

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Yes/No prompt screen transition

#2 Post by OokamiKasumi »

tigersmurf wrote:So I checked out http://www.renpy.org/doc/html/config.html in order to find the code for making a dissolve transition when entering and exiting the yes/no prompt screen. But the "config.enter_yesno_transition = dissolve" crashes my game when I try to add it to the options screen with all the other menu transition configurations.

It says that the config code is not recognized. So, is that an old code? Or am I just missing something?

All my menus look great, except it's very jarring that when exiting the game (or saving over a file or deleting a save or loading, etc) there's no transition. The screen just abruptly appears. Can someone help me fix this?
Have you gone into your options.rpy and adjusted these?

Code: Select all

    ## Transitions.

    ## Used when entering the game menu from the game.
    config.enter_transition = fade

    ## Used when exiting the game menu to the game.
    config.exit_transition = fade

    ## Used between screens of the game menu.
    config.intra_transition = dissolve

    ## Used when entering the game menu from the main menu.
    config.main_game_transition = fade

    ## Used when returning to the main menu from the game.
    config.game_main_transition = fade

    ## Used when entering the main menu from the splashscreen.
    config.end_splash_transition = fade

    ## Used when entering the main menu after the game has ended.
    config.end_game_transition = fade

    ## Used when a game is loaded.
    config.after_load_transition = fade

    ## Used when the window is shown.
    config.window_show_transition = dissolve

    ## Used when the window is hidden.
    config.window_hide_transition = dissolve
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition

#3 Post by tigersmurf »

I have. That's why I'm confused.

Because when I enter this line:

Code: Select all

config.enter_yesno_transition = dissolve
I get this error:

I'm sorry, but an uncaught exception occurred.

While executing init code:
File "game\options.rpy", line 14, in script
File "game\options.rpy", line 315, in python
Exception: config.enter_yesno_transition is not a known configuration variable.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\execution.py", line 266, in run
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\ast.py", line 646, in execute
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\python.py", line 1172, in py_exec_bytecode
File "game\options.rpy", line 315, in <module>
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\defaultstore.py", line 74, in __setattr__
Exception: config.enter_yesno_transition is not a known configuration variable.

Windows-7-6.1.7601-SP1
Ren'Py 6.14.1.366
Ad Astra 0.0

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Yes/No prompt screen transition

#4 Post by OokamiKasumi »

tigersmurf wrote:I have. That's why I'm confused. Because when I enter this line:

Code: Select all

config.enter_yesno_transition = dissolve
I get this error...
I wonder if it's because your Additional transition is interfering with the ones in Options?
-- My Yes/No screen does dissolve, but all I did was adjust the code above. I didn't add anything new to Options.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: Yes/No prompt screen transition

#5 Post by Camille »

You need to capitalize Dissolve so like

Code: Select all

config.enter_yesno_transition = Dissolve

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition

#6 Post by tigersmurf »

Hmm, capitalizing dissolve didn't work. I'm still getting the message that it's not a recognized configuration command. This is pretty strange. I wonder if it has anything to do with something else that I've changed.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Yes/No prompt screen transition

#7 Post by Donmai »

Try:

Code: Select all

init -1 python:
    config.enter_yesno_transition = dissolve
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition

#8 Post by tigersmurf »

Hmm, I just tried the init -1 python method and that also gave me the same error message.

I'm sorry, but an uncaught exception occurred.

While executing init code:
File "game\options.rpy", line 282, in script
File "game\options.rpy", line 283, in python
Exception: config.enter_yesno_transition is not a known configuration variable.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\execution.py", line 266, in run
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\ast.py", line 646, in execute
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\python.py", line 1172, in py_exec_bytecode
File "game\options.rpy", line 283, in <module>
File "C:\Users\Cutter\Desktop\renpy-6.14.1-sdk\renpy\defaultstore.py", line 74, in __setattr__
Exception: config.enter_yesno_transition is not a known configuration variable.

Windows-7-6.1.7601-SP1
Ren'Py 6.14.1.366
Ad Astra 0.0

I suppose I can live with the abrupt yes/no screen transition. It's just a little sad after everything else I've managed to solve over the last few months to be undone by a seemingly innocuous piece of simple code.

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Yes/No prompt screen transition

#9 Post by Elmiwisa »

I think this is the source of your problem:
tigersmurf wrote: Ren'Py 6.14.1.366
Screen transition for yes/no screen is a new feature. Maybe you should try updating your Ren'Py? :wink:

And the use of "dissolve" is correct, not "Dissolve", because "dissolve" is a transition, while "Dissolve" is a transition constructor (ie. you need to supply more information to it before it become a transition). :(

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition

#10 Post by tigersmurf »

Okay, so I just did the update to the latest version of Ren'py. The game is no longer crashing with the config.enter_yesno_transition = dissolve code.

However, it still doesn't actually dissolve when entering and exiting that screen. What's the deal?

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Yes/No prompt screen transition

#11 Post by Elmiwisa »

For the effect when exiting, you need to set exit_yesno_transition instead.
Now for the issue with entering, try changing to

Code: Select all

config.enter_yesno_transition = blinds
to see if something interesting happen.
Also, perhaps you need to describe in more details. How exactly did you activate that yes/no screen?

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition

#12 Post by tigersmurf »

Very interesting. So, the *exit* transition is working perfectly when I set them both to "blinds" but the enter transition still won't show up no matter which way I try to activate it. (I've tried deleting a save, loading from in game, selecting "quit," and closing out of the window.

tigersmurf
Regular
Posts: 79
Joined: Sun May 15, 2011 11:50 pm
Projects: From Innocence
Location: The Evergreen State
Contact:

Re: Yes/No prompt screen transition (solved)

#13 Post by tigersmurf »

Solved it. I had some funky bit of code in my screens.rpy.

Code: Select all

    on "show" action With(dissolve)
    
    modal True
I'm not sure if that's something I put in there at some time for some reason or another, or if it's just from Ren'Py. But removing it finally did the trick. I'm surprised it took me so long to figure out.

Thanks for all the responses, everyone!

Post Reply

Who is online

Users browsing this forum: Ocelot