npchelper is a command-line tool for people who make NPC mods. It creates starter packs, checks packs the way the game reads them, and packages packs for release. It works on the same content-pack format as hand-written packs, so you can mix both.
Install#
The tool is a .NET tool installed from NuGet.
dotnet tool install -g NpcHelper.StardewValley.Cli
To update it later:
dotnet tool update -g NpcHelper.StardewValley.Cli
Check that it works:
npchelper --help
Use npchelper <command> --help for the options of one command.
Commands#
npchelper new pack#
Creates a new content pack that you edit by hand.
npchelper new pack "[HP] MyPack" --id Me.MyPack --npc Rei
- The first argument is the folder to create.
--idis the pack's unique ID, written intomanifest.json.--npcnames the first NPC. The pack includes a starter NPC file and valid placeholder images, so it loads straight away.
npchelper new npc#
Adds another NPC to an existing pack.
npchelper new npc "[HP] MyPack" Alex
npchelper new translation#
Creates a translation content pack for an existing NPC. It writes the correct layout and sets Locales and Translates in mod.toml. Run npchelper new translation --help for its options.
npchelper new dll-mod#
Creates a C# SMAPI mod that defines NPCs in code. See C# SDK.
npchelper new dll-mod MyMod --id Me.MyMod --npc Rei
npchelper validate#
Checks a pack the way the game will read it and prints every error and warning.
npchelper validate "[HP] MyPack"
It reports bad values, unknown keys, and the pack-structure mistakes listed in Pack structure, including misnamed folders and files, language folders such as th_TH, and translations for an NPC that does not exist.
npchelper inspect#
Shows how a pack is understood.
npchelper inspect "[HP] MyPack"
npchelper pack#
Creates a zip of a pack for upload.
npchelper pack "[HP] MyPack"
It refuses to package a pack that has structure problems. Add --force to package it anyway.
A typical workflow#
npchelper new pack "[HP] MyPack" --id Me.MyPack --npc Rei- Edit the TOML files and replace the placeholder images.
npchelper validate "[HP] MyPack"until clean.- Copy the folder into
Modsand test in the game. npchelper pack "[HP] MyPack"and upload the zip.
See Test and publish.