Required parameter has no value

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
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Required parameter has no value

#1 Post by XxrenxX »

Code: Select all

While running game code:
  File "renpy/common/00gamemenu.rpy", line 173, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 173, in <module>
    $ ui.interact()
Exception: Required parameter enc has no value.
I'm trying to use this code or parts of it anyway to make a simple glossary. But I'm stuck at the parameter no value. I've taken their base codes as well and tested it in a new game with the same problem. I left a comment in the original thread as well but figured this would be faster.

Here's my screens code if needed.

Code: Select all

init python:
    #tried the below as enc and their original tag, made no difference
    enc = Encyclopaedia(
        show_locked_buttons=False,
        show_locked_entry=False,
        entry_screen="notes")

    note_example = EncEntry(
    name="Example",
    text=[
        "Row one of example text",
        "Tow two, ect"
    ],locked=False,)
    
   screen notes_page(enc, entry): 
    tag menu
    style_prefix "notes"
    imagemap:
        id "notes_page"
        xoffset 341
        ground "gui/Phone/Cell_Notes_G.png"
        hover "gui/Phone/Cell_Notes_H.png"
        hotspot (752,163,69,74) action ShowMenu("phone_menu")
        viewport:
            xpos 459
            ypos 241
            xysize (365, 421)
            draggable True
            mousewheel True
            scrollbars "vertical"
            vbox:
                textbutton "Example" action enc.SetEntry(note_example) style "notes_button_text"

screen notes(enc):
    tag menu
    modal True
    imagemap:
        style_prefix "notes"
        xoffset 341
        ground "gui/Phone/Cell_Notes_G.png"
        hover "gui/Phone/Cell_Notes_H.png"
        hotspot (752,163,69,74) action ShowMenu("notes_page")

        vbox:
            spacing 10
            xpos 459
            ypos 241
            xysize (365, 421)
            frame:
                xfill True
                text enc.active.label style "notes_entry_title" #Indicate which entry we're currently on

            hbox: #If the entry an image
                if enc.active.current_page.has_image:
                    frame:
                        viewport:
                            scrollbars None
                            draggable True
                            mousewheel True
                            edgescroll (1.0, 1.0)
                            add enc.active.current_page.image

                    frame:
                        id "entry_window"
                        viewport:
                            scrollbars "vertical"
                            mousewheel True
                            draggable True
                            vbox:
                                spacing 15
                                for item in enc.active.current_page.text:
                                    text item style "notes_entry_text"

                else: #If there's no image
                    frame:
                        id "entry_window"
                        viewport:
                            scrollbars "vertical"
                            mousewheel True
                            draggable True
                            vbox:
                                spacing 15
                                for item in enc.active.current_page.text:
                                    text item style "notes_entry_text"

Post Reply

Who is online

Users browsing this forum: Google [Bot]