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.
We are developing a game in which sometimes the game is waiting for the player to click something. The way we managed to do this is by using a while-true-pause scheme. It has worked in previous games and even in this one until recently. This error appears:
This has worked for years. If we click Ignore in the error page the game continues smoothly. We would like (if possible) to just continue without the error. Is it possible?
We have tried unsuccesfully:
- to use a try-except
- to delete the while-true and use a jump to the beginning
- to fool the while True
Any ideas?
Thank you in advance!
Last edited by apexchimps on Sat Jul 24, 2021 8:45 am, edited 1 time in total.
default playing = true
label start:
while playing:
pass
not sure though, never used this kind of method before. I wouldn't suggest doing it either since renpy itself is already running on an infinite loop to make the game work.
If you're monitoring something, use periodic callbacks or screens.
How about forcing interaction instead of using pause with a timeout? Maybe with a jump back if there are buttons which do not jump in different parts of script?
Thank you for your quick answers, hell_oh_world, Ocelot and Alex!
I have tried your solutions and I was able to solve it! In the end it has been a mixture of Ocelot's #1 solution and Alex's #1 solution.
By removing the while-true and leaving just the pause (thanks Alex!) it worked almost right, but one button returned to the main menu. That is where Ocelot's answer kicks in. This button wasn't jumping appropriately. So thanks Ocelot!