Mysterious error? File "renpy/common/00keymap.rpy", line 3

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
littanana
Regular
Posts: 48
Joined: Mon Sep 05, 2016 2:15 pm
Tumblr: girlgaymer
Contact:

Mysterious error? File "renpy/common/00keymap.rpy", line 3

#1 Post by littanana »

I don't know what causes this to come up. I only had done changes in my options, and script .rpy files today even though it tells me the error was in 00keymap.rpy which i have no idea what that is.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00keymap.rpy", line 397, in <module>
    renpy.take_screenshot((config.thumbnail_width, config.thumbnail_height))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

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

Full traceback:
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\bootstrap.py", line 277, in bootstrap
    renpy.main.main()
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\main.py", line 406, in main
    if renpy.parser.report_parse_errors():
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\parser.py", line 2537, in report_parse_errors
    renpy.display.error.report_parse_errors(full_text, error_fn)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\error.py", line 171, in report_parse_errors
    error_fn = error_fn,
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\game.py", line 268, in invoke_in_new_context
    return callable(*args, **kwargs)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\error.py", line 42, in call_exception_screen
    return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\ui.py", line 278, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 2496, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 2825, in interact_core
    renpy.exports.reload_script()
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\exports.py", line 1524, in reload_script
    renpy.game.call_in_new_context("_save_reload_game")
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\game.py", line 316, in call_in_new_context
    return renpy.execution.run_context(False)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\execution.py", line 734, in run_context
    context.run()
  File "lib/windows-i686/00keymap.rpyc", line 391, in script
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\ast.py", line 805, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\python.py", line 1641, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00keymap.rpy", line 397, in <module>
    renpy.take_screenshot((config.thumbnail_width, config.thumbnail_height))
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\exports.py", line 1479, in take_screenshot
    renpy.game.interface.take_screenshot(scale, background=background)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 1956, in take_screenshot
    surf = renpy.display.scale.smoothscale(surf, scale)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\scale.py", line 78, in real_smoothscale
    dest = pgrender.surface_unscaled(size, src)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\pgrender.py", line 113, in surface
    surf = Surface((width + 4, height + 4), 0, sample)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
 

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Mysterious error? File "renpy/common/00keymap.rpy", li

#2 Post by Ocelot »

I only had done changes in my options
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
It seems that you accidentally removed line which sets height or width of something, so game tries to add undefined variable to integer.

Check the difference between previous verson and current one.
< < insert Rick Cook quote here > >

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Mysterious error? File "renpy/common/00keymap.rpy", li

#3 Post by papiersam »

That error gets thrown sometimes when you try using improper operands and stuff. See this line:

Code: Select all

    renpy.take_screenshot((config.thumbnail_width, config.thumbnail_height))
That line from your options.rpy is causing an error with the function in 00keymap.rpy. So its exactly what you changed in options.rpy/script.rpy that's causing this.

User avatar
littanana
Regular
Posts: 48
Joined: Mon Sep 05, 2016 2:15 pm
Tumblr: girlgaymer
Contact:

Re: Mysterious error? File "renpy/common/00keymap.rpy", li

#4 Post by littanana »

Umm... So like the issue is I'm trying to change things back to what it was previously. But I can't remember what I changed. Also the errors don't come up all the time?

Just now I got this.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
IgnoreLayers: 

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

Full traceback:
  File "lib/windows-i686/script.rpyc", line 116, in script
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\ast.py", line 1265, in execute
    renpy.exports.with_statement(trans, paired)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\exports.py", line 1370, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 2058, in do_with
    clear=clear)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 2496, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\core.py", line 3172, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\layout.py", line 928, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\layout.py", line 928, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\layout.py", line 928, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\nana\Desktop\renpy-6.99.11-sdk\renpy\display\screen.py", line 654, in event
    raise renpy.display.layout.IgnoreLayers()
IgnoreLayers: 

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
art school girlfriend 1.0
any idea changing what could cause something like this?

User avatar
littanana
Regular
Posts: 48
Joined: Mon Sep 05, 2016 2:15 pm
Tumblr: girlgaymer
Contact:

Re: Mysterious error? File "renpy/common/00keymap.rpy", li

#5 Post by littanana »

I think it had something to do with me trying to set outlines.

Code: Select all

init python:
    style.navigation_button_text.outlines = [ (1, "#000000", 0, 0) ]
    style.quick_button_text.outlines = [ (1, "#000000", 0, 0) ] 
    style.confirm_button_text.outlines = [ (1, "#000000", 0, 0) ] 
    style.confirm_promt_text.outlines = [ (1, "#000000", 0, 0) ] 
I don't have outlines now and everything is working fine...

Any other ways to set outlines? If this one is breaking my game.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Imperf3kt, wizard_jpg