Ren'Py Menu Arguments [SOLVED]

JohnDupont

Active Member
Modder
May 26, 2017
838
2,810
Hi,

I'm trying to but I get the following error when starting the game:
1592744422520.png

I don't know if it matters but this is the traceback I get after closing it:
Python:
I'm sorry, but an uncaught exception occurred.

After loading the script.
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

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

Full traceback:
  File "XXX:\SOMERANDOMGAME\renpy\bootstrap.py", line 313, in bootstrap
    renpy.main.main()
  File "XXX:\SOMERANDOMGAME\renpy\main.py", line 415, in main
    if renpy.parser.report_parse_errors():
  File "XXX:\SOMERANDOMGAME\renpy\parser.py", line 2787, in report_parse_errors
    renpy.display.error.report_parse_errors(full_text, error_fn)
  File "XXX:\SOMERANDOMGAME\renpy\display\error.py", line 187, in report_parse_errors
    error_fn=error_fn,
  File "XXX:\SOMERANDOMGAME\renpy\game.py", line 281, in invoke_in_new_context
    return callable(*args, **kwargs)
  File "XXX:\SOMERANDOMGAME\renpy\display\error.py", line 45, in call_exception_screen
    return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
  File "XXX:\SOMERANDOMGAME\renpy\ui.py", line 289, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "XXX:\SOMERANDOMGAME\renpy\display\core.py", line 2672, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "XXX:\SOMERANDOMGAME\renpy\display\core.py", line 3350, in interact_core
    self.quit_event()
  File "XXX:\SOMERANDOMGAME\renpy\display\core.py", line 2376, in quit_event
    renpy.exports.take_screenshot()
  File "XXX:\SOMERANDOMGAME\renpy\exports.py", line 1599, in take_screenshot
    renpy.game.interface.take_screenshot(scale, background=background)
  File "XXX:\SOMERANDOMGAME\renpy\display\core.py", line 2122, in take_screenshot
    surf = renpy.display.scale.smoothscale(surf, scale)
  File "XXX:\SOMERANDOMGAME\renpy\display\scale.py", line 95, in real_smoothscale
    dest = pgrender.surface_unscaled(size, src)
  File "XXX:\SOMERANDOMGAME\renpy\display\pgrender.py", line 118, in surface
    surf = Surface((width + 4, height + 4), 0, sample)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Ren'Py 7.1.3.1092

I'm using the example given in the documentation. Do you have any idea what might be causing this issue?