Changes

Jump to navigation Jump to search
→‎How do I test my code in multiplayer?: update for SMAPI supporting multiple instances by default
Line 173: Line 173:  
==FAQs==
 
==FAQs==
 
===How do I test my code in multiplayer?===
 
===How do I test my code in multiplayer?===
You can test mods in multiplayer on the same computer, by launching two instances of the game. This needs a few extra steps.
+
You can test mods in multiplayer on the same computer, by launching two instances of the game:
    
# Prepare player one:
 
# Prepare player one:
Line 180: Line 180:  
## Start a new save slot (unless you've already created one). Make sure to set 'starting cabins' to at least one (you'll need one cabin per extra player).
 
## Start a new save slot (unless you've already created one). Make sure to set 'starting cabins' to at least one (you'll need one cabin per extra player).
 
# Prepare player two:
 
# Prepare player two:
## Launch SMAPI from a terminal or command prompt like this:
+
## Launch SMAPI again. (This will automatically create a separate log file.)
##* Windows: <code>StardewModdingAPI.exe --log-path "SMAPI-latest-player2.txt"</code>
  −
##* Linux or Mac: <code>StardewValley --log-path "SMAPI-latest-player2.txt"</code>
   
## From the title screen: click ''co-op'', then ''join LAN game''.
 
## From the title screen: click ''co-op'', then ''join LAN game''.
 
## Leave the 'Enter IP...' box empty and click OK.
 
## Leave the 'Enter IP...' box empty and click OK.
translators
8,403

edits

Navigation menu