Save and Load screen not working!<not solved T~T>

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
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Save and Load screen not working!<not solved T~T>

#1 Post by MioSegami » Sat Jan 19, 2013 6:25 pm

I'm a bit fustrated with custmozing my save and load screen. I got the hotspots right, and yet they don't work. The coordinates are just fine, I have a feeling it's something to do with the codes >.<! here is my whole code....

Code: Select all

##############################################################################
# Save, Load
#
# Screens that allow the user to save and load the game.
# http://www.renpy.org/doc/html/screen_special.html#save
# http://www.renpy.org/doc/html/screen_special.html#load

# Since saving and loading are so similar, we combine them into
# a single screen, file_picker. We then use the file_picker screen
# from simple load and save screens.

screen load_save_slot:
    $ file_text = "{size=+4}{i}%s{/i}{/size}\n%s: %s" % (
                        FileSaveName(number),
                        FileSlotName(number, 4),
                        FileTime(number, format='%B %d, %Y \n    (%I:%M%p)', empty=_("Empty Slot."))
                        )
    add FileScreenshot(number) xpos 61 ypos 69 
    text file_text xpos 215 ypos 78 size 18 color "#261d0c"
    
screen file_picker:
    
    imagemap:
            ground "textbox/save_idle.png"
            hover "textbox/save_hovered.png"
            selected_idle "textbox/save_idle.png"

            hotspot (801,17,24,34) clicked FilePage(1)
            hotspot (830,17,24,34) clicked FilePage(2)
            hotspot (864,17,25,34) clicked FilePage(3)
            hotspot (896,17,24,34) clicked FilePage(4)
            hotspot (928,17,24,34) clicked FilePage(5)
            hotspot (962,17,23,34) clicked FilePage(6)
            hotspot (993,17,25,34) clicked FilePage(7)
            hotspot (1025,17,20,34) clicked FilePage(8)
            hotspot (1057,17,26,34) clicked FilePage(9)
            hotspot (1093,17,34,34) clicked FilePage(10)
            hotspot (1139,17,27,34) clicked FilePage(11)
            hotspot (1175,17,32,34) clicked FilePage(12)
            hotspot (1219,17,30,34) clicked FilePage(13)
            
            hotspot (47,71,424,287) clicked FileAction(1):
                use load_save_slot(number=1)
            hotspot (749,71,426,287) clicked FileAction(2):
                use load_save_slot(number=2)
            hotspot (47,405,424,288) clicked FileAction(3):
                use load_save_slot(number=3)
            hotspot (749,705,426,278) clicked FileAction(4):
                use load_save_slot(number=4)
                
            hotspot (524,104,166,80) action ShowMenu("load")
            hotspot (524,229,166,67) action ShowMenu("save")
            hotspot (482,342,253,63) action ShowMenu("Preferences")
            hotspot (491,448,228,78) action Return()
            hotspot (524,566,166,72) action Quit(confirm=True)
            
screen save:
    # This ensures that any other menu screen is replaced.
    tag menu
    use file_picker
    add "textbox/sl_save.png"

screen load:
    # This ensures that any other menu screen is replaced.
    tag menu
    use file_picker
    add "textbox/sl_load.png"

init -2 python:
    style.file_picker_frame = Style(style.menu_frame)

    style.file_picker_nav_button = Style(style.small_button)
    style.file_picker_nav_button_text = Style(style.small_button_text)

    style.file_picker_button = Style(style.large_button)
    style.file_picker_text = Style(style.large_button_text)
    config.thumbnail_width = 75
    config.thumbnail_height = 42

I know it's a lot...and I still have some screen shots... you can still see the background a bit and the ORIGNAL old usual ren'py save and load screen behind the customized one that I made.
Attachments
Capture.JPG
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

User avatar
Biotikos
Regular
Posts: 33
Joined: Sat Jan 19, 2013 4:50 pm
Projects: Eien no Mirai
Organization: Biotikos Development
Skype: aleatory-22
Contact:

Re: Save and Load screen not working!<not solved T~T>

#2 Post by Biotikos » Mon Feb 04, 2013 4:52 pm

I can't see anything wrong, tho I'm not Phyton expert, so I'll move to what I know.

I know this might seem stupid and/or you've done it, but have you checked the image itself? Maybe when whoever did it, didn't see it wasn't opaque at all.

Sorry if it is worthless ;_;

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Save and Load screen not working!<not solved T~T>

#3 Post by nyaatrap » Mon Feb 04, 2013 8:51 pm

I never use imagemap and first time to notice "clicked". While other buttons use "action"

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: Save and Load screen not working!<not solved T~T>

#4 Post by PyTom » Mon Feb 04, 2013 8:59 pm

Have you tried blowing away the cache directory?
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
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Re: Save and Load screen not working!<solved!>

#5 Post by MioSegami » Mon Feb 04, 2013 11:45 pm

Ah thanks everyone! Deleting the Cache folder worked :)!!!
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

Post Reply

Who is online

Users browsing this forum: Alex