- Modding:Content Patcher
- Contents
- Quick start
- Basic concepts
- What is Content Patcher?
- Assets
- Load vs edits
- Get started
- Intro to JSON
- Create example mod
- Content format
- Please log in or register
- Content Patcher Animations
- File information
- Last updated
- Original upload
- Created by
- Uploaded by
- Virus scan
- Tags for this mod
- About this mod
- Nexus requirements
- Mods requiring this file
- Author’s instructions
- File credits
- Donation Points system
- Straight donations accepted
- Как установить моды для Stardew Valley
- Установка SMAPI
- Установка Content Patcher
- Поиск файлов
- В Stardew Valley 1.5.5 улучшена поддержка модов, а в 1.5.6 может появиться новый контент
Modding:Content Patcher
Creating Content Patcher packs
Do you want to create Content Patcher packs for Stardew Valley? This page is for you! For using mods, see Modding:Player Guide. For creating other mod types, see Modding:Index#Creating mods.
Contents
Quick start
This page is meant as a gentle introduction to creating Content Patcher packs. If you don’t need an introduction, see the full Content Patcher readme.
Basic concepts
What is Content Patcher?
Content Patcher is a SMAPI mod which lets you change the game assets (images, dialogue, data, and maps) without replacing game files or writing code. You use it by creating a content pack (basically a folder) with a couple of JSON files (basically text). Just by editing a JSON file, you can.
- replace one image file;
- make seasonal changes;
- make dialogue that changes based on the weather, date, your relationships with other NPCs, etc;
- make very specific changes (like coffee is more expensive on winter weekends when it’s snowing after you’ve completed the JojaMart);
- and much more.
Assets
An asset is essentially a file in the game’s Content folder with a unique asset name. The asset name never includes the Content path, language, or file extension (you can use tokens to target specific languages). For example:
file | asset name |
---|---|
Content/Portraits/Abigail.xnb | Portraits/Abigail |
Content/Maps/spring_beach.xnb Content/Maps/spring_beach.es-ES.xnb Content/Maps/spring_beach.fr-FR.xnb | Maps/spring_beach |
An asset may contain multiple sprites or data entries. For example, here’s what Portraits/Abigail contains if you unpack it:
So if you wanted to change Abigail’s portraits, you would use Content Patcher to load or edit Portraits/Abigail .
Load vs edits
There are two conceptual ways you can change an asset:
- Load the initial version of an asset. Each asset can only be loaded by one mod at the same time. This is mainly useful for total replacement mods (like a mod that completely changes an NPC’s portraits), or to provide files that don’t exist in the Content folder.
- Edit an asset after it’s loaded. Any number of edits can be applied to the same asset.
For example, let’s say the game needs Abigail’s portraits. This is how changes are applied:
This is divided into four main action types ( Load , EditData , EditImage , EditMap ), which are explained in more detail in the Content Patcher readme (see below).
Get started
Intro to JSON
You’ll notice a lot of files with .json at the end of the name when creating mods for Stardew Valley. That means they’re formatted as JSON, which is just a way of writing text that’s readable to code. If you haven’t used JSON before, reading An Introduction to JSON first will be very helpful to understand what the files are doing.
Create example mod
First let’s get our basic content pack up and running:
- Install SMAPI and Content Patcher.
- Unpack the game’s Content folder so you can see what each asset contains (see Modding:Editing XNB files#Unpack game files).
- Create a SMAPI content pack per step 3 of the general Create a Content Pack page.
- Create a content.json file in the same folder with this content:
If you did everything correctly so far, you should see the new mod under «Loaded X content packs» in the SMAPI console. (If not, review the above steps or ask for help.)
Content format
The content.json file you created above is what tells Content Patcher what to change. This has two main fields:
- Format : the format version. You should always use the latest version (currently 1.23.0) to enable the latest features and avoid obsolete behavior.
- Changes : the changes you want to make. Each entry is called a patch, and describes a specific action to perform: replace this file, copy this image into the file, etc. You can list any number of patches.
You can list any number of patches in the Changes field, each surrounded by < and >. See the next section for more info, but here’s a quick example:
(There are other fields like ConfigSchema and DynamicTokens for more advanced usage; these are covered in the full readme.)
Источник
Please log in or register
To enjoy the benefits of Nexus Mods, please log in or register a new account
Content Patcher Animations
File information
Last updated
Original upload
Created by
Uploaded by
Virus scan
Tags for this mod
About this mod
Animate textures in Content Patcher with its «EditImage» action.
Nexus requirements
Mods requiring this file
Mod name | Notes |
---|---|
Animated Well | |
Animated Clothes | |
Animated Cosmic Galaxy Weapons | |
Animated Downtown Zuzu Items | |
Animated Festive Winter Tree | |
Animated Fish | |
Animated Fish SVE | |
Animated Food and Drinks | |
Animated Furniture and Stuff | |
Animated Gemstones 1.1.5 | Updated version on Nexus |
Animated Junimo Scarecrows | |
Animated LightningRod | |
Animated Lunna — Astray Fish | |
Animated Mini-Obelisk | |
Animated Mining Pack | |
Animated More New Fish | |
Animated Ridgeside Village Fish | |
Animated Seasonal Display Background | |
Animated Slime Eggs and Loot | |
Animated Tools and Weapons | |
Animation for Gorgeous Weapons | |
Animatronic Lewis | |
Aquarium Overhaul | (Optional for animations) |
Auto-grabber Robot | |
Better Gemstones Animated | |
Blessing of the Katana — Snippet of Upcoming Expansion (Weapons Only) | |
Content Patcher Animations — Leyline Paths | |
CP A Moment_fm’s Iridium Sprinkler retexture Doremi | 이거 안 깔면 안 움직이니까 깔아라. |
CP Christmas Candyland | |
CP-A — Fire Katana (Hiroyuki) | |
CPA Christmas Fireplace | |
Crowley’s Arcane Tools | |
Cute Crab Pots | Optional for secondary config setting |
DronePc | |
DZK312’s Fanciful Resources | NOT REQUIRED for mod to work, required if animated sprites are desired |
Festivals Recolor and Animations | |
Fippsie’s Animated Lamp Posts | |
Fippsie’s Animated Trees | |
Hades Cooking Boons | Animations can be turned off in the config file (to false) |
Haste Milk | optional |
Haunted Chocolatier | |
Healthy blobfish | |
Hot Air Balloon Obelisks | |
Hyper Realistic Coins | Animations can be turned off in the config file |
Inspiring Valley | to animate the inspirations |
Joja Ghosts | |
Junimo Hats | (optional) |
Lumisteria’s Farmer Backgrounds | Optional — For beach animation |
PPJA — Fresh Meat_An ‘Alternative’ Butcher Mod | (optional — see optional files) |
Pride Pastries | |
Rainbow Animated Galaxy Sword | |
Replace Obelisks with Terraria Pylons | only required if you plan on using the animated sprites |
Seasonal Japanese Buildings | For the animated well and statues |
Secret Gourmet | Optional/Highly Recommended! |
StarFUR Valley Portrait Animations (Anthro Characters Continued) | |
Surfing Festival | |
Tanpoponoko’s Custom Map Elements for Content Patcher | |
Truly Rainbow Shell | This is only for the animated version |
Wind Turbine (CP) | |
Witchy Valley |
Author’s instructions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Straight donations accepted
Content Patcher Animations lets you animate textures in Content Patcher with its EditImage action.
Install
- Install the latest version of SMAPI and Content Patcher.
- Unzip the mod folder into Stardew Valley/Mods .
- Run the game using SMAPI.
Use
For players
Just install the mod and it’ll work automatically for content packs that use it.
For mod authors
- Create a content pack for Content Patcher.
- Add an EditImage patch for the image you want to animate.
- Give the patch a unique LogName value.
- Add these two fields to your patch:
- AnimationFrameTime is the number of ticks between each frame (in game ticks, which is 1/60thof a second);
- AnimationFrameCount is the number of frames.
All frames must be next to each other horizontally in the same FromFile image.
See the optional files for an example content pack.
Compatibility
Compatible with Stardew Valley 1.5+ on Linux/macOS/Windows, both single-player and multiplayer.
Источник
Как установить моды для Stardew Valley
Моды вращают игровой мир. Созданный сообществом контент для сообщества. Но большинство игр напрямую не поддерживают и не имеют возможности управлять модами, что усложняет выполнение этой задачи самостоятельно. Если вы один из многих, кто слишком запутался и разочаровался при попытке вручную установить моды для видеоигр, особенно вашей любимой фермерской игры, известной как Stardew Valley, не смотрите дальше.
Перед загрузкой модов необходимо сделать всего два небольших шага, чтобы убедиться, что моды правильно работают с файлами игры и поддерживаются. Первые два шага — это установка SMAPI и Content Patcher.
Установка SMAPI
SMAPI сделает всю работу за вас, как только вы установите его отсюда. Это небольшая программа, которая позволяет загружать моды и управлять ими в Stardew Valley. Сначала вы должны распаковать загруженный файл SMAPI в любое место, которое не является основной папкой игры. Сделав это, дважды щелкните имя файла для используемой вами операционной системы.
Оттуда появится небольшое окно с черным квадратом, которое сделает все остальное за вас. Это укажет вам направление, в котором ваши будущие моды будут помещены в папку с игрой. Каждый раз, когда вы запускаете Stardew Valley, SMAPI проверяет наличие устаревших модов. После того, как вы настроите SMAPI, вам нужно будет перенаправить Steam в нужное приложение для загрузки. SMAPI создает файл «StardewModdingAPI» внутри папки с игрой. Вы можете либо напрямую щелкнуть по нему в папке с игрой, чтобы загрузить модифицированную Stardew Valley, либо вы можете перенаправить запуск игры Steam в этот файл, чтобы при нажатии кнопки воспроизведения в Steam открывалась модифицированная версия.
Чтобы найти модифицированное приложение Stardew Valley:
- «Этот компьютер => Локальный диск (C:) => Program Files (x84) => Steam => steamapps => common => Stardew Valley => StardewModdingAPI»
Чтобы перенаправить Steam на модифицированную версию:
- Щелкните правой кнопкой мыши игру Stardew Valley в своей библиотеке;
- Щелкните свойства;
- Во вкладке «Общие» в самом низу будет «Параметры запуска» с текстовым полем. Вы должны ввести здесь указанное местоположение файла API слово в слово;
- Введите это в текстовое поле, включая цитаты и проценты: «C: => program files (x86) => steam => steamapps => common => Stardew Valley => StardewModdingAPI.exe» %command%
Установка Content Patcher
После успешной установки SMAPI вы захотите скачать здесь Content Patcher. Это то, что позволит вашим модам работать в игре и ничего не ломать.
Когда вы устанавливаете zip-файл, вам нужно переместить его в папку Mods в папке Stardew Valley, а затем извлечь его в папку Mods. Самый простой способ переместить файл туда — переместить окно, в котором открыта ваша папка «Загрузки» или куда вы скачали zip-папку, в одну сторону экрана. Затем откройте новое файловое окно на другой стороне, в котором открыта папка с модами. Оттуда перетащите zip-папку Content Patcher в окно Mods. Как только zip-папка будет извлечена в папку Mods, все готово!
Чтобы попасть в папку Mods:
- (C:) => Program Files (x84) => Steam => steamapps => common => Stardew Valley => Mods
Поиск файлов
Теперь, когда эти две вещи устранены, все, что вам осталось сделать, это извлечь любые файлы модов, которые вы хотите, в свою папку Mods, а затем открыть игру, как обычно.
Когда вы найдете в Интернете понравившийся мод, поддерживаемый SMAPI и Content Patcher, просто поместите zip-файл в папку Mods и извлеките его туда. Когда вы открываете Stardew Valley, все моды должны быть загружены. Просто не забудьте либо открыть его, щелкнув приложение StardewModdingAPI в папке Stardew Valley, либо перенаправив Steam в приложение, чтобы Steam открывал моды для вас.
Источник
В Stardew Valley 1.5.5 улучшена поддержка модов, а в 1.5.6 может появиться новый контент
Создатель Stardew Valley Эрик «ConcernedApe» Бароне сообщил о выпуске нового обновления для игры. В Stardew Valley 1.5.5 были внесены улучшения для поддержки модов, а также исправлены ошибки и улучшено качество жизни. Бароне также анонсировал обновление 1.5.6, в котором будут представлены дальнейшие улучшения модов и, возможно, новый контент.
В 1.5.5 вы можете удерживать клавишу ctrl и переходить к покупке или изготовлению предметов в стопках по 25. Полные примечания к патчу доступны на официальном сайте, но некоторые другие улучшения включают опции, чтобы размещать здания на местах с артефактами, отталкивать домашних животных во время строительства или выкупать предметы, которые вы продали случайно.
Однако большое изменение в 1.5.5 заключается в том, что игра была перенесена с XNA на MonoGame. Как объясняет Бароне, «это делает игру перспективной и позволяет модам получать доступ к более чем 4 гигабайтам оперативной памяти». Также были «различные внутренние изменения для авторов модов».
Бароне работает с создателем SMAPI PathosChild над предстоящим обновлением 1.5.6, «чтобы добавить в игру еще больше поддержки моддинга, включая некоторые давно запрошенные изменения, которые должны значительно упростить некоторые аспекты моддинга в будущем. Мы предоставили доступ к исходному коду PathosChild, чтобы помочь нам выполнить эту задачу».
«В 1.5.6 тоже может быть какой-то новый контент, — добавляет Бароне, — но он не будет таким огромным, как 1.5».
Источник