Модификации:Чертежи: различия между версиями

Материал из Stardew Valley Wiki
Перейти к навигации Перейти к поиску
Строка 46: Строка 46:
 
</syntaxhighlight>}}
 
</syntaxhighlight>}}
  
==Format==
+
==Формат==
The file contains data fields delimited by <code>/</code>, with two formats:
+
Файл содержит поля данных, разделенные <code>/</code>, в двух форматах:
  
 
<ul>
 
<ul>
<li>Animal buildings (denoted by the first field being <tt>animal</tt>), like this entry:
+
<li>Здания для животных (первым полем, является <tt>животное</tt>), как эта запись:
  
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
Строка 56: Строка 56:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The fields for animal buildings are...
+
Поля для построек описаны в таблице
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! index
+
! Индекс
! field
+
! Поле
! type
+
! Тип
! example
+
! Пример
! explanation
+
! Описание
 
|-
 
|-
 
| 0
 
| 0
 
| <tt>null</tt>
 
| <tt>null</tt>
| string
+
| Строка
 
| ''animal''
 
| ''animal''
| Used by the code to denote it's an animal type BluePrint.
+
| Используется для обозначения животных, которые могут жить в здании.
 
|-
 
|-
 
| 1
 
| 1
 
| <tt>moneyRequired</tt>
 
| <tt>moneyRequired</tt>
| int
+
| Число
 
| ''500''
 
| ''500''
| The amount required to purchase.
+
| Сумма, необходимая для покупки.
 
|-
 
|-
 
| 2
 
| 2
 
| <tt>sourceRectForMenuView</tt>
 
| <tt>sourceRectForMenuView</tt>
| int
+
| Число
 
| ''64''
 
| ''64''
 
|  
 
|  
Строка 86: Строка 86:
 
| 3
 
| 3
 
| <tt>sourceRectForMenuView</tt>
 
| <tt>sourceRectForMenuView</tt>
| int
+
| Число
 
| ''64''
 
| ''64''
 
|  
 
|  
Строка 92: Строка 92:
 
| 4
 
| 4
 
| <tt>displayName</tt>
 
| <tt>displayName</tt>
| string
+
| Строка
 
| ''Chicken''
 
| ''Chicken''
 
|  
 
|  
Строка 98: Строка 98:
 
| 5
 
| 5
 
| <tt>description</tt>
 
| <tt>description</tt>
| string
+
| Строка
 
| ''Lays delicious eggs. Comes in two colors.''
 
| ''Lays delicious eggs. Comes in two colors.''
| The description of the animal.
+
| Описание животного.
 
|-
 
|-
 
| 6
 
| 6
Строка 106: Строка 106:
 
|
 
|
 
| ''null''
 
| ''null''
| Unused by the code.
+
| Не используется в коде.
 
|-
 
|-
 
| 7
 
| 7
Строка 112: Строка 112:
 
|  
 
|  
 
| ''Farm''
 
| ''Farm''
| Unused by the code.
+
| Не используется в коде.
 
|}</li>
 
|}</li>
  
<li>Any other entry, like this one:
+
<li>Любая другая запись, подобная этой:
  
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
Строка 123: Строка 123:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! index
+
! Индекс
! field
+
! Поле
! type
+
! Тимп
! example
+
! Пример
! explanation
+
! Описание
 
|-
 
|-
 
| 0
 
| 0
 
| <tt>itemsRequired</tt>
 
| <tt>itemsRequired</tt>
| int int
+
| Число число
 
| ''388 350 390 150''
 
| ''388 350 390 150''
| The items required for purchase, consisting of {{t|item ID}} {{t|amount}} pairs. The example specifies 350 Wood (item ID 388) and 150 Stone (item ID 390).
+
| Предметы, необходимые для покупки, состоящие из пар {{t|item ID}} {{t|amount}}. В примере указано 350 Древесины (предмет с ID 388) и 150 Камня (предмет с ID 390).
 
|-
 
|-
 
| 1
 
| 1
 
| <tt>tilesWidth</tt>
 
| <tt>tilesWidth</tt>
| int
+
| Число
 
| ''7''
 
| ''7''
| The number of tiles ''wide''(''x'') the building will be when placed on a map. This does not change the size of the image placed, but rather the "walkable" area.
+
| Количество клеток ''ширина''(''x''), на которые будет занимать здание при размещении на карте. Не изменяет размер размещенного изображения, изменяет "проходимую" область.
 
