Jabbers_ Posted November 29, 2016 Posted November 29, 2016 So the scenario is this. I stream and play in VR, and because of this I cannot see my twitch chat while playing. I've tried what others do and setup Text-To-Speech, but honestly this is really bad when you have Simple Radio + Team Speak + Twitch Chat all going at the same time. It turns into a real mess and I end up having to take the headset off too look at chat anyway. This lead me to the idea of making a mod that will allow me to pump twitch chat to my DCS chat window. Now, I have pretty much everything working. Export creates a udp client that listens to localhost and receives information, deserializes and currently just writes it to a file. I've written a separate application that connects to twitch chat and sends the data via udp to DCS. Currently this is all working, and working well. My only huge hurdle is getting the information to the UI some how. My goal is to open source this and provide it to everyone not just myself. It's really aggravating as a streamer to not be able to interact with my viewers. And as a viewer is just a frustrating watching this happen to someone im watching. So if anyone has any ideas im all ears, or if you have a solution already please let me know! 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
Weltensegler Posted November 30, 2016 Posted November 30, 2016 This sounds like a tool many VR users would want or reuse similar. Since ED is maintaining VR support for this sim I hope they can give you some answers. Fly safe! 4790K@4,6Ghz | EVGA Z97 Classified | 32GB @ 2400Mhz | Titan X hydro copper| SSD 850 PRO ____________________________________ Moments in DCS: --> https://www.youtube.com/user/weltensegLA --> WELD's cockpit: --> http://forums.eagle.ru/showthread.php?t=92274
Jabbers_ Posted November 30, 2016 Author Posted November 30, 2016 OK, maybe this needs another avenue of attack. So currently, I use the standard Export.lua hook LuaExportAfterNextFrame to poll the udp port for data sent from the twitch client. Maybe I'm going about this all wrong since it seems impossible to access a way to show this information in chat. After some though it would seem that I could just include this same code in mul_chat.lua to achieve the same result, and have access to multiplayer chat. However, I'm stuck trying to find a way to poll the udp connection since LuaExportAfterNextFrame doesnt exist. I looked into timer.scheduleFunction but this doesnt seem to exist, or I am doing something wrong. So the question now is, how do I schedule a callback to poll the udp connection? Obviously a while loop would be ineffective as it would be blocking. 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
Jabbers_ Posted December 1, 2016 Author Posted December 1, 2016 I got this working, will post my solution and release the mod soon. Need to finish testing, and make sure its solid first, but so far so good. 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
Jabbers_ Posted December 1, 2016 Author Posted December 1, 2016 Here is an image of this working if anyone wants to see 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
Looney Posted December 2, 2016 Posted December 2, 2016 Nice! Looking forward to the mod! [sIGPIC][/sIGPIC] Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo
Nero.ger Posted December 2, 2016 Posted December 2, 2016 very nice, also interested in the final product. But more because i want to see how you code it :) 'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.
Jabbers_ Posted December 2, 2016 Author Posted December 2, 2016 very nice, also interested in the final product. But more because i want to see how you code it :) I started pushing some stuff to github, mostly to back it up, its no where near a "working release" I'll get to that tonight or this weekend. Have to go through and make it configurable on the 3rd party app code because its all hard coded to my stuff (oath, username, etc). You can see how I did the dcs side of things though https://github.com/jeffboulanger/twitch2dcs 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
Recommended Posts