Can't Increase Recursion Depth[RESOLVED]

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
cinnamoncookies
Newbie
Posts: 2
Joined: Tue Jan 16, 2018 9:50 pm
Contact:

Can't Increase Recursion Depth[RESOLVED]

#1 Post by cinnamoncookies »

My game script(https://pastebin.com/CCudk8R1), and at line 140 the game is crashing, and the traceback(full: https://pastebin.com/mygRsKfP) is saying that the recursion limit was exceeded. I can't seem to find a reason for either of the errors I receive.
Traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.
 
While running game code:
  File "game/script.rpy", line 140, in script
    jf"We're part of the Editor's Club! We got kicked out of our old room, though."
RuntimeError: maximum recursion depth exceeded while calling a Python object
When I attempt to increase the recursion limit:

Code: Select all

init:
    import sys sys setrecursiondepth(10000)
I receive an error:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 2: expected statement.
    import sys sys setrecursiondepth(10000)
                                    ^

Ren'Py Version: Ren'Py 6.99.14.3135
If I put them on two separate lines:

Code: Select all

init:
    import sys 
    sys.setrecursiondepth(10000)
I also receive an error:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 2: expected statement.
    import sys 
               ^

File "game/script.rpy", line 3: expected statement.
    syssetrecursiondepth(10000)
                               ^

Ren'Py Version: Ren'Py 6.99.14.3135
I'm very inexperienced with python, but I cannot seem to find any obvious issues with the code, and none have come up when I've checked it with other sources(PEP8, etc). The other posts I've found all seem to be resolved with increasing the recursion depth as I've tried, but nothing I've found has worked for me.
Last edited by cinnamoncookies on Tue Jan 16, 2018 10:39 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: Can't Increase Recursion Depth

#2 Post by PyTom »

image prism happy = "prism happy"

That's your problem. Left out the .png.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

cinnamoncookies
Newbie
Posts: 2
Joined: Tue Jan 16, 2018 9:50 pm
Contact:

Re: Can't Increase Recursion Depth

#3 Post by cinnamoncookies »

Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users