|-
 
|-
 
| 2
 
| 2
 
| <tt>tilesHeight</tt>
 
| <tt>tilesHeight</tt>
| int
+
| Число
 
| ''4''
 
| ''4''
| The number of tiles ''high''(''y'') the building will be when placed on a map. This does not change the size of the image placed, but rather the "walkable" area.
+
| Количество клеток ''высота''(''y''), на которые будет занимать здание при размещении на карте. Не изменяет размер размещенного изображения, изменяет "проходимую" область.
 
|-
 
|-
 
| 3
 
| 3
 
| <tt>humanDoor</tt>
 
| <tt>humanDoor</tt>
| int
+
| Число
 
| ''1''
 
| ''1''
| ''x'' location, in tiles, of the clickable ''human'' door.
+
| Расположении''человеческой'' двери, по ''x''.
 
|-
 
|-
 
| 4
 
| 4
 
| <tt>humanDoor</tt>
 
| <tt>humanDoor</tt>
| int
+
| Число
 
| ''3''
 
| ''3''
| ''y'' location, in tiles, of the clickable ''human'' door.
+
| Расположении''человеческой'' двери, по ''y''.
 
|-
 
|-
 
| 5
 
| 5
 
| <tt>animalDoor</tt>
 
| <tt>animalDoor</tt>
| int
+
| Число
 
| ''3''
 
| ''3''
| ''x'' location, in tiles, of the clickable ''animal'' door.
+
| Расположении''животной'' двери, по ''x''.
 
|-
 
|-
 
| 6
 
| 6
 
| <tt>animalDoor</tt>
 
| <tt>animalDoor</tt>
| int
+
| Число
 
| ''3''
 
| ''3''
| ''y'' location, in tiles, of the clickable ''animal'' door.
+
| Расположении''животной'' двери, по ''y''.
 
|-
 
|-
 
| 7
 
| 7
 
| <tt>mapToWarpTo</tt>
 
| <tt>mapToWarpTo</tt>
| string
+
| Строка
 
| ''Barn''
 
| ''Barn''
 
|  
 
|  
Строка 179: Строка 179:
 
| 8
 
| 8
 
| <tt>displayName</tt>
 
| <tt>displayName</tt>
| string
+
| Строка
 
| ''Barn''
 
| ''Barn''
 
|  
 
|  
Строка 185: Строка 185:
 
| 9
 
| 9
 
| <tt>description</tt>
 
| <tt>description</tt>
| string
+
| Строка
 
| ''Houses 4 barn-dwelling animals.''
 
| ''Houses 4 barn-dwelling animals.''
| The description of the building used in locations such as the ''Carpenter's Menu''.
+
| Описание здания, используемого в таких местах, как ''Меню столярного магазина''.
 
|-
 
|-
 
| 10
 
| 10
 
| <tt>blueprintType</tt>
 
| <tt>blueprintType</tt>
| string
+
| Строка
 
| ''Buildings''
 
| ''Buildings''
| Type of BluePrint. The current (as of 1.2.29) types are: <code>Buildings</code>, <code>Upgrades</code>, <code>Decorations</code>, <code>Demolish</code>, <code>Animals</code> though (as of 1.2.29) only <code>Buildings</code>, <code>Upgrades</code>, and <code>Animals</code> are used in code.
+
| Тип чертежа. Текущими (по состоянию на 1.2.29) типами являются: <code>Buildings</code>(Строение), <code>Upgrades</code>(Улучшение), <code>Decorations</code>(Декор), <code>Demolish</code>(Разрушение), <code>Animals</code>(животные) хотя (по состоянию на 1.2.29) только <code>Buildings</code>(Строение), <code>Upgrades</code>(Улучшение), и <code>Animals</code>(животные) используются в коде.
 
|-
 
|-
 
| 11
 
| 11
 
| <tt>nameOfBuildingToUpgrade</tt>
 
| <tt>nameOfBuildingToUpgrade</tt>
| string
+
| Строка
 
| ''none''
 
| ''none''
| Only used for <code>Upgrades</code> BluePrint types. This allows you to choose which building/blueprint you want to replace/upgrade.
+
| Используется только для чертежей с типом <code>Upgrades</code>(Улучшение). Позволяет вам выбрать, какое здание/чертеж вы хотите заменить/обновить.
 
|-
 
