Changes

Line 4: Line 4:     
==Raw data==
 
==Raw data==
   
===Cooking recipes===
 
===Cooking recipes===
 +
Cooking recipe data is stored in <samp>Content\Data\CookingRecipes.xnb</samp>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
   −
Cooking recipe data is stored in <tt>Content\Data\CookingRecipes.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.4.5}} for reference:
+
{{collapse|Data|content=<syntaxhighlight lang="json">
 
  −
{{collapse|Data|content=<source lang="json">
   
{
 
{
 
   "Fried Egg": "-5 1/10 10/194/default",
 
   "Fried Egg": "-5 1/10 10/194/default",
Line 84: Line 82:  
   "Triple Shot Espresso": "395 3/1 10/253/l 100",
 
   "Triple Shot Espresso": "395 3/1 10/253/l 100",
 
   "Shrimp Cocktail": "720 1 256 1 16 1/1 10/733/l 100",
 
   "Shrimp Cocktail": "720 1 256 1 16 1/1 10/733/l 100",
   "Seafoam Pudding": "267 1 269 1 814 1/1 10/265/s Fishing 9"
+
   "Seafoam Pudding": "267 1 269 1 814 1/1 10/265/s Fishing 9",
 +
  "Ginger Ale": "829 3 245 1/1 10/903/l 100",
 +
  "Banana Pudding": "91 1 -6 1 245 1/1 10/904/l 100",
 +
  "Mango Sticky Rice": "834 1 88 1 423 1/1 10/905/f Leo 7",
 +
  "Poi": "830 4/1 10/906/f Leo 3",
 +
  "Tropical Curry": "88 1 832 1 260 1/1 10/907/l 100",
 +
  "Squid Ink Ravioli": "814 1 246 1 256 1/1 10/921/s Combat 9"
 
}
 
}
</source>}}
+
</syntaxhighlight>}}
    
===Crafting recipes===
 
===Crafting recipes===
 +
Crafting recipe data is stored in <samp>Content\Data\CraftingRecipes.xnb</samp>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
   −
