Page 1 of 1

Imagemap Problem (Solved)

Posted: Mon Jun 24, 2013 6:04 am
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.)

Re: Imagemap Problem

Posted: Mon Jun 24, 2013 6:14 am
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 ^^

Re: Imagemap Problem

Posted: Mon Jun 24, 2013 6:25 am
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! ^-^

Re: Imagemap Problem (Solved)

Posted: Mon Sep 23, 2013 3:11 pm
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.

Re: Imagemap Problem (Solved)

Posted: Tue Sep 24, 2013 2:55 am
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!