renpy.call can't be used when the next node is undefined

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
meiri
Regular
Posts: 177
Joined: Wed Jun 25, 2014 6:21 pm
Projects: Tutor Tabitha, Movement
Organization: Blue Bottlecap Games
Location: East Coast, US
Contact:

renpy.call can't be used when the next node is undefined

#1 Post by meiri » Sat Nov 01, 2014 10:50 pm

I have an imagebutton which jumps to a label:

Code: Select all

imagebutton auto "browser_gfx/home_button_%s.png" xpos 0 ypos 0 focus_mask True action Jump("not_done")
# By the way, this imagebutton is under an "else:" 
And the label contains a variable using renpy.random.choice, and inside of that is a series of strings. I insert that variable into some dialogue in the label.

Code: Select all

label dont_click:
    scene bg computer with dissolve
    $ adresp = renpy.random.choice(["words", 
        "words",
        "words",
        "words",
        "words",
        "words",
        "words"
        ])
    c smile2 worried "[adresp]"
    $ renpy.call_screen("deeble_results")
When I click the imagebutton once, it runs just fine, but if I click it a second time, it returns an error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: renpy.call can't be used when the next node is undefined.

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

Full traceback:
  File "C:\Users\Faith\Documents\Programs\renpy-6.17.6-sdk\renpy\bootstrap.py", line 289, in bootstrap
    renpy.main.main()
  File "C:\Users\Faith\Documents\Programs\renpy-6.17.6-sdk\renpy\main.py", line 357, in main
    run(restart)
  File "C:\Users\Faith\Documents\Programs\renpy-6.17.6-sdk\renpy\main.py", line 77, in run
    renpy.execution.run_context(True)
  File "C:\Users\Faith\Documents\Programs\renpy-6.17.6-sdk\renpy\execution.py", line 549, in run_context
    context.run()
  File "C:\Users\Faith\Documents\Programs\renpy-6.17.6-sdk\renpy\execution.py", line 328, in run
    raise Exception("renpy.call can't be used when the next node is undefined.")
Exception: renpy.call can't be used when the next node is undefined.

Windows-post2008Server-6.2.9200
Ren'Py 6.18.2.729
Movement 0.0
All I know is that it has to do with the $ renpy.call_screen at the end of the label but from my understanding Ive defined the screen and everything:

Code: Select all

screen deeble_results:

    # irrelevant code... i think. 
Any help is, of course, appreciated :)
What's in a loop? A loop iterated in any other way would output as sweet.
--
Have a look at my GxG kinetic novel, Movement, if you have the chance?

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: renpy.call can't be used when the next node is undefined

#2 Post by PyTom » Sun Nov 02, 2014 12:23 am

Can you send me a replication? Something weird is going on here (a call inside a screen, or in init code?), but what you've provided isn't enough for me to figure it out.

It's unlikely to be related to renpy.call_screen - despite the names, call screen and call are very different internally.
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
meiri
Regular
Posts: 177
Joined: Wed Jun 25, 2014 6:21 pm
Projects: Tutor Tabitha, Movement
Organization: Blue Bottlecap Games
Location: East Coast, US
Contact:

Re: renpy.call can't be used when the next node is undefined

#3 Post by meiri » Sun Nov 02, 2014 8:39 pm

PyTom wrote:Can you send me a replication? Something weird is going on here (a call inside a screen, or in init code?), but what you've provided isn't enough for me to figure it out.

It's unlikely to be related to renpy.call_screen - despite the names, call screen and call are very different internally.
Sure, I've pm'ed it to you.
What's in a loop? A loop iterated in any other way would output as sweet.
--
Have a look at my GxG kinetic novel, Movement, if you have the chance?

Post Reply

Who is online

Users browsing this forum: Google [Bot]