0 of 0

File information

Last updated

Original upload

Created by

the_ghost99

Uploaded by

theghoast99

Virus scan

Safe to use

About this mod

Always-on multiplayer server based on funny-snek and Moy's previous work

Requirements
Permissions and credits
Changelogs
Stardew Unattended Server Mod
This is a "Headless Server" mod allowing the host and thus the game world to
 remain online always, much the way Minecraft and other online games 
function. It accomplishes this by automating the Host's day-to-day 
activities. AKA a "Bot" that plays the game for you when you are away.


How to Install:



How to Use:

   
  • Change your settings to what you prefer in the config.json file in the "StardewUnattendedServer" folder before you start the game.
  • Host a multiplayer game like you normally would. The server mod will start automatically when the game starts.
  • Pres the "F9" button on your keyboard to turn server mode on/off. (For when you want to play the host yourself)
  • Warning! - The server will hang on the save screen if the game is minimized in
    windows. It doesn't have to have focus, you can go do other things, but 
    IT CAN NOT BE MINIMIZED! (Not sure about Mac/Linux)

Settings

  • Edit the "config.json" file in the "StardewUnattendedServer" folder to set your options.
   
      "serverHotKey": "F9",      (which button to start/stop server)
      "profitmargin" : 100,                                    (Profit Margin in percent)
      "autoLevel": true,                                         (When the server is activated is the host auto-leveled to 10)
      "upgradeHouse": 3,                                     (Upgrades the main house. 3 is max level, 0 will do nothing)
      "petname": "Qwerty",                                   (what is petname? must be 10 characters or less, can change at any time)
      "farmcavechoicemushrooms": true,         (make farm cave mushroom, false will be bats, choose before run)
      "communitycenterrun": true,                      (host will attempt CC run,  false will do Joja run)

      "timeOfDayToSleep": 2200,                        (when does the host sleep in military time, up to 2600 for 2 A.M.)
      "lockPlayerChests": true,                            (while servermode is on, players can not access the chests or inventory in other player's cabins.)
      "clientsCanPause": false,                            (type !pause/!unpause into chat)
      "copyInviteCodeToClipboard": true,           (copies current invite code to your computer's clipboard once a minute)
      "festivalsOn": true,                                       (host will go to festivals)
      "<eventname>CountDownConfig": 60,      (how long in seconds from the start of the festival until it's main event)
      "<eventname>TimeOut": 120,                     (how long in seconds until the connection resets to prevent lockup from an AFK player.
                                                                                 Most festivals start this timer after their final cutscene ends. Fair, Spiritseve, and 
                                                                                 Winterstar start this timer as soon as the festival starts)
 Chat Commands
  Clients can type these into chat if the game gets stuck.

  • !sleep - tries to trigger the sleep command if it's past the config sleep time (default 10PM)
  • !festival - tries to trigger the go-to-festival command if it is a festival day
  • !event - tries to trigger the command to start the main event of a festival
  • !leave - will attempt to leave a festival
  • !unstick - will warp the host inside/outside the farmhouse (which generally
    seems to get through any bugs. Sometimes it takes a few warps, 
    especially for festivals.)

   
Accessing the Server
  • Friends List: Your Steam or GoG friends should be able to see your game and join at will the same way they would normally.
  • Direct IP: If you want to set a up direct IP access over the internet "Join LAN Game" you need to open (or forward) port 24642. Or use Server Port Changer to choose a different port.Then give people your external IP.
  • Invite Code: Invite Code connections are routed through Steam/GoG . I've provided
    two methods for delivering your game's current invite code to players:
  • Invite Code Auto Copy/Paste: The server will copy the most up-to-date invite code to the clipboard (on by default in the config.json file) whenever it changes. You can then use a macro program of your choice to paste that code into the chat service of your choice so that your non-steam friends can always have access to the most up-to-date invite code even when you are not there. When the game server is turned off it will no longer copy the key.
  • Invite Code Bot: The server will copy the invite code to an "InviteCode.txt" file in the same folder as the mod. You can use this to make a bot for a chat service/website/etc. I've provided the code for a node.js Discord bot in the "Discord Bots" section at the bottom of this page.

Features

  • Only the host needs to install the mod
  • Host Teleports to bed and Auto-Sleeps every day (default 10P.M., can change
    in config.json) so that other players can keep playing without the host 
    having to be at their computer. Other players can go to bed when they're
     ready and won't be stuck waiting on the host.
  • Checks Mail every day
  • Does host set up (cave/pet/house/etc)
  • Locks client chests to everyone but cabin owner (optional)
  • Clicks "OK" on the end of day Shipping Menu allowing the game to save and sync with the clients.
  • Pauses the game when all clients disconnect (except on Holidays to prevent
    lock-up). Resumes when at least 1 client rejoins. This prevents the farm
     from falling into disrepair and years of game time passing with no one 
    around.
  • Freezes Relationship Heart Loss for Host while "server" is running
  • Full Festival Support! - Events like Egg Hunt, Ice Fishing, etc begin 1
    minute after festival starts so players have some time to look around. 
    Host will not go to sleep until after Festival time window is over. 
    Clients can choose to go to festival or not, server will still work. All
     clients must go to festival to trigger it to start just like normal 
    game-play.
  • Full Event Support! - Grampa Evaluation, Kent arrival, all cutscenes, etc etc
    will all click through if they pop-up allowing the server to stay 
    online and not get locked up.
  • Festival and Event Warnings sent to clients via chat.
  • Times Out and resets the server connection to prevent an AFK'er or the game's
    own connection bugs from locking up the game indefinitely(A 2 minute 
    warning is sent out in chat before the end of the appropriate festivals 
    to let everyone know to exit or they will be kicked).
  • Turns off "Pause When Game Window Is Inactive" so you no longer have to.
  • Config file for various settings
  • Copies most up-to-date Invite Code to clipboard
  • Copies most up-to-date Invite Code to "InviteCode.txt" file inside the "StardewUnattendedServer" mod folder
  • Joja run will buy upgrades going from lowest cost to highest every time you have double the cost saved up. E.G. Joja Minecarts cost 15,000g so it will buy them when you have 30,000g

How to Contribute: