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:Migrate to SMAPI 3.0

24 bytes removed, 04:39, 27 November 2019
fix tense
===Is this the modapocalypse?===
Nope. Although this is a major change, significant effort will be were undertaken to minimise the impact:* the old events will be were supported for a long time with increasingly prominent warnings in the SMAPI console about their deprecation and removal;* pull requests will be were submitted to update affected open-source mods;* unofficial updates will be were created for mods which haven't updated officially by the time SMAPI 3.0 is released;* the changes will be was actively communicated and documented to modders.
In addition, the current target is ''at least'' 95% compatibility for open-source mods before SMAPI 3.0 is released. All of this means that the 3.0 release should have minimal impact on mod compatibility, despite the scope of the changes.
</source>
That code will fail fails in SMAPI 3.0, because no locations are loaded yet. This code could be rewritten like this:
<source lang="c#">
public override void Entry(IModHelper helper)
===Event changes===
The former events will be are removed in SMAPI 3.0. Here's how to convert them to the new events under <tt>this.Helper.Events</tt>. This list only shows equivalent events in SMAPI 3.0; see [[Modding:Modder Guide/APIs/Events|''events'' in the modder guide]] for a full list.
{| class="wikitable"
Protected, translators
5,421
edits

Navigation menu