Модификации:Руководство по использованию модификаций/Введение

Материал из Stardew Valley Wiki
Перейти к навигации Перейти к поиску

Шаблон:Руководство по использованию модификаций/header

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

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

Эта статья или её часть до сих пор не переведены на русский язык. Вы можете оказать помощь в переводе путем ее редактирования.
Последний раз редактировалось D3nb1ch в 2019-07-17 10:48:47.

Вы желаете поиграть в Stardew Valley с модификациями? Эта инструкция для Вас!

Вступление

«Мод» - это просто пакет файлов, который меняет Stardew Valley. Моды могут добавлять различные функции (например, показывать NPC на карте), изменять игровые механики (например, изгородь будет медленнее распадаться), вносить косметические изменения (например, делать ваш дом похожим на дом хоббита) и многое другое. Использовать моды легко! Для этого Вам просто понадобится...

  1. Установить SMAPI. Это загрузчик модов для Stardew Valley - он делает возможным запуск игры с поддержкой модов и позволяет модам напрямую взаимодействовать с игровым кодом. Он безопасно устанавливается вместе с Вашей игрой, и Вы можете удалить его в любое время.
  2. Распаковать моды в папку "Mods"

Ниже приведены частые вопросы по модам и помощь по началу работы.

Частые вопросы

Можно ли использовать моды на таких платформах, как : Linux, Mac, Windows, или на консолях?

Платформы, которые поддерживают работу с модами :

Платформа Поддержка модификаций
Linux ✓ Поддерживает
Mac ✓ Поддерживает
Windows ✓ Поддерживает
Nintendo Switch ✖ Не поддерживает
PS4 ✖ Не поддерживает
XBox One ✖ Не поддерживает

Почти все моды будут работать на любой поддерживаемой платформе, поскольку SMAPI переписывает их для совместимости.

Могут ли моды испортить моё сохранение?

Да, но это крайне редко. Только несколько модов влияют на ваш файл сохранения вообще. Моды вряд ли повредят ваш файл сохранения. В большинстве случаев вы можете исправить повреждение сохранения, отменив последнее сохранение.

Если вы беспокоитесь, просто время от времени создавайте резервные копии файлов сохранения. Настоятельно рекомендуется, даже если вы не используете моды, так как повреждение сохранения почти всегда вызывается самой игрой. SMAPI также автоматически создает ежедневную резервную копию ваших сохранений; Вы можете получить их из папки Mods/SaveBackup.

Can I stop using mods later?

Yep. With a few exceptions (see previous question), mods don't directly affect your save file so you can stop using them anytime.

Do mods disable Steam achievements?

Steam achievements work fine, as long as you launch SMAPI through Steam. Make sure you follow the install instructions to configure Steam on Windows (no Steam changes needed on Linux or Mac). If the Steam overlay works, the achievements should work too.

Do mods work in multiplayer?

Yep. Stardew Valley 1.3 is still new, so check the SMAPI compatibility list to see if the mod is compatible.

How they work depends on the mod. Usually each player can have their own mods, and you can mix modded and vanilla players. Some mods don't work (or work poorly) in multiplayer, or affect other players too. Try checking the mod description for details about multiplayer (often under a 'compatibility' header).

Here are some approximate rules for mods that don't specify:

