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.
Is there any way to check if the game is running on RenpyWeb? My problem is actually that I have videos (webm) in my game and videos are not supported by Renpyweb yet. So on the web platform, I'd like to be able to replace them by an image for example, doing something like this:
I've never used RenpyWeb, so I suggest you either :
try to do with Python anything that would fail inside a browser (eg. writing a file on disk, doing a system call, ...) and try/except it : if you catch an error, is_renpy_web would be True.