Imagemap Problem (Solved)

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
Viobli
Regular
Posts: 66
Joined: Fri Jun 07, 2013 2:25 am
Projects: *Truly, Friends *Lady Eun-mi
Contact:

Imagemap Problem (Solved)

#1 Post by Viobli »

Hello! This is what I encountered when I go to the "Load" page on my game:
bug.JPG
This is the code I used:

Code: Select all

screen navigation:

    # The background of the game menu.
    window:
        style "gm_root"

    # The various buttons.
    imagemap:
        ground "rslpmqground.png"
        idle "rslpmqidle.png"
        hover "rslpmqhover.png"
        selected_idle "rslpmqselectidle.png"
        selected_hover "rslpmqselecthover.png"
        
        hotspot (613,338,135,40) action Return()
        hotspot (611,380,137,43) action ShowMenu("save")
        hotspot (611,424,138,40) action ShowMenu("load")
        hotspot (612,468,136,38) action ShowMenu("preferences")
        hotspot (611,510,137,39) action MainMenu()
        hotspot (611,553,139,41) action Quit()

init -2 python:
    style.gm_nav_button.size_group = "gm_nav"
If it helps, these are the pictures I used for the buttons:
rslpmqground.png
rslpmqhover.png
rslpmqselecthover.png
rslpmqidle.png
rslpmqselectidle.png
Thanks in advance!
(EDIT: If this bit of info helps, the first box (Return) directs back to the MM. The 4th box (Prefs) directs back to the Preferences and the last box (Quit) directs to the "Are you sure you want to quit? Yes/No" page. The problem is that the boxes are jumbled up like that, but each box does link to their respective pages correctly.)
Last edited by Viobli on Mon Jun 24, 2013 6:26 am, edited 1 time in total.
Image

Morishita
Veteran
Posts: 212
Joined: Sun Mar 27, 2011 3:34 am
Completed: A Troll's Fairy Tale
Projects: School Memories, Curse of the Caribbean,
Organization: S.K.Y. Art and Designs
Contact:

Re: Imagemap Problem

#2 Post by Morishita »

Try clearing out the cache folder that's inside the game folder of your game. This usually happens to me when I'm working with image maps too. Hopefully this helps ^^

User avatar
Viobli
Regular
Posts: 66
Joined: Fri Jun 07, 2013 2:25 am
Projects: *Truly, Friends *Lady Eun-mi
Contact:

Re: Imagemap Problem

#3 Post by Viobli »

Morishita wrote:Try clearing out the cache folder that's inside the game folder of your game. This usually happens to me when I'm working with image maps too. Hopefully this helps ^^
Ah, thank you very much! Never thought about clearing the cache folder. Thank you once again! ^-^
Image

User avatar
jesusalva
Regular
Posts: 88
Joined: Mon Jul 22, 2013 5:05 pm
Organization: Software in Public Interest, Inc.
IRC Nick: jesusalva
Github: pazkero
itch: tmw2
Location: Brazil
Discord: Jesusalva#4449
Contact:

Re: Imagemap Problem (Solved)

#4 Post by jesusalva »

Code: Select all

    config.imagemap_cache = False
that should disable imagemap's cache, if placed at options.rpy . I never tested, but can work.
Jesusaves/Jesusalva

User avatar
Viobli
Regular
Posts: 66
Joined: Fri Jun 07, 2013 2:25 am
Projects: *Truly, Friends *Lady Eun-mi
Contact:

Re: Imagemap Problem (Solved)

#5 Post by Viobli »

jesusalva wrote:

Code: Select all

    config.imagemap_cache = False
that should disable imagemap's cache, if placed at options.rpy . I never tested, but can work.
Hmm, I'll try it out (since I'm quite tired clearing the cache all the time...) Thank you!
Image

Post Reply

Who is online

Users browsing this forum: camzgr8game, munni