> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 跨世代測試光碟概觀

> 跨世代測試光碟概觀

使用本主題建立跨世代測試光碟，以便在 XBOX One 系列主機和 XBOX Series 主機上測試您的遊戲。

<Note>這些指示僅供測試之用。在零售情境中，這些資料會根據 Partner Center 中的中繼資料自動設定。建立合輯光碟流程中所選取的選項，用於控制安裝順序和自動播放等設定。當您提交遊戲以供擷取時，不需要將測試中繼資料或 JSON 設定檔提交給 Microsoft。</Note>

您可以建立下列類型的測試光碟。

* [Smart Delivery 光碟](#ID5RX)
* [多產品光碟](#ID4Q3R)

<a id="ID5RX" />

## 建立 Smart Delivery 光碟

Smart Delivery 光碟包含適用於 XBOX One 系列主機和 XBOX Series 主機的套件。這些套件具有可同時適用於兩個套件的授權。它們屬於 Partner Center 中的同一個產品。將光碟插入主機時，會安裝適合該主機類型的套件。安裝作業包括啟動任何適用的內容更新 (若有的話)。

<Note>如果您想要在光碟上使用不同的 Partner Center 產品，為每個主機世代建立遊戲套件，這稱為多產品光碟。如需詳細資訊，請參閱本主題中的[多產品光碟](#ID4Q3R)一節。</Note>

### 建立及測試 Smart Delivery 光碟

若要建立及測試 Smart Delivery 光碟，請依照本主題下列各節的說明，建立 *catalog.js* 中繼資料檔案和光碟配置。

* [建立光碟配置](#ID4EBG)
* [Catalog.js](#ID4ECM)

<a id="ID4EBG" />

### 建立光碟配置

建立如下列範例所示的光碟配置。

```
- Disc Root
    - Licenses (folder) - (Not needed for Xbox One ERA Development Kits. Use XVCs that are created with the /LT flag or /LK flag.)
        License0.xml (file) - (Not needed for Xbox One ERA dev kits. Use XVCs that are created with the /LT or /LK flag.)
    - MSXC (folder)
        - Package_x.xvc (file)
        - Package_xs.xvc (file)
        - Metadata (folder)
            - catalog.js (file)
            - Package_x.xvc (folder)
                - Package images (files)
            
```

*Package\_x.xvc* 和 *Package\_xs.xvc* 是各主機世代的套件。MakePkg 工具會在套件名稱後面加上 `_x` (適用於 XBOX One 套件) 或 `_xs` (適用於 XBOX Series X|S 世代套件) 後綴。在 *catalog.js* 檔案中，會將其中一個套件宣告為另一個套件的「變體」。在先前的範例中，*Package\_xs.xvc* 是 *Package\_x.xvc* 的變體。

這些目錄包含下列內容。

* **Licenses** 包含遊戲的授權檔案。XBOX One ERA 開發套件不需要此資訊。請使用以 `/LT` 或 `/LK` 旗標建立的 XVC。之後即可省略這些檔案。

<Info>如果您使用以 `/LK` 旗標建立的套件，就必須使用 **xbapp installkey** 將 CEKB 檔案安裝到目標主機上。這樣才能解密光碟上的 /LK 套件。如需詳細資訊，請參閱 [xbapp.exe (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbapp)。</Info>

* **MSXC** 包含 XBOX 殼層所使用的已封裝遊戲和中繼資料。

* **Metadata** 包含殼層針對光碟上的遊戲及遊戲套件所使用的中繼資料。

* **Package\_x.xvc** 包含殼層針對該遊戲所使用的影像。名稱必須與 MSXC 中的遊戲套件檔案相符。您不需要為其他套件的變體套件提供影像。

<a id="ID4ECM" />

### Catalog.js

在 Metadata 資料夾中，建立名為 *catalog.js* 的檔案。編輯此檔案，以反映其他資料夾中的套件和影像名稱。
<Note>此檔案必須採用 UTF-8 編碼。建議您使用網路上的 JSON 驗證程式。為確保 JSON 經過驗證，請將其複製到文字編輯器中，然後以 UTF-8 格式儲存檔案。</Note>

#### Smart Delivery 產品範例

以下是使用 Smart Delivery 之單一產品的 *catalog.js* 檔案範例，並附有內嵌註解。

```js theme={null}
{
    "version": "4.0",                                               // Don't adjust this value.
    "packages": [                                                   // This is an array of packages.
    {
        "packageName": "Package_x.xvc",                             // Match your package name in MSXC\<package name> to the package name in MSXC\Metadata\<package name>.
        "generation": "8",                                        // Enter "8" for Xbox One packages, or enter "9" for Xbox Series X&#124;S generation packages.
        "oneStoreProductId": "BX38WRFV50MJ",                        // Partner Center Product ID for the package.
        "contentId": "2b05043b-4043-4ba0-80ed-fd4811c4b333",        // Content ID for your package. Match this to the Content ID of the package file.
        "titleId": "037C3A1D",                                      // Title ID for your package.
        "variants" : [
            {
                "generation": "9",                                  // The console generation for this variant of the package. Enter "8" for Xbox One packages, or enter "9" for Xbox Series X&#124;S generation packages.
                "packageName": "Package_xs.xvc"                     // The package name for this variant. All packages must have the same Content ID or Product ID.
            }
        ],
        "titles": [
          {
              "locale": "default",
              "title": "Killer Instinct"                            // Package title.
          }
        ],
        "images": [
          {
              "size": "100x100",
              "image": "100x100_1.png"                              // Match the file names to MSXC\Metadata\<Package_x>\.
          },
          {
              "size": "208x208",
              "image": "208x208_1.png"
          },
          {
              "size": "480x480",
              "image": "480x480_1.png"
          }
        ],
        "ratings": [                                                // This ratings information is only for example purposes.
          {                                                         // This is automatically generated for your discs
              "system": "OFLC",                                     // by using the information that's published in Partner Center.
              "value": "M"
          },
          {
              "system": "DJCTQ",
              "value": "14"
          },
          {
              "system": "PCBP",
              "value": "Unrated"
          },
          {
              "system": "USK",
              "value": "16"
          },
          {
              "system": "ESRB",
              "value": "T"
          },
          {
              "system": "CERO",
              "value": "Unrated"
          },
          {
              "system": "CSRR",
              "value": "Unrated"
          },
          {
              "system": "COB",
              "value": "M"
          },
          {
              "system": "GRB",
              "value": "Unrated"
          },
          {
              "system": "PEGI",
              "value": "16"
          },
          {
              "system": "PEGIPortugal",
              "value": "Unrated"
          }
        ],
        "type": "Game"
    }
  ]
}  
```

<a id="ID4Q3R" />

## 多產品光碟

多產品光碟包含適用於 XBOX One 和 XBOX Series X|S 主機的套件。光碟中包含每個套件的授權。這些套件來自 Partner Center 中的不同產品。它們具有在 Partner Center 中設定的明確世代關係。當它們以數位組合包形式販售，或使用光碟安裝到主機時，預設只會安裝其中一個套件。將光碟插入主機時，會安裝適合該主機類型的套件。這包括啟動任何適用的內容更新 (若有的話)。

<Note>如果您想要使用單一 Partner Center 產品為每個主機世代建立套件，這稱為跨世代 Smart Delivery 光碟。如需詳細資訊，請參閱本主題的 [Smart Delivery](#ID5RX) 一節。</Note>

#### 多產品光碟範例

以下是多產品光碟的 *catalog.js* 檔案範例，並附有內嵌註解。

```js theme={null}
{
  "version": "4.0",                                                 // Don't change this value.
  "bundle": {
    "oneStoreProductId": "9P436MXJ71GV",                            // Replace with the game bundle Product ID.
    "launchPackage": "Package1_x.xvc",                              // This is the package that is launched when the game disc is inserted into the console.
    "titles": [
      {
        "locale": "default",                                        
        "title": "Game Title"                                       // Replace with the game bundle name.
      }
    ],
    "images": [
      {
        "size": "100x100",
        "image": "100x100_1.png"                                    // Match this to the image file names that are in MSXC\Metadata\Bundle\.
      },
      {
        "size": "208x208",
        "image": "208x208_1.png"
      },
      {
        "size": "480x480",
        "image": "480x480_1.png"
      }
    ]
  },
  "siblings": [                                                     // The sibling entry that sets these two packages as
    [                                                               // related. The correct package for the console
      "Package1_x.xvc",                                             // type is chosen.
      "Package2_xs.xvc"                                             // Note: the sibling relationships are an array
    ]                                                               // of arrays.
  ],
  "packages": [
    {
      "packageName": "Package1_x.xvc",                              // Match this to the folder name that's in MSXC\Metadata\<folder name>.
      "generation": "8",                                            // Xbox One family generation that's used for Xbox One and Xbox Series X&#124;S consoles.
      "oneStoreProductId": "BX38WRFV50MJ",                          // Replace with Package 1 Product ID.
      "contentId": "ace6ef3b-0c5b-4f17-a651-390e75169d5c",          // Replace with Package 1 Content ID. Match the ID to the Content ID of the package file.
      "titles": [
        {
          "locale": "default",
          "title": "Game Title Xbox One Edition"
        }
      ],
      "images": [
        {
          "size": "100x100",
          "image": "100x100_1.png"                                  // Match file names that are in MSXC\Metadata\Package1_x.xvc\.
        },
        {
          "size": "208x208",
          "image": "208x208_1.png"
        },
        {
          "size": "480x480",
          "image": "480x480_1.png"
        }
      ],
      "ratings": [
        {
          "system": "ESRB",
          "value": "E"
        }
      ],
      "type": "Game"
    },
    {
      "packageName": "Package2_xs.xvc",
      "generation": "9",
      "oneStoreProductId": "BVC818MXZ6KG",
      "contentId": "5519355c-bff9-40b4-92bb-b5473fd9c577",
      "titleId": "35c8f637",
      "titles": [
        {
          "locale": "default",
          "title": "Game Title Xbox Series generation edition"
        }
      ],
      "images": [
        {
          "size": "100x100",
          "image": "100x100_1.png"
        },
        {
          "size": "208x208",
          "image": "208x208_1.png"
        },
        {
          "size": "480x480",
          "image": "480x480_1.png"
        }
      ],
      "ratings": [
        {
          "system": "ESRB",
          "value": "E"
        }
      ],
      "type": "Game"
    }
  ]
}  
```

## 另請參閱

[建立光碟](/zh-TW/build/core-features/common/packaging/creating-discs)

[建立測試光碟](/zh-TW/build/core-features/common/packaging/creating-test-compilation-discs)

[多光碟功能](/zh-TW/build/core-features/common/packaging/packaging-multi-disc)


## Related topics

- [認證逐步指南](/zh-TW/publishing/game-publishing/concepts/certification/certification-guide.md)
- [跨世代游戏](/zh-CN/build/console-features/cross-gen/cross-gen-overview.md)
- [跨世代游戏开发](/zh-CN/build/console-features/cross-gen/gc-cross-gen-toc.md)
- [Dual SKU 跨世代游戏](/zh-CN/build/console-features/cross-gen/cross-gen-dual-sku.md)
- [使用 XBOX GDK 开发跨世代游戏](/zh-CN/build/console-features/cross-gen/index.md)
