![how to make a hud for twitch how to make a hud for twitch](https://www.streamscheme.com/wp-content/uploads/2020/01/twitch-overlays.png)
Be able to configure actions, channel points and save state between game sessions.
![how to make a hud for twitch how to make a hud for twitch](https://miro.medium.com/max/900/1*-d3MkjbERAxG9QgCZIeC5A.png)
Last but not least I had to find the in-game actions and make it work together. After several tries I finally found my happiness and I could start to code my own Twitch Auth lib. The next challenge was to find a WebSocket library that works in my particular setup. So I found a solution to make my interface directly in Unity and export my prefab as a DLL that I could embed in my mod. I first tried to code the interface directly in C# but I quickly realized that it's a huge task.
How to make a hud for twitch how to#
Then I had to figure out how to integrate a custom UI. If you watch my replay you will see that every day was a challenge.įirst I had to setup a build for Valheim modding (almost no documentation) with a language I didn't know, dealing with different versions of Unity/Mono/.Net etc. The whole project was done live on my Twitch channel with the daily support of my viewers. Unfortunately Valheim doesn't provide modding out of the box so I also had to dive into the world of BepInEx and HarmonyX.Īnother important ingredient is my community. More seriously I started to learn Unity and C# for this project. Spawn different entity (more or less aggressive, Troll, Boar, etc.) configurable in game by the broadcaster.īy turning a lot of coffee into lines of code.Start events for a predefined duration (ex.: blobs horde).Change weather for a predefined duration.Send a message to the broadcaster via Hugin (the crow in the tutorial).Print a message in the HUD (center or top left).Auto enable/disable managed reward when the game start/stop/quit.
How to make a hud for twitch install#
It was not easy at all for the end user to install and configure it.Īfter one of my viewers told me about the Twitch Channel Points Hackathon I decided to make a new version by integrating everything in the mod and offering a GUI to configure anything directly in game.įun fact, I spent more than 150 hours coding this mod and less than 80 playing the game. I made a first version without a graphical interface, with a nodejs server that handled the connection to Twitch and that communicated with the mod in Websocket. As I want to play Valheim, I started to develop a mod so that my viewers can interact with me directly in game. As usual I like to offer my community some interaction in my stream. I'm a live coder and sometimes I also like to play video games.