Jump to content

Is there a way to access the chat window (or functions of) from Export.lua


Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

Nice! Looking forward to the mod!

[sIGPIC][/sIGPIC]

 

Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo

Posted

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.

Posted
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...