type of mod effects summary
Content Patcher depends See Multiplayer in the Content Patcher readme (applies for XNB mods too).
Map replacements local That includes mods which replace an existing map (without adding special logic with SMAPI). These are only visible to players who install them. Players without the custom map will see the normal map and will be subject to the normal bounds (e.g. they may see other players walk through walls, but they won't be able to follow).
Visual changes local That includes custom portraits and sprites, custom farmer appearance (except GetDressed or Kisekae), recolors, etc. These mods only affect the players who installed them. Other players won't be affected. If both players have the same mods, they'll see the same visual changes though.
Time changes global That includes any mod which pauses time, changes the current time, or changes the rate of time. These mods only work when installed by the main player, but will affect all players. They will have no effect when used by farmhands.
Custom UI local That includes mods that add new icons, tooltips, and menus. These mods only affect the players who installed them. Other players won't be affected.
World changes global That includes any mods which edit things in the world — durable fences, monster stat changes, etc. These mods affect all players, no matter who installs them.
Other mods depends See the mod's description for details, or ask the author.

What is SMAPI?

SMAPI is the mod loader for Stardew Valley. It works fine with GOG and Steam achievements, it's compatible with Linux/Mac/Windows, you can uninstall it anytime, and there's a friendly community if you need help. SMAPI is required for most types of Stardew Valley mod.

SMAPI does a lot for you. For example, it will...

  1. Load mods into the game and provide APIs they can use. Many types of mod aren't possible without SMAPI.
  2. Rewrite mods for crossplatform compatibility, so you can use almost any mod on Linux/Mac/Windows.
  3. Intercept errors. If a mod crashes or causes an error, SMAPI will intercept the error, show the error details in the console window, and in most cases automatically recover the game.
  4. Provide update checks. SMAPI automatically alerts you when a new version of a mod is available.
  5. Provide compatibility checks. SMAPI automatically detects when a mod is incompatible and disables it before it causes problems.

Where are my...

Getting started

Установить SMAPI

Для начала вам нужно установить загрузчик модов,SMAPI. Click the right link for more info:

Найти моды

Next you can download the mods you want. Some suggestions:

Before you download a mod...

  • Does it work with the latest version of the game? (SMAPI will automatically disable most incompatible SMAPI mods, but you're on your own with XNB mods. Try checking the mod description or comments.)
  • Don't download from stardewvalleymods.net. (Mods here are usually outdated, since the site republishes mods without permission for ad revenue.)

Найти папку с игрой

Next you'll need to open your game folder (the one containing Stardew Valley's .exe file). Here's where to find it:

Platform Path
Windows GOG: C:\Program Files (x86)\GOG Galaxy\Games\Stardew Valley
Steam: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley
Linux GOG: ~/GOGGames/StardewValley/game
Steam: ~/.local/share/Steam/steamapps/common/Stardew Valley
Mac GOG: /Applications/Stardew Valley.app/Contents/MacOS
Steam: ~/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS

On Mac, the Content folder is stored separately:
GOG: /Applications/Stardew Valley.app/Resources/Content
Steam: ~/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/Resources/Content

Not there? Here are some other ways to find it:

more options 
Option 2: find it through SMAPI
  1. Launch SMAPI.
  2. Enter this command in the SMAPI console (the second window that opens with the game):
    show_game_files
Option 3: find it through Steam
  1. Open the Steam client.
  2. Right-click on Stardew Valley.
  3. Click Properties.
  4. Click the Local Files tab.
  5. Click the Browse Local Files... button to open the game folder.
Option 4: find it through GOG Galaxy
  1. Open the GOG Galaxy client.
  2. In the game sidebar, right-click on Stardew Valley.
  3. Choose Manage Installation > Show Folder to open the game folder.

Установить мод

To install a mod, just unzip it into the Mods folder in your game folder. Make sure each mod has its own subfolder. For example, if you have a PineapplesEverywhere mod, you should have a file structure like this:

Stardew Valley/
   Mods/
      PineapplesEverywhere/
         PineapplesEverywhere.dll
         manifest.json
The following describes the upcoming SMAPI 2.8, and may change before release.
If you have a lot of mods, you can optionally organise them into subfolders. SMAPI will automatically search inside each folder until it finds one with files.
Stardew Valley/
   Mods/
      Fruit mods/
         PineapplesEverywhere/
            PineapplesEverywhere.dll
            manifest.json
         ApplesNowhere/
            ApplesNowhere.dll
            manifest.json

Configure mods

Some mods have a config.json file in their mod folder. It might be created the first time you launch the game with that mod. This file lets you customise the mod settings.

To edit the config.json file, just open it in a text editor. Make sure the game isn't running when you edit it, or your changes might not take effect. See a basic guide to JSON; basically make sure your values are surrounded by quotes (like "value"). You can use this JSON validator to make sure the format is correct.

Manage mods

  • To update a mod, download the latest version and copy the new files into the existing folder. That should replace the older files, but keep any config or data files it generated for you.
  • To remove a mod, just remove it from the Mods folder.

XNB mods

XNB mods replace files in your game's Content folder with custom versions. If a mod has some .xnb files and no manifest.json, it's an XNB mod. This is an older type of mod that's no longer recommended, but see Modding:Using XNB mods if you're still interested.