r/RenPy • u/Cold_Couple_8884 • 3d ago
Question How to fix RecursionError:maximum recursion depth exceeded on renpy visual novel
This is my first time making a visual novel and I don’t understand How to fix this
4
Upvotes




3
u/mugwhyrt 3d ago edited 3d ago
A recursion error suggests you have a function that's repeatedly calling itself.
r "Did I tell everyone?") in the game? Or does it happen as soon as you try to run the project?rbeing defined?1
u/AutoModerator 3d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/senshisun 3d ago
What's in line 994?
1
u/Adventurous_Shine606 3d ago
That exception report isn't pointing at the problem. The actual issue is in the background ; a screen pointing at a screen or a transition that refers to itself maybe. Copy bbcode and paste it in here. It will tell us exactly where the issue is.
1
u/TieClassic1541 3d ago
Hay una probabilidad alta que la misma pantalla de "choice" el que se encarga de mostrar las decisiones sea alguna funcion que añadiste o que renpy diga que hay demasiadas cosas mostrando en esa pantalla para quedarse sin memoria, O puede ser ese archivo "character.py" el causante del conflicto, ya que en el traceback dice que tambien tiene algo que ver ese archivo, si define alli tu personajes te recomiendo que no lo hagas en python puro, hazlo en Renpy
define r = Characters()es lo recomendable para no tener conflictos como estos.1
u/shyLachi 3d ago
Please post the code of the character r. Is this a new character? Did you change that character? Or did you create another variable called r?