|-
 
| 12
 
| 12
 
| <tt>sourceRectForMenuView</tt>
 
| <tt>sourceRectForMenuView</tt>
| int
+
| Число
 
| ''96''
 
| ''96''
 
|  
 
|  
Строка 209: Строка 209:
 
| 13
 
| 13
 
| <tt>sourceRectForMenuView</tt>
 
| <tt>sourceRectForMenuView</tt>
| int
+
| Число
 
| ''96''
 
| ''96''
 
|  
 
|  
Строка 215: Строка 215:
 
| 14
 
| 14
 
| <tt>maxOccupants</tt>
 
| <tt>maxOccupants</tt>
| int
+
| Число
 
| ''4''
 
| ''4''
| Max Number of Animals allowed to be placed in the building.
+
| Максимальное количество животных, которые могут находится в здании.
 
|-
 
|-
 
| 15
 
| 15
 
| <tt>actionBehavior</tt>
 
| <tt>actionBehavior</tt>
| string
+
| Строка
 
| ''null''
 
| ''null''
 
|  
 
|  
Строка 227: Строка 227:
 
| 16
 
| 16
 
| <tt>namesOfOkBuildingLocations</tt>
 
| <tt>namesOfOkBuildingLocations</tt>
| string
+
| Строка
 
| ''Farm''
 
| ''Farm''
| Game Locations where this building is allowed to build. The game only uses <code>Farm</code> and as far I can tell (as of 1.2.29) it's never used.
+
| Игровые локации, где разрешено строить это здание. В игре используется только <code>Farm</code> и, насколько я могу судить (по состоянию на 1.2.29), она никогда не использовалась.
 
|-
 
|-
 
| 17
 
| 17
 
| <tt>moneyRequired</tt>
 
| <tt>moneyRequired</tt>
| int
+
| Число
 
| ''6000''
 
| ''6000''
| Amount of money required to purchase from the Carpenter.
+
| Сумма денег, необходимая для покупки у Робин.
 
|-
 
|-
 
| 18
 
| 18
 
| <tt>magical</tt>
 
| <tt>magical</tt>
| boolean
+
| Логический
 
| ''false''
 
| ''false''
| Allow the building to build instantly/magically.
+
| Построить здание мгновенно/волшебным образом.
 
|}</li>
 
|}</li>
 
</ul>
 
</ul>

Версия 08:19, 27 августа 2021

Индекс

Robin building.png
“Предстоит ещё много работы...”
— Робин

Неполный перевод

Эта статья или её часть до сих пор не переведены на русский язык. Вы можете оказать помощь в переводе путем ее редактирования.
Последний раз редактировалось Shtompel в 2021-08-27 08:19:20.

Axe.png
Это заготовка статьи.

Вы можете помочь Stardew Valley Wiki, дополнив её!

На этой странице объясняется, как игра использует чертежи для строительства зданий. Это расширенное руководство для разработчиков модов.

Данные

Чертежи хранятся в Content\Data\Blueprints.xnb, которые могут быть распакованы для редактирования. Вот исходные данные по состоянию на 1.5.1 для примера:

