ja:mtr:adding_custom_resources
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ja:mtr:adding_custom_resources [2024/10/13 05:59] – テクスチャバリエーション・鉄道標識の部分の日本語訳の追加・編集をしました。 asama_tk85 | ja:mtr:adding_custom_resources [2024/10/14 07:28] (current) – 「Model Properties file」以降の翻訳を実施。 asama_tk85 | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| < | < | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 63: | Line 81: | ||
| ## 鉄道標識の新しいテクスチャやテキストの追加 | ## 鉄道標識の新しいテクスチャやテキストの追加 | ||
| - | 鉄道標識の新しいテクスチャやテキストを追加するには、`mtr_custom_resouces.json` に`custom_trains` JSONオブジェクトを追加する必要がある。`custom_trains` の下にある各JSONオブジェクトは、標識のテクスチャバリエーションを表し、固有のキーといくつかの必須項目を持たなければならない。 | + | [鉄道標識](https:// |
| - | | キー | データ型 | 説明 | 要否 | + | | キー | データ型 | 説明 | 要否 | |
| - | | --- | --- | --- | --- | | | + | | --- | --- | --- | --- | |
| - | | `texture_id` | 文字列 (texture ID) | テクスチャファイルの [名前空間付きID]([[https:// | + | | `texture_id` | 文字列 (texture ID) | テクスチャファイルの [名前空間付きID]([[https:// |
| - | | `flip_texture` | ブーリアン型 | `True` を指定することで、テクスチャが水平方向に反転する。 | 任意 | + | | `flip_texture` | ブーリアン型 | `True` を指定することで、テクスチャが水平方向に反転する。 | 任意 | |
| - | | `custom_text` | 文字列 | 設定されている場合、画像の右側にテキストが表示される。パイプ文字`\` や` | ` が使用可能である。`例:客務中心 | Customer Service Centre` | 任意 | | + | | `custom_text` | 文字列 | 設定されている場合、画像の右側にテキストが表示される。パイプ文字`\` や`|` が使用可能である。`例:客務中心 | Customer Service Centre` | 任意 | |
| - | | `flip_custom_text` | ブーリアン型 | `custom_text` が設定されており、`flip_custom_text` が`true` の場合、画像の左側にテキストが表示される | 任意 | + | | `flip_custom_text` | ブーリアン型 | `custom_text` が設定されており、`flip_custom_text` が`true` の場合、画像の左側にテキストが表示される | 任意 | |
| - | | `small` | ブーリアン型 | `True` を指定することで、画像が余白付きで表示される。 | 任意 | + | | `small` | ブーリアン型 | `True` を指定することで、画像が余白付きで表示される。 | 任意 | |
| - | | `background_color` | 文字列 (HEXカラーコード) | 背景色を指定する。 | 任意。指定がない場合には、黒色となる。 | + | | `background_color` | 文字列 (HEXカラーコード) | 背景色を指定する。 | 任意。指定がない場合には、黒色となる。 | |
| 以下に例を示す。 | 以下に例を示す。 | ||
| - | `` { | + | ``` |
| + | { | ||
| " | " | ||
| " | " | ||
| Line 88: | Line 106: | ||
| } | } | ||
| } | } | ||
| - | + | } | |
| - | } `` ## Model Properties file | + | ``` |
| + | ## Model Properties file | ||
| </ | </ | ||
| Line 107: | Line 126: | ||
| - | The Model Properties file can be edited by the Resource Pack Creator or directly in a text editor, for example. | ||
| - | ### basis | + | |
| - | | Key | Data Type | Description | + | |
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | モデルプロパティファイルは、リソースパックエディタを使用して自動生成させる方法と、テキストエディタ等で直接編集する方法があります。 | ||
| + | |||
| + | ### 基本情報 | ||
| + | | キー | ||
| | --- | --- | --- | --- | | | --- | --- | --- | --- | | ||
| - | | `transport_mode` | String | + | | `transport_mode` | 文字列 |
| - | | `length` | Number | + | | `length` | 数列 |
| - | | `width` | Number | + | | `width` | 数列 |
| - | | `door_max` | String | + | | `door_max` | 文字列 |
| - | ### `part` | + | ### `パーツ(部品)` |
| - | | Key | Data Type | Description | + | | キー |
| | --- | --- | --- | --- | | | --- | --- | --- | --- | | ||
| - | | `name` | String | + | | `name` | 文字列 |
| - | | `stage` | String | + | | `stage` | 文字列 |
| - | | `mirror` | Boolean | + | | `mirror` | ブーリアン型 |
| - | | `skip_rendering_if_too_far` | Boolean | + | | `skip_rendering_if_too_far` | ブーリアン型 |
| - | ## Verifying the Resource Pack | + | ## リソースパックの確認 |
| - | Use a [JSON validator](https:// | + | JSONファイルの構文エラー等のチェックは、[JSON validator](https:// |
| - | The resource pack (zip file) can be installed either clientside or as a server resource pack. If installed as a server resource pack, all players joining the server will be able to see the new additions after accepting the server resource pack. | + | リソースパック(zipファイル)は、クライアントまたはサーバーリソースパックとしてインストールする。サーバーリソースパックとしてインストールした場合、サーバーに参加する全プレイヤーがリソースパックを導入することで、リソースパック内の要素が表示されるようになる。 |
| - | [Download the example resource pack](https:// | + | [リソースパックの例](https:// |
| </ | </ | ||
ja/mtr/adding_custom_resources.1728799171.txt.gz · Last modified: 2024/10/13 05:59 by asama_tk85