Denifia / StardewMods

Mods for Stardew Valley using SMAPI.
GNU General Public License v3.0
4 stars 2 forks source link

Create a utility to manage online friends #16

Closed Denifia closed 7 years ago

Denifia commented 7 years ago

Currently to add online friends, you need to edit the json files directly. I'd like people to be able to use a UI (in or out of Stardew) to manage their friends list.

Decided to use SMAPI commands to manage friends.

Denifia commented 7 years ago

I'm wanting a really quick easy interface.

You run the exe and it shows you the command to add YOU as a friend to another player. You can then copy this command and send to your friends.

e.g. Player 1 runs SendLettersCli.exe at a command prompt Output is: Ask your friends to run this to add you as a friend! SendLettersCli.exe --id 9881fc60-2161-4399-863c-212d54a0ca0d --name <your name> e.g. SendLettersCli.exe --id 9881fc60-2161-4399-863c-212d54a0ca0d --name Larry

Denifia commented 7 years ago

Hrmmm... just realised that the TrainerMod explains how to add commands to SMAPI... so I'll just do that :)

Denifia commented 7 years ago

TrainerMod.cs for reference.

Add("sentletters_addfriend", "Adds a friend to your currently loaded game.\n\nUsage: sentletters_addfriend \n- name: the name of your friend.\n- id: the id of your friend.", this.HandleCommand); Add("sentletters_me", "Shows you the command that your friends need to type to add you as a friend.\n\nUsage: sentletters_me", this.HandleCommand);

Denifia commented 7 years ago

using the CommandService and the SMAPI console, i've implemented all the features I wanted to