Данные 
{
  "Silo": "390 100 330 10 334 5/3/3/-1/-1/-2/-1/null/Silo/Allows you to cut and store grass for feed./Buildings/none/48/128/-1/null/Farm/100/false",
  "Mill": "388 150 390 50 428 4/4/2/-1/-1/-2/-1/null/Mill/Allows you to mill wheat, beets and rice./Buildings/none/64/128/-1/null/Farm/2500/false",
  "Earth Obelisk": "337 10 86 10/3/2/-1/-1/-2/-1/null/Earth Obelisk/Warps you to the mountains./Buildings/none/48/128/-1/null/Farm/500000/true",
  "Water Obelisk": "337 5 372 10 393 10/3/2/-1/-1/-2/-1/null/Water Obelisk/Warps you to the beach./Buildings/none/48/128/-1/null/Farm/500000/true",
  "Desert Obelisk": "337 20 88 10 90 10/3/2/-1/-1/-2/-1/null/Desert Obelisk/Warps you to the desert./Buildings/none/48/128/-1/null/Farm/1000000/true",
  "Island Obelisk": "337 10 852 10 91 10/3/2/-1/-1/-2/-1/null/Island Obelisk/Warps you to Ginger Island./Buildings/none/48/128/-1/null/Farm/1000000/true",
  "Junimo Hut": "390 200 268 9 771 100/3/2/-1/-1/-2/-1/null/Junimo Hut/Junimos will harvest crops around the hut for you./Buildings/none/48/64/-1/null/Farm/20000/true",
  "Gold Clock": "/3/2/-1/-1/-2/-1/null/Gold Clock/Prevents debris from appearing on your farm. Keeps fences from decaying./Buildings/none/48/80/-1/null/Farm/10000000/true",
  "Stable": "709 100 335 5/4/2/-1/-1/-2/-1/null/Stable/Allows you to keep and ride a horse. Horse included./Buildings/none/64/96/-1/null/Farm/10000/false",
  "Well": "390 75/3/3/-1/-1/-1/-1/null/Well/Provides a place for you to refill your watering can./Buildings/none/32/32/-1/null/Farm/1000/false",
  "Shipping Bin": "388 150/2/1/-1/-1/-1/-1/null/Shipping Bin/Throw items inside to sell them overnight./Buildings/none/48/80/-1/null/Farm/250/false/0",
  "Coop": "388 300 390 100/6/3/1/2/2/2/Coop/Coop/Houses 4 coop-dwelling animals./Buildings/none/64/96/4/null/Farm/4000/false",
  "Big Coop": "388 400 390 150/6/3/1/2/2/2/Coop2/Big Coop/Houses 8 coop-dwelling animals. Comes with an incubator. Unlocks ducks./Upgrades/Coop/64/96/8/null/Farm/10000/false",
  "Deluxe Coop": "388 500 390 200/6/3/1/2/2/2/Coop3/Deluxe Coop/Houses 12 coop-dwelling animals. Comes with an auto-feed system. Unlocks rabbits./Upgrades/Big Coop/64/96/12/null/Farm/20000/false",
  "Barn": "388 350 390 150/7/4/1/3/3/3/Barn/Barn/Houses 4 barn-dwelling animals./Buildings/none/96/96/4/null/Farm/6000/false",
  "Big Barn": "388 450 390 200/7/4/1/3/4/3/Barn2/Big Barn/Houses 8 barn-dwelling animals. Allows animals to give birth. Unlocks goats./Upgrades/Barn/96/96/8/null/Farm/12000/false",
  "Deluxe Barn": "388 550 390 300/7/4/1/3/4/3/Barn3/Deluxe Barn/Houses 12 barn-dwelling animals. Comes with an auto-feed system. Unlocks sheep and pigs./Upgrades/Big Barn/96/96/12/null/Farm/25000/false",
  "Slime Hutch": "390 500 338 10 337 1/11/6/5/5/-1/-1/SlimeHutch/Slime Hutch/Raise up to 20 slimes. Fill water troughs and slimes will create slime balls./Buildings/none/96/96/20/null/Farm/10000/false",
  "Shed": "388 300/7/3/3/2/-1/-1/Shed/Shed/An empty building. Fill it with whatever you like! The interior can be decorated./Buildings/none/96/96/20/null/Farm/15000/false",
  "Big Shed": "388 550 390 300/7/3/3/2/-1/-1/Shed2/Big Shed/Doubles the size of the shed. The interior can be decorated./Upgrades/Shed/96/96/20/null/Farm/20000/false",
  "Stone Cabin": "390 10/5/3/2/1/-1/-1/Cabin/Cabin/A home for a friend! Subsidized by the town agricultural fund./Buildings/none/96/96/20/null/Farm/100/false/0",
  "Plank Cabin": "388 5 771 10/5/3/2/1/-1/-1/Cabin/Cabin/A home for a friend! Subsidized by the town agricultural fund./Buildings/none/96/96/20/null/Farm/100/false/0",
  "Log Cabin": "388 10/5/3/2/1/-1/-1/Cabin/Cabin/A home for a friend! Subsidized by the town agricultural fund./Buildings/none/96/96/20/null/Farm/100/false/0",
  "Greenhouse": "/7/6/3/5/-1/-1/null/Greenhouse/A place to grow crops from any season, year round!/Buildings/none/64/96/-1/null/Farm/-1/false/0/2 6 3 6 4 6 2 7 3 7 4 7",
  "Mine Elevator": "388 30 390 15 334 5/4/2/1/1/-1/-1/null/Mine Elevator/Quickly travel between any mine elevators you construct. You can only build one per mine level./Buildings/none/64/64/-1/MineElevator/UndergroundMine",
  "Fish Pond": "390 200 152 5 153 5/5/5/-1/-1/-2/-1/null/Fish Pond/Raise fish and harvest their produce. Fish multiply over time./Buildings/none/76/78/10/null/Farm/5000/false/2",
  "Chicken": "animal/500/64/64/Chicken/Lays delicious eggs. Comes in two colors./null/Farm",
  "Duck": "animal/1000/64/64/Duck/Lays eggs and occasionally drops feathers./null/Farm",
  "Rabbit": "animal/1500/64/64/Rabbit/These are wooly rabbits!/null/Farm",
  "Cow": "animal/1000/64/96/Cow/Produces rich, creamy milk./null/Farm",
  "Sheep": "animal/1500/64/96/Sheep/Can be sheared for valuable wool./null/Farm",
  "Goat": "animal/1500/64/96/Goat/Produces tasty goat's milk!/null/Farm",
  "Pig": "animal/2000/64/96/Pig/These are specially trained to find truffles./null/Farm"
}