Crafting recipe data is stored in <tt>Content\Data\CraftingRecipes.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.4.5}} for reference:
+
{{collapse|Data|content=<syntaxhighlight lang="json">
 
  −
{{collapse|Data|content=<source lang="json">
   
{
 
{
 
   "Wood Fence": "388 2/Field/322/false/l 0",
 
   "Wood Fence": "388 2/Field/322/false/l 0",
Line 139: Line 142:  
   "Speed-Gro": "726 1 372 1/Field/465 5/false/s Farming 3",
 
   "Speed-Gro": "726 1 372 1/Field/465 5/false/s Farming 3",
 
   "Deluxe Speed-Gro": "725 1 393 1/Field/466 5/false/s Farming 8",
 
   "Deluxe Speed-Gro": "725 1 393 1/Field/466 5/false/s Farming 8",
 +
  "Hyper Speed-Gro": "909 1 881 3 768 1/Field/918/false/null",
 +
  "Deluxe Fertilizer": "337 1 92 40/Field/919 5/false/null",
 +
  "Deluxe Retaining Soil": "390 5 771 3 330 1/Field/920/false/null",
 
   "Cherry Bomb": "378 4 382 1/Field/286/false/Mining 1",
 
   "Cherry Bomb": "378 4 382 1/Field/286/false/Mining 1",
 
   "Bomb": "380 4 382 1/Field/287/false/Mining 6",
 
   "Bomb": "380 4 382 1/Field/287/false/Mining 6",
Line 150: Line 156:  
   "Wild Seeds (Fa)": "404 1 406 1 408 1 410 1/Field/497 10/false/Foraging 6",
 
   "Wild Seeds (Fa)": "404 1 406 1 408 1 410 1/Field/497 10/false/Foraging 6",
 
   "Wild Seeds (Wi)": "412 1 414 1 416 1 418 1/Field/498 10/false/Foraging 7",
 
   "Wild Seeds (Wi)": "412 1 414 1 416 1 418 1/Field/498 10/false/Foraging 7",
 +
  "Fiber Seeds": "770 1 92 5 330 1/Home/885 4/false/null",
 
   "Tea Sapling": "-777 2 771 5 388 5/Field/251/false/null",
 
   "Tea Sapling": "-777 2 771 5 388 5/Field/251/false/null",
 
   "Warp Totem: Farm": "709 1 340 1 771 20/Field/688/false/Foraging 8",
 
   "Warp Totem: Farm": "709 1 340 1 771 20/Field/688/false/Foraging 8",
Line 155: Line 162:  
   "Warp Totem: Beach": "709 1 393 2 771 10/Field/690/false/Foraging 6",
 
   "Warp Totem: Beach": "709 1 393 2 771 10/Field/690/false/Foraging 6",
 
   "Warp Totem: Desert": "709 2 88 1 386 4/Field/261/false/null",
 
   "Warp Totem: Desert": "709 2 88 1 386 4/Field/261/false/null",
 +
  "Warp Totem: Island": "709 5 852 1 829 1/Field/886/false/null",
 
   "Rain Totem": "709 1 432 1 726 5/Field/681/false/Foraging 9",
 
   "Rain Totem": "709 1 432 1 726 5/Field/681/false/Foraging 9",
 +
  "Cookout Kit": "388 15 771 10 382 3/Field/926/false/Foraging 9/Cookout Kit",
 
   "Field Snack": "309 1 310 1 311 1/Home/403/false/Foraging 1",
 
   "Field Snack": "309 1 310 1 311 1/Home/403/false/Foraging 1",
 
   "Jack-O-Lantern": "276 1 93 1/Home/746/false/null",
 
   "Jack-O-Lantern": "276 1 93 1/Home/746/false/null",
Line 161: Line 170:  
   "Straw Floor": "388 1 771 1/Field/401/false/l 0",
 
   "Straw Floor": "388 1 771 1/Field/401/false/l 0",
 
   "Weathered Floor": "388 1/Field/331/false/l 0",
 
   "Weathered Floor": "388 1/Field/331/false/l 0",
 +
  "Rustic Plank Floor": "388 1/Field/840/false/l 0",
 
   "Crystal Floor": "338 1/Field/333 5/false/l 0",
 
   "Crystal Floor": "338 1/Field/333 5/false/l 0",
 
   "Stone Floor": "390 1/Field/329/false/l 0",
 
   "Stone Floor": "390 1/Field/329/false/l 0",
 +
  "Stone Walkway Floor": "390 1/Field/841/false/l 0",
 
   "Brick Floor": "330 2 390 5/Field/293 5/false/l 0",
 
   "Brick Floor": "330 2 390 5/Field/293 5/false/l 0",
 
   "Wood Path": "388 1/Field/405/false/l 0",
 
   "Wood Path": "388 1/Field/405/false/l 0",
Line 194: Line 205:  
   "Stump Brazier": "709 5 382 1/Home/147/true/null",
 
   "Stump Brazier": "709 5 382 1/Home/147/true/null",
 
   "Carved Brazier": "709 10 382 1/Home/148/true/null",
 
   "Carved Brazier": "709 10 382 1/Home/148/true/null",
   "Skull Brazier": "709 10 768 1 382 1/Home/149/true/null",
+
   "Skull Brazier": "881 10/Home/149/true/null",
 
   "Barrel Brazier": "388 50 768 1 382 1/Home/150/true/null",
 
   "Barrel Brazier": "388 50 768 1 382 1/Home/150/true/null",
 
   "Marble Brazier": "567 1 62 1 390 100/Home/151/true/null",
 
   "Marble Brazier": "567 1 62 1 390 100/Home/151/true/null",
 
   "Wood Lamp-post": "388 50 787 1/Home/152/true/null",
 
   "Wood Lamp-post": "388 50 787 1/Home/152/true/null",
   "Iron Lamp-post": "335 1 787 1/Home/153/true/null"
+
   "Iron Lamp-post": "335 1 787 1/Home/153/true/null",
 +
  "Fairy Dust": "72 1 595 1/Home/872/false/null",
 +
  "Bug Steak": "684 10/Home/874/false/Combat 1",
 +
  "Dark Sign": "767 5 881 5/Home/39/true/f Krobus 3",
 +
  "Quality Bobber": "334 1 92 20 768 5/Home/877/false/null",
 +
  "Stone Chest": "390 50/Home/232/true/null",
 +
  "Monster Musk": "767 30 766 30/Home/879/false/null",
 +
  "Mini-Obelisk": "709 30 768 20 336 3/Home/238/true/null",
 +
  "Farm Computer": "122 1 787 1 338 10/Home/239/true/null",
 +
  "Ostrich Incubator": "881 50 709 50 848 20/Home/254/true/null",
 +
  "Geode Crusher": "336 2 390 50 72 1/Home/182/true/null",
 +
  "Solar Panel": "338 10 335 5 336 5/Home/231/true/null",
 +
  "Bone Mill": "881 10 330 3 390 20/Home/90/true/null",
 +
  "Thorns Ring": "881 50 390 50 336 1/Home/839/Ring/Combat 7",
 +
  "Glowstone Ring": "768 5 335 5/Home/888/Ring/Mining 4",
 +
  "Heavy Tapper": "709 30 910 1/Home/264/true/null",
 +
  "Hopper": "709 10 337 1 910 1/Home/275/true/null",
 +
  "Magic Bait": "909 1 684 3/Home/908 5/false/null"
 
}
 
}
</source>}}
+
</syntaxhighlight>}}
    
==Format==
 
==Format==
Line 215: Line 243:  
! <small>Crafting</small>
 
! <small>Crafting</small>
 
