Where is my main menu ?

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
Nassiha
Newbie
Posts: 2
Joined: Fri Jul 22, 2016 6:15 am
Contact:

Where is my main menu ?

#1 Post by Nassiha »

Hello !

I have a problem with the game who I make... When I launch my project, the main menu doesn't appear... However, I didn't change the "option" or "screens".
I try to create a new project, without change the "script" and there isn't either a main menu.

When I try to go to the main menu :
Image

Image

Image

I hope you can understand my problem and help me.

Nassiha

Ps : I'm French and I don't speak english very well... Then I hopet that I didn't make to many mistakes...

User avatar
chocoberrie
Veteran
Posts: 254
Joined: Wed Jun 19, 2013 10:34 pm
Projects: Marshmallow Days
Contact:

Re: Where is my main menu ?

#2 Post by chocoberrie »

It looks like the save/load screen is appearing when you click the main menu button, which could be because: 1) the coding for the save/load screen is in screen main_menu, or 2) the main menu button action is set to show the load screen instead of the main menu.

To determine which of these is the case, we would need to see what code you have for the main menu in screens.rpy. Could you post that, please? :)

Nassiha
Newbie
Posts: 2
Joined: Fri Jul 22, 2016 6:15 am
Contact:

Re: Where is my main menu ?

#3 Post by Nassiha »

I don't know if this is the code that you want to see...

Code: Select all

screen main_menu:
    
    tag menu
    
    window:
        style "mm_root"
    
    frame:
        style_group "mm"
        xalign .98
        yalign .98

        has vbox

        textbutton _("Start Game") action Start()
        textbutton _("Load Game") action ShowMenu("load")
        textbutton _("Preferences") action ShowMenu("preferences")
        textbutton _("Help") action Help()
        textbutton _("Quit") action Quit(confirm=False)

init -2 python:
    
    style.mm_button.size_group = "mm"

screen navigation:

  
    window:
        style "gm_root"

   
    frame:
        style_group "gm_nav"
        xalign .98
        yalign .98

        has vbox

        textbutton _("Return") action Return()
        textbutton _("Preferences") action ShowMenu("preferences")
        textbutton _("Save Game") action ShowMenu("save")
        textbutton _("Load Game") action ShowMenu("load")
        textbutton _("Main Menu") action MainMenu()
        textbutton _("Help") action Help()
        textbutton _("Quit") action Quit()

init -2 python:
    style.gm_nav_button.size_group = "gm_nav"


screen quick_menu:
    
    hbox:
        style_group "quick"

        xalign 1.0
        yalign 1.0

        textbutton _("Back") action Rollback()
        textbutton _("Save") action ShowMenu('save')
        textbutton _("Q.Save") action QuickSave()
        textbutton _("Q.Load") action QuickLoad()
        textbutton _("Skip") action Skip()
        textbutton _("F.Skip") action Skip(fast=True, confirm=True)
        textbutton _("Auto") action Preference("auto-forward", "toggle")
        textbutton _("Prefs") action ShowMenu('preferences')

init -2 python:
    style.quick_button.set_parent('default')
    style.quick_button.background = None
    style.quick_button.xpadding = 5

    style.quick_button_text.set_parent('default')
    style.quick_button_text.size = 12
    style.quick_button_text.idle_color = "#8888"
    style.quick_button_text.hover_color = "#ccc"
    style.quick_button_text.selected_idle_color = "#cc08"
    style.quick_button_text.selected_hover_color = "#cc0"
    style.quick_button_text.insensitive_color = "#4448"

screen choice:

    window:
        style "menu_window"
        xalign 0.5
        yalign 0.5

        vbox:
            style "menu"
            spacing 2

            for caption, action, chosen in items:

                if action:

                    button:
                        action action
                        style "menu_choice_button"

                        text caption style "menu_choice"

                else:
                    text caption style "menu_caption"

init -2 python:
    config.narrator_menu = True

    style.menu_window.set_parent(style.default)
    style.menu_choice.set_parent(style.button_text)
    style.menu_choice.clear()
    style.menu_choice_button.set_parent(style.button)
    style.menu_choice_button.xminimum = int(config.screen_width * 0.75)
    style.menu_choice_button.xmaximum = int(config.screen_width * 0.75)
I have this problem with all of my projects...

User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Re: Where is my main menu ?

#4 Post by andrewngn13 »

This isn't an old ren'py installation is it? I don't see any of the usual new project commenting.

*nvm that bit about missing parts, I was looking at wrong screen code.
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]