Closed UTDZac closed 12 months ago
I've completed the Stream Connect Guide wiki page if you want to check it out. The developers section is has a few links that won't work yet until this feature is officially released.
Finished adding in the resource files for this feature, as well as fixed a tiny bug with HMs displaying as TMs in chat output.
This PR adds a complete Network framework with connection support to Streamerbot. For now, this is done simply by reading/writing every few seconds to inbound and outbound files (Json). Other connection types may become available in the future as they become officially (and properly) integrated into Bizhawk itself.
The initial goal of this feature is to allow Twitch chat to communicate with the Tracker via chat commands, or by redeeming a channel reward to change something about the tracker, like picking a starter ball or changing the Tracker theme.
Setup
To user first needs to setup the Network through the Steam Connect screen found in the Streaming settings menu. This setup process will be outlined in a wiki page which I'll built out later. Once setup, the tracker will automatically connect when new games are loaded, and disconnect when the tracker resets/closes down.
Network Framework Details
Connection Modes
New Core Files
Other Notes
Utils.isNilOrEmpty()
helper function in this PR instead of thedev
branch, which is why so many files are affected by this PR. Whoops!!trainers
chat command for looking up what trainers the player still has left to fight. Having figured out the logic for this one yet. Will likely delay for a future patch release.How To Test
I'm interested in a better way to explain how to connect purely through the Tracker UI if at all possible. As of now, I plan to have instructions on the wiki. I think only step 3 is the hard part to explain that I'm stuck on.