Jabbers_ Posted December 4, 2016 Share Posted December 4, 2016 (edited) Greetings, As promised I wanted to give everyone access to a mod I made to make my VR streaming life easier. Description Twitch2DCS was primarily created so that DCS World streamers who played in VR could interact with Twitch chat without the need to take the HMD off, or have Twitch chat hooked up to a text-to-speech engine. By allowing the chat to be visible within DCS the immersion of the game does not have to be broken, and VR streamers can still interact with the audience. Twitch2DCS is not restricted to VR users, it will work for single monitor and surround setups. Current Features Separate in-game chat window (similar to multiplayer chat) Easily installed to Saved Games directory In-game twitch chat communicate both read and write Join/Part messages Customizable hotkey Not dependent on mission start. The UI exists in every aspect of DCS (Main Menu, Config, Mission Editor, In-Mission) allowing you to always be connected to your twitch audience. Random colors assigned to each user in chat (simular to twitch) Colors are customizable in Config/Twitch2DCSConfig.lua Ability to use Multiplayer chat instead of Twitch chat. Using Multiplayer chat will only allow you to see twitch chat during multiplayer games. Viewer count based on how many users have joined or spoke in chat. Installation Upgrade Get the latest version of Twitch2DCS from here. Make sure you download the "Upgrade" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Launch DCS and enjoy communicating with Twitch from ingame. New Installation Get the latest version of Twitch2DCS from here. Make sure you download the "New Installation" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Open the file Twitch2DCSConfig.lua in the Config folder with your favorite text editor. Add your Twitch username Add your Twitch oauth key from TwitchApps.com make sure you include the "oauth:" text Example of what the config should look like (Edits are in red): config = { ["username"] = "[b][color="Red"]jabbers[/color][/b]", -- Your twitch username ["oathToken"] = "[b][color="red"]oauth:1K5JHN849HNVQA59[/color][/b]", -- Go to https://twitchapps.com/tmi/ connect your account and generate a key. Copy paste the full value including the "oauth:" example: "oauth:2mwce4mdsgasddg3ml99k3phwa9l7" ["useMutiplayerChat"] = false, -- Please be aware that twitch chat will only work in muliplayer.[/Code] Launch DCS and enjoy communicating with Twitch from ingame. [b]Ingame Images[/b] Read mode: Write mode: Ingame VR screenshot: Please report any bugs, issues or feature suggestions here https://github.com/jeffboulanger/twitch2dcs/issues This is currently in its infancy and an alpha, so it may have issues. Edited December 16, 2016 by Jabbers_ 2 2 Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Yaga Posted December 4, 2016 Share Posted December 4, 2016 This is so great. Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 6, 2016 Author Share Posted December 6, 2016 Version 0.0.2-alpha released https://github.com/jeffboulanger/twitch2dcs/releases New Features Random colors assigned to each user in chat (simular to twitch) Colors are customizable in Config/Twitch2DCSConfig.lua Ability to use Multiplayer chat instead of Twitch chat. Using Multiplayer chat will only allow you to see twitch chat during multiplayer games. Installation Upgrade Get the latest version of Twitch2DCS from here. Make sure you download the "Upgrade" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Launch DCS and enjoy communicating with Twitch from ingame. New Installation Get the latest version of Twitch2DCS from here. Make sure you download the "New Installation" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Open the file Twitch2DCSConfig.lua in the Config folder with your favorite text editor. Add your Twitch username Add your Twitch oauth key from TwitchApps.com make sure you include the "oauth:" text Launch DCS and enjoy communicating with Twitch from ingame. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
HiJack Posted December 6, 2016 Share Posted December 6, 2016 Please make one for youtube live also! Great work :) Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 6, 2016 Author Share Posted December 6, 2016 Please make one for youtube live also! Great work :) Hmm, I can possibly do that. Would have to look at their API and see how complex it is. Give me some time, this wont be a huge priority for me unfortunately but I will definately evaluate it's difficulty Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
HiJack Posted December 7, 2016 Share Posted December 7, 2016 (edited) Hmm, I can possibly do that. Would have to look at their API and see how complex it is. Give me some time, this wont be a huge priority for me unfortunately but I will definately evaluate it's difficulty youtube.liveChatMessages.delete Deletes a chat message. youtube.liveChatMessages.insert Adds a message to a live chat. youtube.liveChatMessages.list Lists live chat messages for a specific chat. https://developers.google.com/apis-explorer/#p/youtube/v3/ and: https://github.com/youtube Edited December 7, 2016 by HiJack Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 7, 2016 Author Share Posted December 7, 2016 youtube.liveChatMessages.delete Deletes a chat message. youtube.liveChatMessages.insert Adds a message to a live chat. youtube.liveChatMessages.list Lists live chat messages for a specific chat. https://developers.google.com/apis-explorer/#p/youtube/v3/ and: https://github.com/youtube Yup already created a bug with that information. Im in the process of refactoring all of this now so adding this is less trivial. Right now I just create a TCP connection to twitch's irc backend and wait for messages in realtime. Youtube on the other hand is a web api, which means i have to make requests. The downside to that is requests can take time to process I would need to make the request and receive the response within a frame call. Doing this the wrong way is going to really destroy framerate. So i need to give it some thought, or find someone whos done something simular in DCS. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
HiJack Posted December 7, 2016 Share Posted December 7, 2016 Yes of course we don't want anything that eats frames! Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 9, 2016 Author Share Posted December 9, 2016 Version 0.0.3-alpha released https://github.com/jeffboulanger/twitch2dcs/releases Features and Fixes Viewer count now shows at all times User chat color is now sequential instead of random Installation Upgrade Get the latest version of Twitch2DCS from here. Make sure you download the "Upgrade" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Launch DCS and enjoy communicating with Twitch from ingame. New Installation Get the latest version of Twitch2DCS from here. Make sure you download the "New Installation" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Open the file Twitch2DCSConfig.lua in the Config folder with your favorite text editor. Add your Twitch username Add your Twitch oauth key from TwitchApps.com make sure you include the "oauth:" text Launch DCS and enjoy communicating with Twitch from ingame. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 13, 2016 Author Share Posted December 13, 2016 Version 0.0.4-alpha released https://github.com/jeffboulanger/twitch2dcs/releases Features and Fixes Fixed a bug caused by the latest DCS update that caused major frame drops Fixed random colors again Fixed viewer count Installation Upgrade Get the latest version of Twitch2DCS from here. Make sure you download the "Upgrade" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Launch DCS and enjoy communicating with Twitch from ingame. New Installation Get the latest version of Twitch2DCS from here. Make sure you download the "New Installation" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Open the file Twitch2DCSConfig.lua in the Config folder with your favorite text editor. Add your Twitch username Add your Twitch oauth key from TwitchApps.com make sure you include the "oauth:" text Launch DCS and enjoy communicating with Twitch from ingame. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Pikey Posted December 14, 2016 Share Posted December 14, 2016 Good work. It's cascading to other uses now like SRS. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 14, 2016 Author Share Posted December 14, 2016 Thanks! Yeah as soon as I made this I realized the potential for SRS and created a issue on Ciribobs github :). I was pretty amazed that no one else had done any custom UI stuff with dcs Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
gospadin Posted December 14, 2016 Share Posted December 14, 2016 Awesome work. Does this work for arbitrary chat clients (discord, IRC, etc?), or is something intrinsic to the twitch API that allows you to do this? My liveries, mods, and missions for DCS:World M-2000C English Cockpit | Extra Beacons Mod | Nav Kneeboard | Community A-4E Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 15, 2016 Author Share Posted December 15, 2016 Awesome work. Does this work for arbitrary chat clients (discord, IRC, etc?), or is something intrinsic to the twitch API that allows you to do this? Twitch is basically a IRC backend, so it should work for anything with the same backend. I have not implemented all the commands, just JOIN/PART/PRIVMSG, so anything else would need to be coded. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 15, 2016 Author Share Posted December 15, 2016 Version 0.0.5-alpha released https://github.com/jeffboulanger/twitch2dcs/releases Features and Fixes More changes to user color Fixed viewer count, for real this time Installation Upgrade Get the latest version of Twitch2DCS from here. Make sure you download the "Upgrade" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Launch DCS and enjoy communicating with Twitch from ingame. New Installation Get the latest version of Twitch2DCS from here. Make sure you download the "New Installation" package. Extract the zip to your Saved Games DCS folder (C:\Users\ username \Saved Games\DCS) Open the file Twitch2DCSConfig.lua in the Config folder with your favorite text editor. Add your Twitch username Add your Twitch oauth key from TwitchApps.com make sure you include the "oauth:" text Launch DCS and enjoy communicating with Twitch from ingame. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
FraserNZL Posted December 15, 2016 Share Posted December 15, 2016 (edited) Hey mate im seeing the twitch chat box in game but no messages are coming through Edited December 15, 2016 by FraserNZL Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 15, 2016 Author Share Posted December 15, 2016 Hey mate im seeing the twitch chat box in game but no messages are coming through Can you send me the logs from both dcs.log and twitch2dcs.log (if it exists)? The should both be located in Saved Games\DCS\Logs. Also what version are you using? I just released a new on last night. Additionally, what client version. I believe this only currently works on the latest 1.5 client code. ED made some changes that I do not believe are backward compatible for UI stuff. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
FraserNZL Posted December 16, 2016 Share Posted December 16, 2016 (edited) Just checked the twitch2dcslog and it says [14:55:41] WARN : Unable to login, please add your twitch username and oauth key to Config/Twitch2DCSConfig.lua But I did add my stuff in the [" "] area where it says username and oauth key or did I do it in the wrong place Edited December 16, 2016 by FraserNZL Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 16, 2016 Author Share Posted December 16, 2016 Just checked the twitch2dcslog and it says [14:55:41] WARN : Unable to login, please add your twitch username and oauth key to Config/Twitch2DCSConfig.lua But I did add my stuff in the [" "] area where it says username and oauth key or did I do it in the wrong place Did you add it to Saved Games/DCS/Config/Twitch2DCSConfig.lua? It should look like this config = { ["username"] = "[b]jabbers[/b]", -- Your twitch username ["oathToken"] = "[b]oauth:12345sasdwerrr[/b]", -- Go to https://twitchapps.com/tmi/ connect your account and generate a key. Copy paste the full value including the "oauth:" example: "oauth:2mwce4mdsgasddg3ml99k3phwa9l7" ["useMutiplayerChat"] = false, -- Please be aware that twitch chat will only work in muliplayer. In the future I'm planning on making a first time setup step when you start DCS, but need to wrap my head around a few things with DCS UI first. Hopefully the above example gives you an idea of how it should look, and its just typed in incorrectly. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Dunravin Posted December 20, 2016 Share Posted December 20, 2016 Awesome, I looked at doing this a while back but it was beyond me not being able to code or work with lua, knew it was possible though, thanks so much you made my day :D The FALSE is real, but it's not THRUTH right? Intel i7 8700K OC4.4GHz | 16GB | GTX1080Ti | Logitech G940 | TrackIR5 | Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 20, 2016 Author Share Posted December 20, 2016 Awesome' date=' I looked at doing this a while back but it was beyond me not being able to code or work with lua, knew it was possible though, thanks so much you made my day :D[/quote'] Thanks! Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Dunravin Posted December 20, 2016 Share Posted December 20, 2016 Hey Jabbers Could you update your instructions to stress NO CAPS in twitch username. might save people some time and head scratching getting it to work correctly, caps in the username gives unpredictable results, works a treat all lower case. Thanks once again for an awesome mod. The FALSE is real, but it's not THRUTH right? Intel i7 8700K OC4.4GHz | 16GB | GTX1080Ti | Logitech G940 | TrackIR5 | Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 20, 2016 Author Share Posted December 20, 2016 Hey Jabbers Could you update your instructions to stress NO CAPS in twitch username. might save people some time and head scratching getting it to work correctly, caps in the username gives unpredictable results, works a treat all lower case. Thanks once again for an awesome mod. Ya found that out the other day and fixed it, just need to do a release. Thanks though. Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Jabbers_ Posted December 20, 2016 Author Share Posted December 20, 2016 (edited) Version 0.0.6-alpha released https://github.com/jeffboulanger/twitch2dcs/releases Features and Fixes Fixed a bug with username casing. Twitch2DCS will always use a lower case username to login with. Edited December 20, 2016 by Jabbers_ Twitch2DCS - Bring twitch chat into DCS. SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord twitch / youtube / facebook / twitter / discord Link to comment Share on other sites More sharing options...
Schwarzfeld Posted December 22, 2016 Share Posted December 22, 2016 Stupid question perhaps but is there a way to enable this feature for those of us streaming single player flights in DCS? Or would it make more sense to simply fly my solo stuff by hosting my .miz on a private server with no one else aboard to enable Twitch2DCS connectivity? Link to comment Share on other sites More sharing options...
Recommended Posts