|-
 
|-
| colspan="2" style="text-align: center" | Key
+
| colspan="2" style="text-align: center;" | Key
 
| Name
 
| Name
 
| ''Salad''
 
| ''Salad''
 
| ''Stone Fence''
 
| ''Stone Fence''
 
|-
 
|-
| colspan="2" style="text-align: center" | 0
+
| colspan="2" style="text-align: center;" | 0
 
| Ingredients
 
| Ingredients
 
| ''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
 
| (Unused)
 
| (Unused)
 
| ''25 5''
 
| ''25 5''
 
| ''Field''
 
| ''Field''
 
|-
 
|-
| colspan="2" style="text-align: center" | 2
+
| colspan="2" style="text-align: center;" | 2
 
| Yield
 
| Yield
 
| ''196''
 
| ''196''
 
| ''323''
 
| ''323''
 
|-
 
|-
| style="text-align: center" | &mdash;
+
| style="text-align: center;" | &mdash;
| style="text-align: center" | 3
+
| style="text-align: center;" | 3
 
| Big craftable?
 
| Big craftable?
 
| &mdash;
 
| &mdash;
 
| ''false''
 
| ''false''
 
|-
 
|-
| style="text-align: center" | 3
+
| style="text-align: center;" | 3
| style="text-align: center" | 4
+
| style="text-align: center;" | 4
 
| Unlock conditions
 
| Unlock conditions
 
| ''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
| Display name<br><small>(not for English)</small>
+
| Display name<br /><small>Tokenizable String. Defaults to the display name of the first product if not given.</small>
 
| ''Ensalada''
 
| ''Ensalada''
 
| ''Valla de piedra''
 
| ''Valla de piedra''
 
|}
 
|}
   −
In English, the '''display name''' is the same as the '''name''' from the key and cannot be changed. In other languages, the separate display name field applies.
+
The values in '''field 1''' are of different types for cooking and crafting recipes, but both kinds of value are unused by the game. For cooking, the field is set to a pair of numbers. For crafting, the field is set to <samp>Home</samp> or <samp>Field</samp>.
 
  −
The values in '''field 1''' are of different types for cooking and crafting recipes, but both kinds of value are unused by the game. For cooking, the field is set to a pair of numbers. For crafting, the field is set to <tt>Home</tt> or <tt>Field</tt>.
      
===Ingredients and yield===
 
===Ingredients and yield===
   −
The '''ingredients''' are a space-separated list of numbers in pairs. The first number of each pair is an object index from [[Modding:Object data|ObjectInformation.xnb]]. (Negative numbers refer to categories, also listed in that article.) The second number of each pair is the quantity of that object that is required for the recipe.
+
The '''ingredients''' are a space-separated list of numbers in pairs. The first number of each pair is an object index from [[Modding:Items|Objects.xnb]]. (Negative numbers refer to categories, also listed in that article.) The second number of each pair is the quantity of that object that is required for the recipe.
   −
The '''yield''' is also a space-separated list of numbers in pairs. The first number of each pair is an object index from [[Modding:Object data|ObjectInformation.xnb]] or, for big craftables, an index from [[Modding:Big craftables data|BigCraftablesInformation.xnb]]. The second number of each pair is the quantity of that object (or big craftable) that is created by the recipe. If there is only one object/craftable yielded, the quantity is optional and defaults to one.
+
The '''yield''' is also a space-separated list of numbers in pairs. The first number of each pair is an [[Modding:Items|object or big craftable ID]]. The second number of each pair is the quantity of that object (or big craftable) that is created by the recipe. If there is only one object/craftable yielded, the quantity is optional and defaults to one.
    
===Unlock conditions===
 
===Unlock conditions===
Line 274: Line 300:  
! Description
 
! Description
 
|-
 
|-
| <tt>f&nbsp;{{t|NPC}}&nbsp;{{t|hearts}}</tt>
+
| <samp>f&nbsp;{{t|NPC}}&nbsp;{{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&nbsp;{{t|level}}</tt>
  −
| both
  −
| When the player reaches the given [[Skills#Skill-Based_Title|total skill level]], the recipe will be unlocked.
  −
|-
  −
| <tt>s&nbsp;{{t|skill}}&nbsp;{{t|level}}</tt>
  −
| 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).
   
|-
 
|-
| <tt>{{t|skill}}&nbsp;{{t|level}}</tt>
+
| <samp>{{t|skill}}&nbsp;{{t|level}}</samp>
 
| both
 
| both
| This is an alternate form of the skill unlock above.
+
| When the player reaches the given level of the named skill, the recipe will be unlocked on the level up menu. 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>none</tt>
+
| <samp>none</samp><br />''or any other value''
 
| 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.)
Line 318: Line 336:  
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>.
    +
[[ru:Модификации:Рецепты]]
 
[[Category:Modding]]
 
[[Category:Modding]]
29

edits