XCOM 2
[WotC] Twitch Integration
 此主题已被置顶,因此可能具有重要性
Delicious  [开发者] 5 月 2 日 上午 11:46
Frequently Asked Questions
Is this safe to run?
This is a hard question to answer, because it depends on trusting me, a random developer, to answer honestly. For my part, I feel it's safe; the app never has access to your Twitch password or stream key, and I've done everything I can to make sure viewers can't cause the game to crash or break. But if I were a malicious attacker trying to steal your Twitch info, I would say the same things.

If you're inclined, you can find links to the source code below, and either inspect it or (for the truly paranoid) build it yourself. You can also see the experiences of other streamers who have used this mod, including Beaglerush[www.twitch.tv] and MrCloista[www.twitch.tv].

Can I add/remove this mid-campaign?
This should be safe to add mid-campaign, but I haven't tried with all the mods out there. Back up your save first.

You cannot remove this mod from a campaign in progress.

How do I assign viewers to my soldiers?
During a mission, you can change the selected unit's owner by clicking the "Change Owner" button in the bottom left.

While in the Avenger, select a soldier in the Armory and you'll see a "Set Twitch Username" button.

I keep seeing jumbled text whenever viewers use non-ASCII characters (e.g. Chinese/Japanese/Korean). Can you fix this?
Unfortunately no. XCOM 2 is built on Unreal Engine 3, which uses UTF-16 encoding for text. I've tried, but there doesn't appear to be any way I can convert the UTF-8 from Twitch to UTF-16 and have Unreal recognize it properly.

Because of this, viewers with non-ASCII names are not able to use chat commands, win raffles, and so on. Allowing them to was leading to game crashes.

Why does the app say "You are not connected to XCOM 2"?
The game only attempts to connect to the app during missions and while you're in the Avenger. If you're on the main menu or in a loading screen, no connection is occurring.

Why does the app require so many permissions when logging in to Twitch?
Most of the permissions are straightforward, e.g. the app can read chat in order to support chat commands. Probably the most concerning permission is the ability to "perform moderation actions". This is because the app can temporarily time out (not ban) viewers. Timing out viewers lets you set up funny moments like a channel point reward that times out the enemy team, or a Roll the Dice outcome that times out the user.

How do I set up a custom chat command, channel point reward, poll, etc?
That's too big of a topic to cover here. Check out the GitHub wiki[github.com] for instructions.

Can I set up commands that only work when the viewer spends Bits?
No. The only way to do this would be requiring Bits to be included when using a chat command. This is too easy for a viewer to mess up (too few/too many Bits), and the streamer can't refund them if that happens.

Twitch may provide support for custom Power-ups[help.twitch.tv] in the future, which would mostly avoid these issues. If this happens, I may incorporate them into Twitch Integration.

After a few minutes, my game is running very slowly. What's going on?
Make sure you're running the stream app, as per the setup instructions. Without it, the game will fill the log with errors that quickly make the game run terribly.

Why do I have to run a separate app?
XCOM 2 is built on Unreal Engine 3, which is pretty old. It's old enough that there's no built-in support for HTTPS, which (along with some other technologies) is required to securely communicate with Twitch services. Implementing HTTPS in the mod directly would be a Bad Idea for a lot of reasons.

Instead, the app is built with modern technologies and handles secure communication with Twitch. The mod then talks only with the app, which is safe because that back-and-forth never leaves your computer.

Can I view the code for the mod and/or app anywhere?
Yes, you can find the code for both on GitHub - the mod here[github.com], and the app here[github.com].

Do you stream anywhere?
No.
最后由 Delicious 编辑于; 6 月 24 日 上午 7:40
< >
正在显示第 1 - 6 条,共 6 条留言
Smiles 5 月 3 日 下午 10:25 
How do you access the in-game settings for the Mod? I installed it and tested it and it works, But I cant find the In-game Mod Settings Anywhere.
RustyDios 5 月 3 日 下午 10:55 
In-game mod settings would require you to have the Mod Config Menu, mod. They can then be found by going to the menu > settings > a new 'mod settings' button near the bottom center.
Any idea when the linked github will be populated with how to set up channel point redeems etc? Been looking forward to this since MrCloista mentioned it in my stream about a month ago, amazing work!
Delicious  [开发者] 5 月 9 日 下午 12:28 
The documentation is lower on my priority list right now while I work through some bugs, but each of the ini files has a bunch of comments in them. They might be enough to get you started until I get around to something more user friendly.
引用自 Delicious
The documentation is lower on my priority list right now while I work through some bugs, but each of the ini files has a bunch of comments in them. They might be enough to get you started until I get around to something more user friendly.

No worries, thank you for replying :) once I get this weeks stream done I'm going to take the week to get it installed and see what I can do with it.
Spartan 5 月 14 日 下午 1:14 
Is there a way to increase the time a message is shown besides a unit? It seems very short now and easy to miss, but having every message as comms in the top right seems too much
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50