Load Order

From The Stardew Modding Wiki
Jump to navigation Jump to search

STUB

When users gather more and more into their Mods folders, inevitably there will come a time when two mods attempt to edit the same part of the game at the same time. In this case, the mod loaded "last" will win out. Think of it as a layered-caked; SMAPI adds mods to the top of the baking pan as it finds them, and the ones that get added last are on top, for all the world to see.


Currently, SMAPI loads mods in an order that can be determined in two ways:

- Alphabetically by folder name that contains the mod's manifest.json, located where you put the mod as usual in the very familiar "Stardew Valley\Mods" filepath

- By loading mods after their dependencies, listed in their manifest.json


Accordingly, the mod user can make changes to their own load order to suit their personal tastes by:

- Renaming the mod folder that contains the manifest.json of the mod the user wants to appear in game so that it is farther along in the alphabet than the mod the user wants to override

e.g. "Stardew Valley\Mods\Fake Horse Retexture Mod" to "Stardew Valley\Mods\zFake Horse Retexture Mod"

- Adding the UniqueID of the mod the user wants to override as a dependency to the manifest.json of the mod the user wants to appear in game

e.g.

"Dependencies": [

{

"UniqueID": "Horse.Mod.User.Wants.Fake.Horse.Retexture.Mod.to.Override",

},

]