Changes

→‎Changes: + Mod build package updated
Line 37: Line 37:     
==Changes==
 
==Changes==
 +
===Mod build package updated===
 +
Update the [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig mod build package] for compatibility with SMAPI 3.0.
 +
 
===Mods are loaded earlier===
 
===Mods are loaded earlier===
 
Mods were previously loaded right before the first <tt>UpdateTicking</tt> event, which is too late for some changes like intercepting core assets. SMAPI 3.0 loads them much earlier, before the game is fully initialised. '''Do not depend on game fields like <tt>Game1.objectInformation</tt> having a valid value in your <tt>Entry</tt> method!''' You can use the <tt>GameLaunched</tt> event for that instead. See [[Modding:Modder Guide/APIs/Mod structure#Mod entry]] for more info.
 
Mods were previously loaded right before the first <tt>UpdateTicking</tt> event, which is too late for some changes like intercepting core assets. SMAPI 3.0 loads them much earlier, before the game is fully initialised. '''Do not depend on game fields like <tt>Game1.objectInformation</tt> having a valid value in your <tt>Entry</tt> method!''' You can use the <tt>GameLaunched</tt> event for that instead. See [[Modding:Modder Guide/APIs/Mod structure#Mod entry]] for more info.
translators
8,404

edits