[solved]problem with imagemap saveload

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.
Message
Author
User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

[solved]problem with imagemap saveload

#1 Post by fenol »

hey i have problem while customizing my saveload.

this is what i use

Code: Select all

# Save, Load

screen file_picker:

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

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (740, 232, 75, 73) clicked file_picker("previous")
        hotspot (832, 232, 75, 73) clicked file_picker("page_1")
        hotspot (1074, 232, 75, 73) clicked file_picker("page_2")
        hotspot (1166, 232, 75, 73) clicked file_picker("page_3")
        hotspot (1166, 232, 75, 73) clicked file_picker("next")
        hotspot (1166, 232, 75, 73) clicked file_picker("slot_1")
        hotspot (1166, 232, 75, 73) clicked file_picker("slot_2")
        hotspot (1166, 232, 75, 73) clicked file_picker("slot_3")
        
init -2 python:
      style.mm_button.size_group = "gm"
this code do not changed anything inside my saveload, but i used this kind of script for my main menu, preference, and exit prompt and it's work.
anyone know the right code? or something wrong with my script?
please help..!
Øp!
Last edited by fenol on Sun Oct 16, 2011 4:26 am, edited 1 time in total.
Image
[ PIXIV ] [ deviantArt ]

Øp!

nanashi
Regular
Posts: 78
Joined: Tue Aug 09, 2011 12:54 am
Contact:

Re: problem with imagemap saveload

#2 Post by nanashi »

So the game doesn't even launch or does it stops before the imagemap?
Can you post your traceback?

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#3 Post by Alex »

And what do you have in "screen save:" and "screen load:"?

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#4 Post by fenol »

Alex wrote:And what do you have in "screen save:" and "screen load:"?
i deleted it all.. left just like in above.
if i'm not deleting it, it is like this

Code: Select all

screen file_picker:

    frame:
        style "file_picker_frame"

        has vbox

        # The buttons at the top allow the user to pick a
        # page of files.
        hbox:
            style_group "file_picker_nav"
            
            textbutton _("Previous"):
                action FilePagePrevious()

            textbutton _("Auto"):
                action FilePage("auto")

            for i in range(1, 9):
                textbutton str(i):
                    action FilePage(i)
                    
            textbutton _("Next"):
                action FilePageNext()

        $ columns = 2
        $ rows = 5
                
        # Display a grid of file slots.
        grid columns rows:
            transpose True
            xfill True
            style_group "file_picker"
            
            # Display ten file slots, numbered 1 - 10.
            for i in range(1, columns * rows + 1):

                # Each file slot is a button.
                button:
                    action FileAction(i)
                    xfill True

                    has hbox

                    # Add the screenshot.
                    add FileScreenshot(i)
                    
                    # Format the description, and add it as text.
                    $ description = "% 2s. %s\n%s" % (
                        FileSlotName(i, columns * rows),
                        FileTime(i, empty=_("Empty Slot.")),
                        FileSaveName(i))

                    text description

                    key "save_delete" action FileDelete(i)
                    
                    
screen save:

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

    use navigation
    use file_picker

screen load:

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

    use navigation
    use file_picker

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)
ah, with my script before i changed it, it do changed the view. but only with the navigation and background.
i dunno how to place the imagemap for the slot.
can find my problem?

nanashi wrote:So the game doesn't even launch or does it stops before the imagemap?
Can you post your traceback?
it's launch. clearly do not have any problem report.
the image of my saveload with my code above do not changed anything inside my saveload menu. just like 'usual' save load.

Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#5 Post by Alex »

i deleted it all.
So Ren'Py used the default ones. If you want to use your custom save / load screens, you should put back

Code: Select all

screen save:

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

    use navigation
    use file_picker

screen load:

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

    use navigation
    use file_picker
