⚜ SteamCozy

Home / News / Project 5: Sightseer

Twitch Integration

Project 5: Sightseer · Community Announcements · August 22, 2019

Read the original on Steam ↗
The game features a rich Twitch integration that allows viewers to influence the game's events, but how to use it, one might ask? Well, here's a detailed description.

SETUP


  1. While on the game's main menu (before starting your world), click on the gears icon on the top left to bring up the options.
  2. Enter your Twitch Channel name. For example, if your channel is https://www.twitch.tv/abcdef, you would enter "abcdef" (without the quotes) and hit Enter. Doing so will open up additional options.
  3. Enter the username you wish to use. It can match your channel name, but it can also be the username of your bot you wish to use.
  4. Go to https://twitchapps.com/tmi/ to get your OAUTH token, and enter it in the OAUTH field. This should be the full token, for example: "oauth:ou99kxgkh12cgdbv3h4mieyj5yowqr". The OAUTH token is what allows the game to talk back to Twitch viewers on your behalf.
  5. Enable the Interaction option, and if you wish -- the Chat option as well. Interaction is what allows the game to respond to keywords in Twitch chat, while Chat allows your game to display Twitch chat in the in-game chat window. Both can be toggled from within your game later.
  6. Play the game! You can test the functionality by using the !p5 command in Twitch chat (but this won't work if you do it from the same account as the "username" from the step 3).



COMMANDS


Your viewers will have the ability to use the following commands, which can be both used in public, as well as PM'd to the 'username' from step 3, above:

Note that all NPCs created by viewers will have their name, so the streamer will know whom to thank (or yell at!) :)

In addition, if the Streamer is in a Combat Simulation, new additional commands open up:

MORE


In addition, the Streamer can choose to award points to any viewer at any time by using the /award ViewerName # command in game's chat. For example, /award ArenMook 50. You can use this command as a thank you for viewer donations and subscriptions.

/setServer twitchCD = 0.5 -- This command lets the server admins control the cooldowns on Twitch commands (as they all have innate cooldowns so they can't be spammed). '0.5' in this case would make them usable twice as often. '2.0' would mean the opposite -- half as often. Default is '1'.

/setServer twitchCost = 0.5 -- This command lets the server admins to change how many points the abilities cost. '0.5' would mean that a 120 point command will cost 60 points instead. Using '2.0' here would have the opposite effect (240 points). Point accumulation rate remains unchanged, so you can control how often players can use abilities by adjusting this value. Default is '1'.

/setServer streamerMode = false -- This command lets the server admins to turn off Twitch integration on the server. For example, it's currently disabled on the Tasharen's PvP server.

/setServer time = 1220 -- This command lets the server admins to freeze time at the specified value. This is very useful for streamers, as the world tends to get very dark at night. Freezing the time close to sunrise/sunset will look spectacular, and will let viewers see what's going on better. The '1220' is an offset in hours, in this case, so you will likely need to adjust it by a few hours (for example 1215) to get the desired angle of the sun.

Questions? Comments? Stop by Tasharen's Discord. I hope you and your viewers will find the Twitch integration to be as much fun as I've had adding it. :)

-Aren
Project 5: Sightseer MORE ON STEAMCOZYProject 5: Sightseer 71.4% positive · 531 reviews Price tracking · player charts · similar games →