Max recursion depth help?

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
moodykillmar
Newbie
Posts: 8
Joined: Sun Jun 11, 2017 12:27 pm
Contact:

Max recursion depth help?

#1 Post by moodykillmar »

Here's my code

Code: Select all

label chapter_two:
    
    scene girl dorm day
    with fadehold
    "I woke up the next day with the strangest feeling."
    "It was like I had forgotten something important."
    
    show yuki smirk at right
    
    y "You were out late last night."
    y "Even when I went to bed at {i}12 AM{/i} you still weren't back."
    show risa bothered at left
    "{i} Yuki can never just mind her own business.{/i}"
    show risa neutral
    mc "Yeah, Takara needed help with something. We ended up losing track of time."    
    "{i}My room mate is Yuki Ryusaki.{/i}"
    "{i}We don't exactly get along, but at least she keeps to her side of the room.{/i}"
    show yuki smile
    y "It's almost time for morning classes."
    "I looked at the clock on my night stand."
    hide yuki
    show risa worry
    "{i}Yikes!{/i}"
    "I hurriedly got ready. Yuki had already left before I had finished."
    scene frizzy_clouds
    "I jogged to class that day."
    who "%(mc)s! %(mc)s, wait up!"
    "I heard a voice call to me."
    menu:
        "I don't have time to wait, I'm already late!":
    
            jump class_1
        "I'm already late, what does a few minutes matter?":
            jump optional_rei
            
    return
    
    
    
label optional_rei:
    $ good_pts+=10
    scene school
    show rei grin at right
    show risa normal
    r "Hey! It's not like you to be late."
    mc "Yeah, I slept in. Good morning, Rei."
    show rei normal
    r "Morning."
    "{i}Rei is two years my senior, but we live in the same dormitory.{/i}"
    mc "Aren't you going to be late for class? I know I am, but I decided to stop."
    r "I don't think I've ever been on-time this year..."
    show rei grin
    rs "If I keep it up, I may break my record!"
    mc "Well I need to get to class now, my teacher hates it when we're late."
    r "Bye then!"
    hide rei
    jump class_1
    return
If I skip the optional_rei label, it works fine.
I get this message when I run it.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 908, in script
    r "Hey! It's not like you to be late."
  File "renpy/common/000window.rpy", line 98, in _window_auto_callback
    _window_show()
  File "renpy/common/000window.rpy", line 60, in _window_show
    renpy.with_statement(trans)
RuntimeError: maximum recursion depth exceeded
The full traceback is more than 2000 lines, so I don't think I'll post it.
It's okay!
Turns out I had the file name school and the image calling "school" bad idea :D
Attachments
script.rpy
(31.44 KiB) Downloaded 92 times

Post Reply

Who is online

Users browsing this forum: Google [Bot]