(also, don't forget about "screen navigation:")

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#6 Post by fenol »

now i put it back and become like this

Code: Select all

# Save, Load

screen file_picker:
    
    tag menu
    use navigation
    
# The background of the game menu.
    window:
         style "gm_root"

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (37, 83, 25, 42) action FilePagePrevious()
        hotspot (37, 129, 27, 42) action FilePage(i)
        hotspot (37, 173, 27, 42) action FilePage(i)
        hotspot (37, 219, 27, 42) action FilePage(i)
        hotspot (37, 490, 27, 42)  action FilePageNext()
        
        hotspot (144, 48, 135, 145) action FileAction(i)
        hotspot (311, 48, 135, 145) action FileAction(i)
        hotspot (480, 48, 135, 145) action FileAction(i)

                    # Add the screenshot.
                    add FileScreenshot(i)
                   
                    # Format the description, and add it as text.
                    $ description = "% 2s. %s\n%s" % (
                        FileSlotName(i, columns * rows),
                        FileTime(i, empty=_("Empty Slot.")),
                        FileSaveName(i))

                    text description

                    key "save_delete" action FileDelete(i)

screen save:

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

    use navigation
    use file_picker

screen load:

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

    use navigation
    use file_picker
    
        
init -2 python:
      style.mm_button.size_group = "gm"
but it alwasy gimme error in the hotspot state.. it said
"hotspot does not expect a block. Please check the indentation of the line after this one.
hotspot (480, 48, 135, 145) action FileAction(i)
^"

what should i do so i can make it right??

Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#7 Post by Alex »

but it alwasy gimme error in the hotspot state.. it said
"hotspot does not expect a block. Please check the indentation of the line after this one.
hotspot (480, 48, 135, 145) action FileAction(i)
^"
That's ok - http://www.renpy.org/wiki/renpy/FAQ#How ... _blocks.3F or http://www.renpy.org/doc/html/language_ ... and-blocks

Also, you need to change your "screen file_picker:" code a bit if you want your save / load screens to be made of imagemaps. You can read about it here - http://lemmasoft.renai.us/forums/viewto ... 4&start=15

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#8 Post by fenol »

i read the thread u gave and now i used this..

Code: Select all

screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))
    frame:
        background None xmargin 5 ymargin 5
        has vbox
        add FileScreenshot(number)
        text file_text 

screen load:
    tag menu
    use navigation   

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (740, 232, 75, 73) clicked FilePage("previous")
        hotspot (832, 232, 75, 73) clicked FilePage("page_1")
        hotspot (1074, 232, 75, 73) clicked FilePage("page_2")
        hotspot (1166, 232, 75, 73) clicked FilePage("page_3")
        hotspot (1166, 232, 75, 73) clicked FilePage("next")
        
        hotspot (1166, 232, 75, 73) clicked FileAction(0):
            use load_save_slot(number=0)
        hotspot (1166, 232, 75, 73)clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (1166, 232, 75, 73)clicked FileAction(2):
            use load_save_slot(number=2)
                    

screen save:
    tag menu
    use navigation 
    
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (740, 232, 75, 73) clicked FilePage("previous")
        hotspot (832, 232, 75, 73) clicked FilePage("page_1")
        hotspot (1074, 232, 75, 73) clicked FilePage("page_2")
        hotspot (1166, 232, 75, 73) clicked FilePage("page_3")
        hotspot (1166, 232, 75, 73) clicked FilePage("next")
        
        hotspot (1166, 232, 75, 73) clicked FileAction(0):
            use load_save_slot(number=0)
        hotspot (1166, 232, 75, 73)clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (1166, 232, 75, 73)clicked FileAction(2):
            use load_save_slot(number=2)

init -2 python:
    style.file_picker_ss_window.xpos = 248
    style.file_picker_ss_window.ypos = 11
    config.thumbnail_width = 108   
    config.thumbnail_height = 81
now i got my image background but nothing works except the navigation..
Image

now i'm confused
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#9 Post by Alex »

Mmm, you need to read some more of that thread...
And I'm not quite understand how should your save / load screen looks like. The default Ren'py screens made of: "navigation" (screen that has "return", "prefs", "load", "save", "return to main menu" and "quit" buttons) and "file_picker" (screen that actually has thumbs of save files and buttons to move between pages of saves). Looking to your screenshot, I assum that your screen has a "file_picker" and a button "back" (or is it a part of an imagemap?). It looks like you need 9 save slots, so you should set 9 hotspots, that will use "load_save_slot"s. And you need to reread about code for "screen load_save_slot:".

What's the size of your game screen - 800x600 pxls or 1241x... pxls? (your screenshot is 800x600, but in your code you use hotspots that placed at (1166, 232)).

