documentation index ◦ reference manual ◦ function index

# Files and Directories

There are two main directories used by Ren'Py games.

### Base Directory

The base directory is the directory that contains all files that are distributed with the game. (It may also contain some files that are not distributed with the game.) Things like README files should be placed in the base directory, from where they will be distributed.

The base directory is created underneath the Ren'Py directory, and has the name of your game. For example, if your Ren'Py directory is named renpy-6.9.0, and your game is named "HelloWorld", your base directory will be renpy-6.9.0/HelloWorld.

### Game Directory

The game directory is almost always a directory named "game" underneath the base directory. For example, if your base directory is renpy-6.9.0/HelloWorld, your game directory will be renpy-6.9.0/HelloWorld/game.

However, Ren'Py searches directories in the following order:

- The name of the executable, without the suffix. For example, if the executable is named moonlight.exe, it will look for a directory named moonlight under the base directory.
- The name of the executable, without the suffix, and with a prefix ending with _ removed. For example, if the executable is moonlight_en.exe, Ren'Py will look for a directory named en.
- The directories "game", "data", and "launcher", in that order.

The launcher will only properly recognize the "game" and "data" directories, however.

The game directory contains all the files used by the game. It, including all subdirectories, is scanned for .rpy and .rpyc files, and those are combined to form the game script. It is scanned for .rpa archive files, and those are automatically used by the game. Finally, when the game gives a path to a file to load, it is loaded relative to the game directory. (But note that config.searchpath can change this.)

### Ignored Files

The following files and directories are not distributed with Ren'Py games, even if they are in the base directory.

- archived - This directory contains files that have been added to the archives by the archiver included with the Ren'Py launcher. The launcher scans this directory, along with the game directory, when building archives.
- icon.ico - This file is used to set the icon for a windows executable.
- icon.icns - This file is used to set the icon for a mac application.

documentation index ◦ reference manual ◦ function index