Строка 1: |
Строка 1: |
| ←[[Модификации:Индекс|Индекс]] | | ←[[Модификации:Индекс|Индекс]] |
| {{Переведите}} | | {{Переведите}} |
− | This page explains how the game stores and parses recipe data for cooking and crafting. (Tailoring recipes use a different format.) This is an advanced guide for mod developers.
| + | На этой странице объясняется, как игра хранит и анализирует данные рецептов для приготовления пищи и крафта. (Рецепты пошива одежды используют другой формат.) Это расширенное руководство для разработчиков модов. |
| | | |
| ==Источник== | | ==Источник== |
| ===Кулинарные рецепты=== | | ===Кулинарные рецепты=== |
− | Данные кулинарных рецептов хранятся в <tt>Content\Data\CookingRecipes.xnb</tt>, могут быть [[Модификации:Редактирование_XNB_файлов#Редактирование распакованных данных|извлечены для редактирования]]. Вот исходные данные по состоянию на {{version|1.5.1}} для примера: | + | Данные кулинарных рецептов хранятся в <samp>Content\Data\CookingRecipes.xnb</samp>, могут быть [[Модификации:Редактирование_XNB_файлов#Редактирование распакованных данных|извлечены для редактирования]]. Вот исходные данные по состоянию на {{version|1.5.1}} для примера: |
| | | |
| {{collapse|Данные|content=<syntaxhighlight lang="json"> | | {{collapse|Данные|content=<syntaxhighlight lang="json"> |
Строка 93: |
Строка 93: |
| | | |
| ===Рецепты создаваемых предметов=== | | ===Рецепты создаваемых предметов=== |
− | Данные рецепта создаваемых предметов хранятся в <tt>Content\Data\CraftingRecipes.xnb</tt>, могут быть [[Модификации:Редактирование_XNB_файлов#Редактирование распакованных данных|извлечены для редактирования]]. Вот исходные данные по состоянию на {{version|1.5.1}} для примера: | + | Данные рецепта создаваемых предметов хранятся в <samp>Content\Data\CraftingRecipes.xnb</samp>, могут быть [[Модификации:Редактирование_XNB_файлов#Редактирование распакованных данных|извлечены для редактирования]]. Вот исходные данные по состоянию на {{version|1.5.1}} для примера: |
| | | |
| {{collapse|Данные|content=<syntaxhighlight lang="json"> | | {{collapse|Данные|content=<syntaxhighlight lang="json"> |
Строка 243: |
Строка 243: |
| ! <small>Создание предметов</small> | | ! <small>Создание предметов</small> |
| |- | | |- |
− | | colspan="2" style="text-align: center" | Key | + | | colspan="2" style="text-align: center;" | Key |
| | Название | | | Название |
| | ''Salad'' | | | ''Salad'' |
| | ''Stone Fence'' | | | ''Stone Fence'' |
| |- | | |- |
− | | colspan="2" style="text-align: center" | 0 | + | | colspan="2" style="text-align: center;" | 0 |
| | Ингредиенты | | | Ингредиенты |
| | ''20 1 22 1 419 1'' | | | ''20 1 22 1 419 1'' |
| | ''390 2'' | | | ''390 2'' |
| |- | | |- |
− | | colspan="2" style="text-align: center" | 1 | + | | colspan="2" style="text-align: center;" | 1 |
| | (Не используется) | | | (Не используется) |
| | ''25 5'' | | | ''25 5'' |
| | ''Field'' | | | ''Field'' |
| |- | | |- |
− | | colspan="2" style="text-align: center" | 2 | + | | colspan="2" style="text-align: center;" | 2 |
| | Результат | | | Результат |
| | ''196'' | | | ''196'' |
| | ''323'' | | | ''323'' |
| |- | | |- |
− | | style="text-align: center" | — | + | | style="text-align: center;" | — |
− | | style="text-align: center" | 3 | + | | style="text-align: center;" | 3 |
| | Большой создаваемый предмет? | | | Большой создаваемый предмет? |
| | — | | | — |
| | ''false'' | | | ''false'' |
| |- | | |- |
− | | style="text-align: center" | 3 | + | | style="text-align: center;" | 3 |
− | | style="text-align: center" | 4 | + | | style="text-align: center;" | 4 |
| | Условия разблокировки | | | Условия разблокировки |
| | ''f Emily 3'' | | | ''f Emily 3'' |
| | ''Farming 2'' | | | ''Farming 2'' |
| |- | | |- |
− | | style="text-align: center" | 4 | + | | style="text-align: center;" | 4 |
− | | style="text-align: center" | 5 | + | | style="text-align: center;" | 5 |
| | Отображаемое название<br /><small>(не для английского языка)</small> | | | Отображаемое название<br /><small>(не для английского языка)</small> |
| | ''[[Салат]]'' | | | ''[[Салат]]'' |
Строка 284: |
Строка 284: |
| На английском языке '''отображаемое название''' соответствует '''названию''' и не может быть изменен. На других языках применяется отдельное поле отображаемого названия. | | На английском языке '''отображаемое название''' соответствует '''названию''' и не может быть изменен. На других языках применяется отдельное поле отображаемого названия. |
| | | |
− | Значения в '''поле 1''' бывают разных типов для приготовления пищи и создание предметов, но оба вида не используются в игре. Для приготовления пищи в поле устанавливается пара чисел. Для создания предметов поле имеет значение <tt>Home</tt> или <tt>Field</tt>. | + | Значения в '''поле 1''' бывают разных типов для приготовления пищи и создание предметов, но оба вида не используются в игре. Для приготовления пищи в поле устанавливается пара чисел. Для создания предметов поле имеет значение <samp>Home</samp> или <samp>Field</samp>. |
| | | |
| ===Ингредиенты и результат=== | | ===Ингредиенты и результат=== |
Строка 302: |
Строка 302: |
| ! Description | | ! Description |
| |- | | |- |
− | | <tt>f {{t|NPC}} {{t|hearts}}</tt> | + | | <samp>f {{t|NPC}} {{t|hearts}}</samp> |
| | Cooking | | | Cooking |
− | | When the player reaches the given number of hearts of friendship with the named NPC, a letter with the key <tt>{{t|NPC}}Cooking</tt> will be queued for delivery tomorrow. That letter then unlocks the recipe with the [[Modding:Mail_data#Value|<tt>%item cookingRecipe %%</tt> token]]. | + | | When the player reaches the given number of hearts of friendship with the named NPC, a letter with the key <samp>{{t|NPC}}Cooking</samp> will be queued for delivery tomorrow. That letter then unlocks the recipe with the [[Modding:Mail_data#Value|<samp>%item cookingRecipe %%</samp> token]]. |
| |- | | |- |
− | | <tt>l {{t|level}}</tt> | + | | <samp>l {{t|level}}</samp> |
| | both | | | both |
| | When the player reaches the given [[Skills#Skill-Based_Title|total skill level]], the recipe will be unlocked. | | | When the player reaches the given [[Skills#Skill-Based_Title|total skill level]], the recipe will be unlocked. |
| |- | | |- |
− | | <tt>s {{t|skill}} {{t|level}}</tt> | + | | <samp>s {{t|skill}} {{t|level}}</samp> |
| | both | | | both |
| | When the player reaches the given level of the named skill, the recipe will be unlocked. The valid skill names are <code>Farming</code>, <code>Mining</code>, <code>Fishing</code>, <code>Foraging</code>, <code>Luck</code>, and <code>Combat</code> (but <code>Luck</code> is unimplemented). | | | When the player reaches the given level of the named skill, the recipe will be unlocked. The valid skill names are <code>Farming</code>, <code>Mining</code>, <code>Fishing</code>, <code>Foraging</code>, <code>Luck</code>, and <code>Combat</code> (but <code>Luck</code> is unimplemented). |
| |- | | |- |
− | | <tt>{{t|skill}} {{t|level}}</tt> | + | | <samp>{{t|skill}} {{t|level}}</samp> |
| | both | | | both |
| | This is an alternate form of the skill unlock above. | | | This is an alternate form of the skill unlock above. |
| |- | | |- |
− | | <tt>none</tt> | + | | <samp>none</samp> |
| | both | | | both |
| | The recipe must be unlocked in some other way, such as an event. (See [[#Exceptions|Exceptions]] below for starting recipes and other hard-coded unlocks.) | | | The recipe must be unlocked in some other way, such as an event. (See [[#Exceptions|Exceptions]] below for starting recipes and other hard-coded unlocks.) |
Строка 346: |
Строка 346: |
| Recipes that are unlocked during vanilla game events are hard-coded to be unlocked when those events are skipped. | | Recipes that are unlocked during vanilla game events are hard-coded to be unlocked when those events are skipped. |
| | | |
− | The recipes unlocked by [[The Queen of Sauce]] TV channel are set in <tt>Content\Data\TV\CookingChannel.xnb</tt>. | + | The recipes unlocked by [[The Queen of Sauce]] TV channel are set in <samp>Content\Data\TV\CookingChannel.xnb</samp>. |
| [[en:Modding:Recipe_data]] | | [[en:Modding:Recipe_data]] |
| [[Category:Модификации]] | | [[Category:Модификации]] |