Changes

Jump to navigation Jump to search
Line 6: Line 6:     
==SMAPI mods==
 
==SMAPI mods==
===Mod build config package===
+
===Overview===
Update to the latest <tt>Pathoschild.Stardew.ModBuildConfig</tt> 2.0.3-alpha package for compatibility with Stardew Valley 1.3.
+
At a high level, you can update a mod for Stardew Valley 1.3 '''single player''' like this:
 +
# Update to [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig Pathoschild.Stardew.ModBuildConfig 2.1]. This includes code analysis which will report common problems in Stardew Valley 1.3 as compiler warnings.
 +
# Rebuild your solution.
 +
# Fix any compiler errors and warnings you see in the ''Error List'' pane in Visual Studio (or equivalent for other editors).
 +
# See below for specific changes which may affect your mod.
 +
# Test all mod features to make sure they work.
 +
 
 +
Updating for multiplayer will depend on how your mod works. Consider using SMAPI's <tt>Context.IsSinglePlayer</tt> and <tt>Context.IsMainPlayer</tt> flags in your logic to avoid conflicts.
 +
 
 +
If you need help updating your code, feel free to ask questions [[Modding:Community#Discord|on the Stardew Valley Discord]].
    
===Net types===
 
===Net types===
Line 33: Line 42:  
</source></li>
 
</source></li>
 
</ul>
 
</ul>
 +
 +
===<tt>Game1.player.friendships</tt>===
 +
This field is always null in Stardew Valley 1.3. Use the new <tt>Game1.player.friendshipData</tt> field instead, which wraps the raw data with a model.
    
===Texture constructor arguments===
 
===Texture constructor arguments===
translators
8,403

edits

Navigation menu