Yes/No prompt screen transition
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.
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.
-
- Regular
- Posts: 79
- Joined: Sun May 15, 2011 11:50 pm
- Projects: From Innocence
- Location: The Evergreen State
- Contact:
Yes/No prompt screen transition
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?
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?
- 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
Have you gone into your options.rpy and adjusted these?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?
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:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
-
- 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
I have. That's why I'm confused.
Because when I enter this line:
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
Because when I enter this line:
Code: Select all
config.enter_yesno_transition = dissolve
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
- 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
I wonder if it's because your Additional transition is interfering with the ones in Options?tigersmurf wrote:I have. That's why I'm confused. Because when I enter this line:I get this error...Code: Select all
config.enter_yesno_transition = dissolve
-- 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:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
- 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
You need to capitalize Dissolve so like
Code: Select all
config.enter_yesno_transition = Dissolve
-
- 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
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.
- 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
Try:
Code: Select all
init -1 python:
config.enter_yesno_transition = dissolve
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
-
- 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
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.
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.
Re: Yes/No prompt screen transition
I think this is the source of your problem:
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).
Screen transition for yes/no screen is a new feature. Maybe you should try updating your Ren'Py?tigersmurf wrote: Ren'Py 6.14.1.366
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).
-
- 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
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?
However, it still doesn't actually dissolve when entering and exiting that screen. What's the deal?
Re: Yes/No prompt screen transition
For the effect when exiting, you need to set exit_yesno_transition instead.
Now for the issue with entering, try changing to
to see if something interesting happen.
Also, perhaps you need to describe in more details. How exactly did you activate that yes/no screen?
Now for the issue with entering, try changing to
Code: Select all
config.enter_yesno_transition = blinds
Also, perhaps you need to describe in more details. How exactly did you activate that yes/no screen?
-
- 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
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.
-
- 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)
Solved it. I had some funky bit of code in my screens.rpy.
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!
Code: Select all
on "show" action With(dissolve)
modal True
Thanks for all the responses, everyone!
Who is online
Users browsing this forum: Bing [Bot]