Invalid literal for int() with base 10? (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
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Invalid literal for int() with base 10? (Solved)

#1 Post by Hijiri » Mon Jan 14, 2013 1:29 am

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game\screens.rpy", line 210, in python
  File "game\screens.rpy", line 316, in python
  File "game\screens.rpy", line 276, in python
ValueError: invalid literal for int() with base 10: 'Quick'

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

Full traceback:
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\execution.py", line 266, in run
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\ast.py", line 646, in execute
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\python.py", line 1172, in py_exec_bytecode
  File "common/_layout/screen_main_menu.rpym", line 11, in <module>
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\ui.py", line 237, in interact
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\core.py", line 1824, in interact
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\core.py", line 554, in replace_transient
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\core.py", line 824, in remove
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\core.py", line 752, in hide_or_replace
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\screen.py", line 178, in _hide
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\screen.py", line 247, in update
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\screenlang.py", line 1193, in __call__
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\python.py", line 1172, in py_exec_bytecode
  File "game\screens.rpy", line 210, in <module>
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\screen.py", line 540, in use_screen
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\screenlang.py", line 1193, in __call__
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\python.py", line 1172, in py_exec_bytecode
  File "game\screens.rpy", line 316, in <module>
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\display\screen.py", line 540, in use_screen
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\screenlang.py", line 1193, in __call__
  File "C:\Users\Mojica\Desktop\VN Junk\renpy\renpy\python.py", line 1172, in py_exec_bytecode
  File "game\screens.rpy", line 276, in <module>
  File "common/00screen.rpy", line 1525, in __init__
ValueError: invalid literal for int() with base 10: 'Quick'

Windows-7-6.1.7601-SP1
Ren'Py 6.14.1.366
AeCon:DChRh 0.0
The strange thig is that the code was working fine earlier today.

Code: Select all

screen file_picker:

    imagemap:
        ground "SL_ground.png"
        selected_idle "SL_selected_idle.png"
        hover "SL_hover.png"
        hotspot (0,0,0,0) clicked FilePagePrevious()
        hotspot (266, 346, 25, 25) clicked FilePage(1)
        hotspot (338, 346, 25, 25) clicked FilePage(2)
        hotspot (410, 346, 25, 25) clicked FilePage(3)
        hotspot (483, 346, 25, 25) clicked FilePage(4)
        hotspot (554, 346, 25, 25) clicked FilePage(5)
        hotspot (627, 346, 25, 25) clicked FilePage(6)
        hotspot (698, 346, 25, 25) clicked FilePage(7)
        hotspot (770, 346, 25, 25) clicked FilePage(8)
        hotspot (841, 346, 25, 25) clicked FilePage(9)
        hotspot (917, 346, 95, 30) clicked FileLoad(1, page="quick", confirm=True, newest=False)
        hotspot (0,0,0,0) clicked FilePageNext(9)
       
        hotspot (42, 144, 300, 169) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (488, 144, 300, 169) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (936, 144, 300, 169) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (42, 398, 300, 169) clicked FileAction(4):
            use load_save_slot(number=4)
        hotspot (488, 398, 300, 169) clicked FileAction(5):
            use load_save_slot(number=5)
        hotspot (936, 398, 300, 169) clicked FileAction(6):
            use load_save_slot(number=6)    

        key "save_delete" action FileDelete(i)
Last edited by Hijiri on Mon Jan 14, 2013 6:46 pm, edited 1 time in total.
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

User avatar
Keul
Regular
Posts: 49
Joined: Wed May 06, 2009 3:42 am
Location: France - Strasbourg
Contact:

Re: Invalid literal for int() with base 10?

#2 Post by Keul » Mon Jan 14, 2013 9:52 am

Seems to be a problem with

Code: Select all

hotspot (917, 346, 95, 30) clicked FileLoad(1, page="quick", confirm=True, newest=False)
http://www.renpy.org/doc/html/screen_ac ... le-actions

FileLoad(name, confirm=True, page=None, newest=True)
[...]page
The page that the file will be loaded from. If None, the current page is used.[...]

FilePage(page)
Sets the file page to page, which should be one of "auto", "quick", or an integer.

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: Invalid literal for int() with base 10?

#3 Post by PyTom » Mon Jan 14, 2013 10:16 am

Are you using "Quick", rather than "quick", anywhere in your game?
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
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: Invalid literal for int() with base 10?

#4 Post by Hijiri » Mon Jan 14, 2013 5:11 pm

Keul wrote:Seems to be a problem with

Code: Select all

hotspot (917, 346, 95, 30) clicked FileLoad(1, page="quick", confirm=True, newest=False)
http://www.renpy.org/doc/html/screen_ac ... le-actions

FileLoad(name, confirm=True, page=None, newest=True)
[...]page
The page that the file will be loaded from. If None, the current page is used.[...]

FilePage(page)
Sets the file page to page, which should be one of "auto", "quick", or an integer.
Tried to change it, but I still get the same error.
PyTom wrote:Are you using "Quick", rather than "quick", anywhere in your game?
Nope. I searched through all my files, but nothing came up.
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

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: Invalid literal for int() with base 10?

#5 Post by PyTom » Mon Jan 14, 2013 6:15 pm

Hm... Have you tried deleting the persistent data?
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
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: Invalid literal for int() with base 10?

#6 Post by Hijiri » Mon Jan 14, 2013 6:46 pm

PyTom wrote:Hm... Have you tried deleting the persistent data?
That worked. THanks!
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

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: Invalid literal for int() with base 10? (Solved)

#7 Post by PyTom » Mon Jan 14, 2013 8:39 pm

For the record - I'm guessing that the page name of "Quick" was set at some point in the past, and then stayed saved even after it was changed.
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

Post Reply

Who is online

Users browsing this forum: Ocelot