Code: Select all

        hotspot (1166, 232, 75, 73) clicked FilePage("page_3")
        hotspot (1166, 232, 75, 73) clicked FilePage("next")
the same hotspot used for two different actions... :?:

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#10 Post by fenol »

button 'back' part of imagemap..
i only used 3 slot in my code since it's a pain to write it all while nothing works in my saveload code.. :lol:

and LOL my bad because i'm doing copy paste from many thread i dunno that i forgot to changed the hotspot from mine. :lol:
and it's works!

here's my code now, already completed it all :roll:

Code: Select all


screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))
    frame:
        background None xmargin 5 ymargin 5
        has vbox
        add FileScreenshot(number)
        text file_text 


    
        
screen load:
    tag menu
    use navigation   

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (37, 83, 25, 42) clicked FilePage("Previous")
        hotspot (37, 129, 27, 42) clicked FilePage("page_1")
        hotspot (37, 173, 27, 42) clicked FilePage("page_2")
        hotspot (37, 219, 27, 42) clicked FilePage("page_3")
        hotspot (37, 264, 27, 42) clicked FilePage("page_4")
        hotspot (37, 310, 27, 42) clicked FilePage("page_5")
        hotspot (37, 355, 27, 42) clicked FilePage("page_6")
        hotspot (37, 397, 27, 42) clicked FilePage("page_7")
        hotspot (37, 443, 27, 42) clicked FilePage("page_8")
        hotspot (32, 487, 34, 44) clicked FilePage("Next")
        
        hotspot (139, 43, 143, 153) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (311, 48, 135, 145) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (480, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (144, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (141, 227, 137, 147) clicked FileAction(4):
            use load_save_slot(number=4)
        hotspot (308, 227, 137, 147) clicked FileAction(5):
            use load_save_slot(number=5)
        hotspot (476, 227, 137, 147) clicked FileAction(6):
            use load_save_slot(number=6)
        hotspot (140, 403, 142, 153) clicked FileAction(7):
            use load_save_slot(number=7)
        hotspot (307, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=8)
        hotspot (476, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=9)
            

screen save:
    tag menu
    use navigation 
    
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (37, 83, 25, 42) clicked FilePage("Previous")
        hotspot (37, 129, 27, 42) clicked FilePage("page_1")
        hotspot (37, 173, 27, 42) clicked FilePage("page_2")
        hotspot (37, 219, 27, 42) clicked FilePage("page_3")
        hotspot (37, 264, 27, 42) clicked FilePage("page_4")
        hotspot (37, 310, 27, 42) clicked FilePage("page_5")
        hotspot (37, 355, 27, 42) clicked FilePage("page_6")
        hotspot (37, 397, 27, 42) clicked FilePage("page_7")
        hotspot (37, 443, 27, 42) clicked FilePage("page_8")
        hotspot (32, 487, 34, 44) clicked FilePage("Next")
        
        hotspot (139, 43, 143, 153) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (311, 48, 135, 145) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (480, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (144, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (141, 227, 137, 147) clicked FileAction(4):
            use load_save_slot(number=4)
        hotspot (308, 227, 137, 147) clicked FileAction(5):
            use load_save_slot(number=5)
        hotspot (476, 227, 137, 147) clicked FileAction(6):
            use load_save_slot(number=6)
        hotspot (140, 403, 142, 153) clicked FileAction(7):
            use load_save_slot(number=7)
        hotspot (307, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=8)
        hotspot (476, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=9)



init -2 python:
    style.file_picker_ss_window.xpos = 248
    style.file_picker_ss_window.ypos = 11
    config.thumbnail_width = 108   
    config.thumbnail_height = 81    

but i got some error.. like this

Image


Image

nothing different in slot in every page (i mean in slot number. in usual in page after 1 the slot number become 10-11 and more, right?)
and everytime i save in slot one, my slot 3 got save too.
i think i already checked the hotspot code..

can help?


ah plus i forget it. how to add deleted key? i already put this one

Code: Select all

key "save_delete" action FileDelete(i)
inside my saveload but it's error. i tried to put it in screen save or load, even in saveload slot, but still give me error. how should i put it?[/i]
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#11 Post by Alex »

1) <key "save_delete" action FileDelete(i)> should be a part of "screen load_save_slot:"
2) Try to change ("page_1") to (1) etc. and the "file_text" value to fix saveslot numbers problem
3) Your save problem caused by last line of this part of code

Code: Select all

        hotspot (139, 43, 143, 153) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (311, 48, 135, 145) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (480, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (144, 48, 135, 145) clicked FileAction(3):
You see, the last hotspot practically the same as first one, so when you click it both works (delete the last one).
4) Add a hotspot for "back" (try <hotspot (x, y, width, height) clicked Return()>)
http://lemmasoft.renai.us/forums/viewto ... 15#p141296

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#12 Post by fenol »

deleted solve but now i got another error.. now my stomach hurt. :cry:

this my code now

Code: Select all

        hotspot (37, 83, 27, 42) clicked FilePage("previous")
        hotspot (37, 129, 27, 42) clicked FilePage("1")
        hotspot (37, 173, 27, 42) clicked FilePage("2")
        hotspot (37, 219, 27, 42) clicked FilePage("3")
        hotspot (37, 264, 27, 42) clicked FilePage("4")
        hotspot (37, 310, 27, 42) clicked FilePage("5")
        hotspot (37, 355, 27, 42) clicked FilePage("6")
        hotspot (37, 397, 27, 42) clicked FilePage("7")
        hotspot (37, 443, 27, 42) clicked FilePage("8")
        hotspot (37, 487, 27, 42) clicked FilePage("next")
        
        hotspot (139, 43, 143, 153) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (311, 48, 135, 145) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (480, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (141, 227, 137, 147) clicked FileAction(4):
            use load_save_slot(number=4)
        hotspot (308, 227, 137, 147) clicked FileAction(5):
            use load_save_slot(number=5)
        hotspot (476, 227, 137, 147) clicked FileAction(6):
            use load_save_slot(number=6)
        hotspot (140, 403, 142, 153) clicked FileAction(7):
            use load_save_slot(number=7)
        hotspot (307, 403, 142, 153) clicked FileAction(8):
            use load_save_slot(number=8)
        hotspot (476, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=9)
            

screen save:
    tag menu
    use navigation 
    
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"

        hotspot (37, 83, 27, 42) clicked FilePage("previous")
        hotspot (37, 129, 27, 42) clicked FilePage("1")
        hotspot (37, 173, 27, 42) clicked FilePage("2")
        hotspot (37, 219, 27, 42) clicked FilePage("3")
        hotspot (37, 264, 27, 42) clicked FilePage("4")
        hotspot (37, 310, 27, 42) clicked FilePage("5")
        hotspot (37, 355, 27, 42) clicked FilePage("6")
        hotspot (37, 397, 27, 42) clicked FilePage("7")
        hotspot (37, 443, 27, 42) clicked FilePage("8")
        hotspot (37, 487, 27, 42) clicked FilePage("next")
        
        hotspot (139, 43, 143, 153) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (311, 48, 135, 145) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (480, 48, 135, 145) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (141, 227, 137, 147) clicked FileAction(4):
            use load_save_slot(number=4)
        hotspot (308, 227, 137, 147) clicked FileAction(5):
            use load_save_slot(number=5)
        hotspot (476, 227, 137, 147) clicked FileAction(6):
            use load_save_slot(number=6)
        hotspot (140, 403, 142, 153) clicked FileAction(7):
            use load_save_slot(number=7)
        hotspot (307, 403, 142, 153) clicked FileAction(8):
            use load_save_slot(number=8)
        hotspot (476, 403, 142, 153) clicked FileAction(9):
            use load_save_slot(number=9)

screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (
                        FileSlotName(number, 4),
                        FileTime(number, empty=_("Empty Slot.")),
                        FileSaveName(number))

    add FileScreenshot(number) xpos 11 ypos 7
    text file_text xpos 80 ypos 10
   
    key "save_delete" action FileDelete(number)
error keep saying this
Image

i already tried to change "FileSlotName(number, 4)," to "1" but still error..

and when i used next prev from the thread that u gave like below this

Code: Select all

clicked FilePagePrevious()
clicked FilePageNext(8)
i got another similar error..
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#13 Post by Alex »

1) $ description = "% 2s. %s\n%s" - all those "s"s an "d"s are sometimes so annoying
2) FileSlotName(number, 9), - 'cause you have 9 slots per page
3)
and when i used next prev from the thread that u gave like below this
Code:
clicked FilePagePrevious()
clicked FilePageNext(8)

