Changes

Jump to navigation Jump to search
→‎Overview: tweak multiplayer note
Line 14: Line 14:  
# Test all mod features to make sure they work.
 
# Test all mod features to make sure they work.
   −
The game will automatically synchronise most world changes to other players, but you might need further changes to work in multiplayer mode. Questions to consider: will your mod cause any problems if two players both have it installed? What if they have different configuration? Maybe it should only work for the main player? You can use [[Modding:SMAPI APIs#Context|SMAPI's <tt>Context.IsSinglePlayer</tt> and <tt>Context.IsMainPlayer</tt> flags]] in your logic to avoid conflicts.
+
That should take care of compatibility in single-player mode. The game will automatically synchronise most world changes to other players, but you might need further changes to work in multiplayer mode. Questions to consider: will your mod cause any problems if two players both have it installed? Do you have any custom objects/buildings/etc that might get synchronised to other players, and will that synchronisation work correctly? What if they have different configuration? Maybe it should only work for the main player? You can use [[Modding:SMAPI APIs#Context|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]].
 
If you need help updating your code, feel free to ask questions [[Modding:Community#Discord|on the Stardew Valley Discord]].
translators
8,437

edits

Navigation menu