Формат

Файл содержит поля данных, разделенные /, в двух форматах:

  • Здания для животных (первым полем, является животное), как эта запись:
      "Chicken": "animal/500/64/64/Chicken/Lays delicious eggs. Comes in two colors./null/Farm"
    

    Поля для построек описаны в таблице

    Индекс Поле Тип Пример Описание
    0 null Строка animal Используется для обозначения животных, которые могут жить в здании.
    1 moneyRequired Число 500 Сумма, необходимая для покупки.
    2 sourceRectForMenuView Число 64
    3 sourceRectForMenuView Число 64
    4 displayName Строка Chicken
    5 description Строка Lays delicious eggs. Comes in two colors. Описание животного.
    6 null Не используется в коде.
    7 Farm Не используется в коде.
  • Любая другая запись, подобная этой:
      "Barn": "388 350 390 150/7/4/1/3/3/3/Barn/Barn/Houses 4 barn-dwelling animals./Buildings/none/96/96/4/null/Farm/6000/false"
    
    Индекс Поле Тимп Пример Описание
    0 itemsRequired Число число 388 350 390 150 Предметы, необходимые для покупки, состоящие из пар <item ID> <amount>. В примере указано 350 Древесины (предмет с ID 388) и 150 Камня (предмет с ID 390).
    1 tilesWidth Число 7 Количество клеток ширина(x), на которые будет занимать здание при размещении на карте. Не изменяет размер размещенного изображения, изменяет "проходимую" область.
    2 tilesHeight Число 4 Количество клеток высота(y), на которые будет занимать здание при размещении на карте. Не изменяет размер размещенного изображения, изменяет "проходимую" область.
    3 humanDoor Число 1 Расположениичеловеческой двери, по x.
    4 humanDoor Число 3 Расположениичеловеческой двери, по y.
    5 animalDoor Число 3 Расположенииживотной двери, по x.
    6 animalDoor Число 3 Расположенииживотной двери, по y.
    7 mapToWarpTo Строка Barn
    8 displayName Строка Barn
    9 description Строка Houses 4 barn-dwelling animals. Описание здания, используемого в таких местах, как Меню столярного магазина.
    10 blueprintType Строка Buildings Тип чертежа. Текущими (по состоянию на 1.2.29) типами являются: Buildings(Строение), Upgrades(Улучшение), Decorations(Декор), Demolish(Разрушение), Animals(животные) хотя (по состоянию на 1.2.29) только Buildings(Строение), Upgrades(Улучшение), и Animals(животные) используются в коде.
    11 nameOfBuildingToUpgrade Строка none Используется только для чертежей с типом Upgrades(Улучшение). Позволяет вам выбрать, какое здание/чертеж вы хотите заменить/обновить.
    12 sourceRectForMenuView Число 96
    13 sourceRectForMenuView Число 96
    14 maxOccupants Число 4 Максимальное количество животных, которые могут находится в здании.
    15 actionBehavior Строка null
    16 namesOfOkBuildingLocations Строка Farm Игровые локации, где разрешено строить это здание. В игре используется только Farm и, насколько я могу судить (по состоянию на 1.2.29), она никогда не использовалась.
    17 moneyRequired Число 6000 Сумма денег, необходимая для покупки у Робин.
    18 magical Логический false Построить здание мгновенно/волшебным образом.