Right clicking in game menu causing error.

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
Davidk
Newbie
Posts: 9
Joined: Wed Feb 07, 2018 8:06 pm
Projects: Placeholder
Contact:

Right clicking in game menu causing error.

#1 Post by Davidk »

This is pretty much the least intrusive error I've run into as it ONLY happens when going into preferences from the main menu, but I still want to know how this happened and how I can get rid of it just to prevent any bad first impressions.

Here's the error message:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: Required parameter title has no value.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\ast.py", line 827, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\python.py", line 1764, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in <module>
    ui.interact()
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\core.py", line 2565, in interact
    scene_lists.replace_transient()
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\core.py", line 831, in replace_transient
    self.remove(layer, tag)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\core.py", line 1120, in remove
    self.hide_or_replace(layer, remove_index, "hide")
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\core.py", line 1044, in hide_or_replace
    d = oldsle.displayable._hide(now - st, now - at, prefix)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\screen.py", line 445, in _hide
    self.update()
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\display\screen.py", line 580, in update
    self.screen.function(**self.scope)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\ast.py", line 152, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "C:\Users\cakem_000\Desktop\renpy-6.99.13-sdk.7z\renpy-6.99.13-sdk\renpy\ast.py", line 120, in apply
    raise Exception("Required parameter %s has no value." % name)
Exception: Required parameter title has no value.
And here's what the first traceback file says minus the first 20 lines which is all copyright stuff.

Code: Select all

init python:

    layout.provides('main_menu')

label main_menu_screen:

    python hide:
        name = renpy.session.pop("_main_menu_screen", "main_menu")
        args = renpy.session.pop("_main_menu_screen_args", tuple())
        kwargs = renpy.session.pop("_main_menu_screen_kwargs", { })

        renpy.show_screen(name, *args, **kwargs)

        ui.interact()

    return
Anyone have any ideas? This is pretty much the last thing I need to figure out before I start the distribution building process.

User avatar
Davidk
Newbie
Posts: 9
Joined: Wed Feb 07, 2018 8:06 pm
Projects: Placeholder
Contact:

Re: Right clicking in game menu causing error.

#2 Post by Davidk »

Figured it out on my own. Messed something up in the screens.rpy file trying to make the game menu background solid rather than transparent. Switched it back and it's all good.

Post Reply

Who is online

Users browsing this forum: No registered users