i got another similar error..
Hm, that strange... you can look the original "screens.rpy" (in any other project) and see that this should work. Could you post error message?

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: problem with imagemap saveload

#14 Post by fenol »

"ValueError: invalid literal for int() with base 10: 'Next'"
^
this..

Code: Select all

I'm sorry, but an uncaught exception occurred.

ValueError: invalid literal for int() with base 10: 'Next'

While running game code:
 - script at line 828 of D:\renpy-6.11.2/common/00library.rpy
 - python at line 832 of D:\renpy-6.11.2/common/00library.rpy.
 - script at line 11 of D:\renpy-6.11.2/common/_layout/screen_main_menu.rpym
 - python at line 273 of D:\My Project\custom_menus-all/game/screens.rpy.
 - python at line 1292 of D:\renpy-6.11.2/common/00screen.rpy.

-- Full Traceback ------------------------------------------------------------

  File "D:\My Project\custom_menus-all\renpy\bootstrap.py", line 279, in bootstrap
  File "D:\My Project\custom_menus-all\renpy\main.py", line 320, in main
  File "D:\My Project\custom_menus-all\renpy\main.py", line 93, in run
  File "D:\My Project\custom_menus-all\renpy\execution.py", line 259, in run
  File "D:\My Project\custom_menus-all\renpy\ast.py", line 588, in execute
  File "D:\My Project\custom_menus-all\renpy\python.py", line 957, in py_exec_bytecode
  File "D:\renpy-6.11.2/common/00library.rpy", line 832, in <module>
  File "D:\My Project\custom_menus-all\renpy\game.py", line 297, in call_in_new_context
  File "D:\My Project\custom_menus-all\renpy\execution.py", line 259, in run
  File "D:\My Project\custom_menus-all\renpy\ast.py", line 588, in execute
  File "D:\My Project\custom_menus-all\renpy\python.py", line 957, in py_exec_bytecode
  File "D:\renpy-6.11.2/common/_layout/screen_load_save.rpym", line 17, in <module>
  File "D:\My Project\custom_menus-all\renpy\ui.py", line 236, in interact
  File "D:\My Project\custom_menus-all\renpy\display\core.py", line 1638, in interact
  File "D:\My Project\custom_menus-all\renpy\display\core.py", line 583, in replace_transient
  File "D:\My Project\custom_menus-all\renpy\display\core.py", line 829, in remove
  File "D:\My Project\custom_menus-all\renpy\display\core.py", line 769, in hide_or_replace
  File "D:\My Project\custom_menus-all\renpy\display\screen.py", line 175, in _hide
  File "D:\My Project\custom_menus-all\renpy\display\screen.py", line 244, in update
  File "D:\My Project\custom_menus-all\renpy\screenlang.py", line 1146, in __call__
  File "D:\My Project\custom_menus-all\renpy\python.py", line 957, in py_exec_bytecode
  File "D:\My Project\custom_menus-all/game/screens.rpy", line 273, in <module>
  File "D:\renpy-6.11.2/common/00screen.rpy", line 1292, in __init__
ValueError: invalid literal for int() with base 10: 'Next'

While running game code:
 - script at line 828 of D:\renpy-6.11.2/common/00library.rpy
 - python at line 832 of D:\renpy-6.11.2/common/00library.rpy.
 - script at line 11 of D:\renpy-6.11.2/common/_layout/screen_main_menu.rpym
 - python at line 273 of D:\My Project\custom_menus-all/game/screens.rpy.
 - python at line 1292 of D:\renpy-6.11.2/common/00screen.rpy.

Ren'Py Version: Ren'Py 6.12.0e
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: problem with imagemap saveload

#15 Post by Alex »

Um, and what code do you actualy use <clicked FilePage("next")> or <clicked FilePageNext(8)>? (last one should work)

Post Reply

Who is online

Users browsing this forum: Google [Bot], voluorem