This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Modder Guide/APIs/Utilities

3 bytes removed, 15:58, 30 September 2020
m
Mod path: tweak wording for readability
===Mod path===
Before handling mod folder paths, be aware that:
* The '''mod's folder path is not consistent'''. The game is installed to different pathsfolders, Nexus mods are often unzipped into a folder like <tt>Mods/Your Mod Name 1.27.5-541-1-27-5-1598664794/YourModFolder</tt> by default, and players can organize their mod folders like <tt>Mods/For single-player/YourModFolder</tt>.
* Paths are formatted differently on Linux/Mac/Android vs Windows.
You don't need to worry about that when using SMAPI APIs, which take relative paths and automatically fix the path format if needed:
<source lang="c#">
var data = this.Helper.Data.ReadJsonFile<SomeDataModel>("assets/data.json");
Protected, translators
5,421
edits

Navigation menu