--- hide: - footer --- # Variants When Retool doesn't automatically detect titles that are related to each other, you can manually group them together in the `variants` array. The `variants` array can also be used to set certain properties on titles that aid with filtering. You can do the following things in a `variants` array: * Assign titles with different names to the same group. * Move titles to different groups than Retool initially assigns them to. * Group supersets and compilations with individual titles. * Set priorities on titles to make sure Retool selects the correct one during 1G1R processing. * Assign categories to titles. * Set local names for titles. * Tell Retool to ignore titles (not recommended). * Use `filters` to conditionally do some of the above things based on a title's regions, languages, a regex match against its full name, or the user's region order. ## Structure A `variants` array contains objects, and looks similar to the following example: ```json "variants": [// (1)! { "group": "Example Title",// (2)! "categories": ["Demos", "Games"],// (8)! "titles": [// (3)! {"searchTerm": "Example Title"},// (4)! {"searchTerm": "Exemple de Titre"}, {"searchTerm": "Titolo di Esempio"}, {"searchTerm": "Example Title Budget Edition", "priority": 2}// (5)! ], "supersets": [// (6)! {"searchTerm": "Example Title Special Edition"} ], "compilations": [// (7)! {"searchTerm": "Example Title I & II Series Collection", "titlePosition": 1} ] } ] ``` 1. The variants array. 2. The new group and short name to assign to the contained titles, if they're found in an input DAT file. 3. The `titles` array contains singular, standard titles that belong to this group. 4. The search term used when looking for a title in an input DAT file. 5. If there are two titles from the same region, a `priority` can determine which should be selected. Lower numbers are higher priority. If no `priority` is specified, the priority of the entry is `1`. 6. The `supersets` array contains singular titles that contain more content, or for some reason are superior to standard versions. For example, game of the year editions, or a DVD version of a title that was previously released on multiple CDs. 7. The `compilations` array contains titles that in themselves contain multiple titles. They might be from the same series of games, a single publisher, from a single genre, or otherwise. 8. The `categories` array overrides an existing title's categories, and replaces them with the ones in the list. When applied at this level, all `titles`, `supersets`, and `compilations` are assigned the listed categories. Each object in the `variants` array describes a group of titles, and can include the following keys:
| Key | Type | Description |
|---|---|---|
group |
str |
The group value is used as the new
group name and
short name for all of the titles in the
object. |
categories |
array[str] |
Optional. A category is a class of titles, like Demos, Games, and Multimedia.
Multiple categories can be assigned to a title, and existing categories are
overridden. If assigned at this level, all titles,
supersets, and compilations in the object inherit the
listed categories. |
ignore |
bool |
Optional. Force removes the title from Retool's consideration. If assigned at
this level, all Caution The |
titles |
array[obj] |
Optional. Contains singular, standard titles that belong to a group. A |
supersets |
array[obj] |
Optional. Contains singular titles that contain more content, or for some reason are superior to standard versions. This might include, for example, a game of the year edition, an all-in-one pack that bundles a game and all its DLC, or a DVD version of a title that was previously released on multiple CDs. A |
compilations |
array[obj] |
Optional. Contains titles that in themselves contain multiple titles. They might be from the same series of games, a single publisher, from a single genre, or otherwise. A |