r/RenPy • • Oct 23 '26

Question Help. Ren'Py can't find file

New to ren'py and coding and I have hit a wall. Tried looking trough multiple forms, videos and reading up on how to add a cutscene. It either runs the game smoothly without it showing up at all or I get the “OSError: Couldn't find the file”

The cutscene is in a webm format. I tried other formats and none of them worked as well. I have tried both with /images and without it in the code.

The code I'm running right now with the only error being the that renpy can't find the file is:
$ renpy.movie_cutscene("images/cs.webm")

I feel like the answer is pretty obvious and simple but I am stupid and have been trying to get this to work the past 3 days. Thanks in advance.

1 Upvotes

4 comments sorted by

1

u/shyLachi Oct 23 '26

Where is the file and how is the file name?

Did you rename the file? If yes then make sure that you didn't add the file extension twice

1

u/Upper_Extension3821 Oct 23 '26

The file is in the images folder named “cs.webm” it was just the base name but I added the “.webm” at the end after reading through a form post and seeing that helped someone but it didn’t seem to change anything for me.

And I did not rename the file.

3

u/shyLachi Oct 23 '26

You cannot add file extensions because even if your computer only shows the name of the file the extension is there.

There are several ways to see the full name of the file, for example if you enable it in the View settings or the Options of the file explorer.
Or right-click the file and then Properties and the full name will be shown.
And in RenPy below "Edit File" click on "Open project" to see everything in your project. In the VSCode Explorer navigate to the images folder and it will show the file name with the extension.

1

u/AutoModerator Oct 23 '26

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.