设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 89|回复: 0

[转载发布] Twitch Chat Integration (Twitch Plays MV) v.0.9.0

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式


    Ever wanted to let your toxic twitch chat control your RPG Maker game?
    If you answered yes, you're insane, but that's ok.

    Introducing JIF_TwitchChatIntegration. This plugin cofunctions with a Twitch bot that reads inputs from Twitch chat, allowing your chat to control your game.



    This is mostly a proof of concept but is technically fully functional (just a pain to get working). It is very messy and could definitely be done better, but honestly, I don't see a lot of people utilizing this to justify me completely cleaning it up.

    This plugin is free for commercial use (why you would do that I don't know), just credit me. If you do a stream of this DM me! I'd love to see it in use in a chat other than mine





    This plugin is not for beginners to basic js, it's installation process is kinda difficult and requires knowledge on installing nodejs and making very basic edits to a js file.

    There's a good chance this will become a lot more streamlined in the future.

    STEP ONE: INSTALLING THE PLUGIN AND BOT
    This first step is easy, just download both the EXTRACT ME.zip and the plugin file. Put the plugin in your js/plugins folder and install it via the plugin manager. Set the "enabled" plugin param to true.

    STEP TWO: INSTALLING NODE JS
    - Download node js from here.
    - Open the TwitchChatBot file in your choice of IDE (I use Visual Studio Code). Install tmi JS through the terminal (just type this in your terminal):
                    Code:       
    1. npm install tmi.js
    复制代码


    STEP THREE: CREATE JIF_twitch.txt
    Navigate to your MV projects data folder and create a new txt file titled "JIF_twitch.txt" (case sensitive). The only contents of the file should be an open and closed bracket:
                    Code:       
    1. []
    复制代码


    Now you want to copy the exact location of the txt file. You can do this by:
    - Right-clicking the txt file
    - Hitting properties
    - Copying everything next to the "Location:" section




    STEP FOUR: CHANGE THE FILE LOCATION IN THE "index.js" FILE IN THE TWITCH CHAT BOT AND PLUGIN
    On lines 70, 79, 85, and 83 of the bots index.js, you will notice some file paths, replace these with the one you copied from earlier, and double up the "/".
    For example:
    C:\Users\Jacob\Documents\ProgrammingFiles\MV Plugins\twitchchat\data\JIF_twitch.txt
    becomes
    C:\\Users\\Jacob\\Documents\\ProgrammingFiles\\MV Plugins\\twitchchat\\data\\JIF_twitch.txt

    Now on lines 40 and 68, do the exact same thing.

    STEP FIVE: HOOKUP THE BOT TO YOUR TWITCH ACCOUNT
    This is by far the most annoying part.
    - Create a new twitch account that will act as your bot.
    - Put the account username in the quotation marks on line 16 of the index.js file
    - Get your OAuth string.
    Here is an easy way to get it.

    - Now put the twitch account's username whose chat you want to control your game in the single quotes on lines 19 and 22.

    STEP SIX: RUN THE BOT AND ENJOY
    At long last, the installation is done. Open your terminal and type
                    Code:       
    1. node index.js
    复制代码


    Now, you can properly control the game using the following controls:
    !mv up
    !mv down
    !mv right
    !mv left
    !mv z
    !mv x
    !mv start

    If you have any problems when installing this, please let me know. It was only tested on my machine so I very well could have left something important out.




    BOTH ARE REQUIRED FOR THIS PLUGIN TO FUNCTION


    [Click Here]


    本贴来自国际rpgmaker官方论坛作者:Jiffy处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/twitch-chat-integration-twitch-plays-mv-v-0-9-0.117201/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 02:33 , Processed in 0.117187 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表