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.
I have yet another question, and this one baffles me completely. I seem to have two separate loading screens for some reason and one works and the other doesn't, although I don't have separate coding for them. The problem is when I access the loading screen from a custom screen I made, it works perfectly, but when I access it from the main menu, the background color changes and the menu options stop working. The only thing that works is the actual loading of the game.
How navigation is called?
The pause screen is correct, but that navigation thing is suspect.
Did you changed your main_menu screen, or totally omitted?
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
Imperf3kt wrote: ↑Thu Jan 16, 2020 7:58 pm
the load and save screen are actually part of the file_slots screen.
im unable to tell what your specific issue is from the code alone though, can you post some screenshots?
I tried taking some useful screenshots but they look exactly the same and don't really offer a more graphic explanation to my problem, sorry. The problem seems to be of another kind, though I can say that the main menu button hover option does not seem to work and the slot buttons arent really displaying the text or hover options, but they load normally, though. Other than that, they look the same. I'll include an image either way
gas wrote: ↑Fri Jan 17, 2020 6:29 am
How navigation is called?
The pause screen is correct, but that navigation thing is suspect.
Did you changed your main_menu screen, or totally omitted?
I think perhaps it's something like that, though my main menu screen worked perfectly fine before I even touched the save/load screens and I had already modified it.
I'm starting to think that the problem lies in the game menu, I'll share the code.
The game_menu lack the 'use navigation' statement.
Yes, I remember deleting it
I wanted other options on the menu and wanted them positioned differently. Is there a better way to do it? I just kinda thought that including the buttons right on the loading screen would work as it does with my save screen and one of the loading screens I have.
Sorry, I didn't post the main menu code last time because I had done so before xD
But here it goes:
screen navigation():
vbox:
xalign 0.25
yalign 0.52
spacing 30
imagebutton auto "gui/newgame_button_%s.png" action Start()
vbox:
xalign 0.3
yalign 0.85
spacing 25
imagebutton auto "gui/continue_button_%s.png" action ShowMenu("load")
imagebutton auto "gui/chapterselection_button_%s.png" action NullAction()
imagebutton auto "gui/settings_button_%s.png" action ShowMenu("preferences")
imagebutton auto "gui/gallery_button_%s.png" action ShowMenu("gallery")
imagebutton auto "gui/quit_button_%s.png" action Quit(confirm=not main_menu)
...While writing this I realized that this loading screen is accessed from the Main menu directly (from the continue button) so the save button would have no real function here, alas why it isn't working at all. Is it the same case with the Main menu button? Seeing that the return button already goes to the Main menu. In that case, I should make a separate screen for the continue button.
Still, I get the feeling that the slot buttons are not working properly. The text that should show the time and day of the save, is missing.
Sorry, I thought that my main menu was the code I had shown before
I think it's what I said last time, that maybe the main menu button doesn't work because the return button does exactly that; return to the main menu. I already know why the save button doesn't work, and the rest of the buttons/screens ere not defined yet, so their buttons don't work just yet. And like I said, the return button works fine.
I will post the Main Menu code, if you can find something wrong I will appreciate it, if not, I still thank you for answering my posts and helping me all this time
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
add "gui/pititle.png" xalign 0.3 yalign 0.3
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
use navigation
if gui.show_name:
vbox:
text "[config.version]":
style "main_menu_version"