| 1 | # Dolphin Resource Pack Specification v2 |
| 2 | |
| 3 | This document is to be used as a reference when creating resource packs or writing programs that are to be capable of handling them. |
| 4 | |
| 5 | ## Format |
| 6 | Dolphin Resource Packs are ``zip`` archives with the following file structure: |
| 7 | |
| 8 | ``` |
| 9 | resource-pack.zip |
| 10 | \__ manifest.json |
| 11 | \__ logo.png (optional) |
| 12 | \__ textures (Directory) |
| 13 | \__ GAMEID (Directory) |
| 14 | \___ TEXTURES GO HERE |
| 15 | ``` |
| 16 | |
| 17 | **If you intend to use v1:** Your zip file may not be compressed or else **your pack will not load** (You can create uncompressed zips with software like 7-Zip). |
| 18 | (This is to ensure that loading textures *directly* from resource packs remains a viable option in the future) |
| 19 | |
| 20 | **v2:** Supports compressed texture packs if ``compressed`` is ``true``. |
| 21 | |
| 22 | ``GAMEID`` can be one or multiple directories which are named after: |
| 23 | * a complete Game ID (e.g. ``SMNE01`` for "New Super Mario Bros. Wii (NTSC)") |
| 24 | * one without a region (e.g. ``SMN`` for "New Super Mario Bros. Wii (All regions)"). |
| 25 | |
| 26 | |
| 27 | ### logo.png |
| 28 | |
| 29 | The logo you provide has to be in ``PNG`` format and should not exceed dimensions of ``256x256`` pixels. |
| 30 | The alpha channel is supported so your logo can be partially transparent. |
| 31 | |
| 32 | ### manifest.json |
| 33 | |
| 34 | The ``manifest.json`` file contains metadata that helps users identify your resource pack and is therefore mandatory. |
| 35 | |
| 36 | #### Available fields |
| 37 | |
| 38 | |Identifier |Function |Required | Since | |
| 39 | |---------------|-----------------------------------------|---------|-------| |
| 40 | |``name`` | Name of your texture pack | **Yes** | v1 | |
| 41 | |``id`` | Alphanumeric identifier for your pack | **Yes** | v1 | |
| 42 | |``version`` | Version (any string) | **Yes** | v1 | |
| 43 | |``description``| Description | No | v1 | |
| 44 | |``authors`` | List of authors | No | v1 | |
| 45 | |``website`` | Link to your website(with protocol!) | No | v1 | |
| 46 | |``compressed`` | Allows you to compress your textures (1)| No | v2 | |
| 47 | |
| 48 | * (1) This will have the side effect that if Dolphin implements loading textures from the texture pack directly, your pack *might* not be supported |
| 49 | |
| 50 | If your manifest doesn't contain all required fields, **it won't load**. |
| 51 | |
| 52 | #### Example |
| 53 | |
| 54 | Here's an example ``manifest.json`` that contains all supported fields: |
| 55 | |
| 56 | ```js |
| 57 | { |
| 58 | "name": "My Texture Pack!", |
| 59 | "id" : "my-texture-pack-by-doe", |
| 60 | "version": "2", |
| 61 | "authors": ["John Doe", "Jane Doe"], |
| 62 | "website": "https://example.com/my-texture-pack", |
| 63 | "description": "A cool texture pack made by me!" |
| 64 | } |
| 65 | ``` |
| 66 | |
| 67 | ## Conflicts |
| 68 | |
| 69 | If there are conflicts (two texture packs providing the same file), they are resolved using the user-assigned order in which the higher entry in the list always overrides the ones that come afterwards. |
| 70 | |
| 71 | ## Installation |
| 72 | |
| 73 | Resource packs are loaded from ``$DOLPHIN_USER_FOLDER/ResourcePacks``. |
| 74 | |
| 75 | ## Removal |
| 76 | |
| 77 | Please remove the resource packs via the resource pack manager instead of just deleting them so they don't remain permanently activated. |
| 78 | |
| 79 | ## Activation |
| 80 | |
| 81 | The actual installation process (*Activation*) just copies the contents of the pack's ``textures`` directory into ``$DOLPHIN_USER_FOLDER/Load/Textures``. |
| 82 | |
| 83 | ## Deactivation |
| 84 | |
| 85 | Texture packs will be removed (*Deactivated*) by removing their files from ``$DOLPHIN_USER_FOLDER/Load/Textures``. |
| 86 | |
| 87 | If there's an *active higher priority texture pack* that provides the same file as a lower priority one, Dolphin won't remove this file as it has already been overriden. |
| 88 | |
| 89 | ## Migration |
| 90 | |
| 91 | If a user performs a migration, *pre-resource-pack files* that cannot be assigned to any particular pack *are combined into a ``legacy.zip``* so they can be managed like any other resource pack. |