Main Menu Imagemap Not Working with Android

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
LolicOnion
Regular
Posts: 42
Joined: Sat Oct 06, 2012 10:36 pm
Contact:

Main Menu Imagemap Not Working with Android

#1 Post by LolicOnion » Wed Mar 06, 2013 11:19 pm

Does anyone have any idea why I am receiving this error?
Image


I took this screenshot right from my device. The game worked fine right before I ported with code that included an image map for the main menu:

Code: Select all

##############################################################################
# Main Menu 
#
# Screen that's used to display the main menu, when Ren'Py first starts
# http://www.renpy.org/doc/html/screen_special.html#main-menu

#screen main_menu:

#    # This ensures that any other menu screen is replaced.
#    tag menu

#    # The background of the main menu.
#    window:
#        style "mm_root"

#    # The main menu buttons.
#    frame:
#        style_group "mm"
#        xalign .98
#        yalign .98

#        has vbox

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


init -2 python:

    #Make all the main menu buttons be the same size.
    style.mm_button.size_group = "mm"
    style.mm_button_text.size = 60
    
    layout.imagemap_main_menu("ground.png", "selected.png", [
        (439, 363, 826, 458, "Start Game"),
        (725, 507, 960, 600, "Credits"),
        ])
Is it just that Rapt doesn't support main menu imagemaps on android?

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: Main Menu Imagemap Not Working with Android

#2 Post by PyTom » Wed Mar 06, 2013 11:45 pm

It's not loading the module.

For now, use screens instead of the obsolete layout functions.
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
LolicOnion
Regular
Posts: 42
Joined: Sat Oct 06, 2012 10:36 pm
Contact:

Re: Main Menu Imagemap Not Working with Android

#3 Post by LolicOnion » Wed Mar 06, 2013 11:55 pm

Alrighty. Thank you PyTom :D

Post Reply

Who is online

Users browsing this forum: proller, Triority