Mods / Twitch Integration

Tags: #Cheat
Author: kuky7cz
Side: Both
Created: Apr 4th 2024 at 3:34 AM
Last modified: Apr 15th 2024 at 3:02 AM
Downloads: 502
Follow Unfollow 18

Latest release (for Vintage Story 1.19.7, outdated):
twitch_integration_0.3.0.zip  1-click install


This mod interacts with Twitch chat.
Any valid command in the chat will trigger the voting.
Voting can be started once after a certain time and for a certain time according to the values in the settings.
Each user in the chat has only one immutable vote during active voting.
After the time has passed, the event with the most unique votes will start in the game.

 

Added new ingame chat events.
/hp+   Increases health by +1 hp.
/hp-    Reduces health by -1 hp.


Config:
\AppData\Roaming\VintagestoryData\ModConfig\twitch_integration\VSMTI1.json

Events:
You can add or remove event in config.
Empty "" deactivate commands and events.
Format: "<Twitch chat>": "<ingame chat>",

Examples in default.

  "events": {
    "!hp+": "/hp+",
    "!hp-": "/hp-",
    "!kill": "/kill",
    "!teleport": "/tp 0 200 0",
    "!morning": "/time set morning",
    "!night": "/time set night",
    "!december": "/time setmonth dec",
    "!stoprain": "/weather stoprain",
    "!storm": "/weather setw storm",
    "!lightbreeze": "/weather setw lightbreeze",
    "!chicken": "/entity spawn chicken-hen 3",
    "!wolf": "/entity spawn wolf-male 3"
  }

Config connected to Twitch:
1) Register the application in: https://dev.twitch.tv/console
2) Get your passworld here: https://twitchapps.com/tmi/
3) Setup variables: username, chanel, password is "oauth:123...".

 

I am working on updates.
TODO:
Easier connection to Twitch.
People from chat in game as animals.



Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.3.0 twitch_integration 203 Apr 15th 2024 at 3:02 AM twitch_integration_0.3.0.zip 1-click install

Split Twitch client events and Ingame server events.
Added more events to config.

0.2.0 twitch_integration 144 Apr 6th 2024 at 11:47 PM twitch_integration_0.2.0.zip 1-click install

Transfer config to ModConfig
FIX: Twitch nickname

0.1.1 twitch_integration 155 Apr 4th 2024 at 4:04 AM twitch_integration_0.1.1.zip 1-click install

First test. Change only lives.


8 Comments (oldest first | newest first)

💬 GoblinKing, Mar 22nd at 10:50 PM

awesome, really looking up for this mod to update. im not a streamer but I mod for one and he seemed very interested on this stuff on other games often.

💬 kuky7cz , Mar 19th at 8:12 PM

Hi.

the_smitchell 
Ano, teď mám čas a vracím se k vývoji.

BlackAxolotl
I know. It was my first attempt with Twitch.
The whole connection is missing a feature that makes it easier to connect to Twitch, which I haven't activated yet.
But this solution works with a manual connection.
The option to enter your name and channel name can be the same or different.
The chat is read from the channel name, so you can also use someone else's chat.
The rest is due to permissions.
But I'm currently working on a new version.

💬 the_smitchell, Feb 20th at 2:06 PM

Is this project still active/being developed?

💬 BlackAxolotl, Jun 10th 2024 at 11:18 PM

Loving the idea for the mod but the setup to get the mod connected is rather convoluted. Such as what does the username variable correspond to, and is the channel variable the name of your channel? Why do you have to register an application with the Twitch dev stuff? If possible, it would be better to simplify the method of connecting the channel to the mod or have a video guide for what it takes to connect the mod to a channel. Other than that it's looking good

💬 kuky7cz , Apr 10th 2024 at 4:29 PM

Shinji170981
Thanks for the suggestion.

AzuliBluespots
I plan to add an option to specify the number of hp

I am currently planning to do a major refactoring of the code and separate Twitch events and Ingame events. It will be possible to create many custom events that will trigger a server side command.

💬 Shinji170981, Apr 7th 2024 at 1:34 PM

You could add things like decreasing satiety or temporal stability. Also maybe effects like bleeding/poison or temporary immortality.

💬 AzuliBluespots, Apr 5th 2024 at 9:29 PM

Oh man, this would be a pain XD

💬 Ribsin, Apr 4th 2024 at 3:55 PM

I like the idea of this want events are you working toward allowing chat to trigger?

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом