Command Reference - Command Data Types

### Adding a repository

Open TouhouDS/repo.txt and add the line (changing Repo Name and the url to appropriate values):

    Repo Name;http://www.example.com/repo

### Creating a repository

Start with this template.

The basic folder layout of a repository:

    + root
    +-+ repo-1.0.2
      +-- repo.ini
      +-- chara.txt
      +-- games.txt
      +-+ chara
      + +-- <character_packages>
      +
      +-+ games
        +-- <game_packages>

The root folder contains subfolders for each supported script version (named repo-{$version}). These folders have a repo.ini file that contains the script version and the paths to the character and game lists. The format of chara.txt and games.txt is:

    id;name;version;created_timestamp;author;chara/filename.zip;description

    id = a unique identifier, equal to the character's *.ini and datafolder names.
    name = Human readable name, same as in character's *.ini
    version = Character version number, same as in character's *.ini
    created_timestamp = UNIX timestamp of the last update time
    author = Name of the person that made the character
    filename = The relative path to an uncompressed ZIP file containing the character data.
    description = Short description that gets shown on the download screen.

    For games.txt, the format is exactly the same.