Jump to content
Dothack Network

Twitch Plays .hack//frägment


Erroneous
 Share

Recommended Posts

  • Administrators

What is Twitch Plays .hack//fragment? In 2014 a social experiment called Twitch Plays Pokemon was where a 24/7 live stream of Pokemon Red was streaming where the viewers in the Twitch chat could control and move the main character around by saying certain words in chat. A program interrupter listened for those specific words/commands and proceeded to play the game on the emulator by moving or performing the actions of the whitelisted words.

What I have setup, is PCSX2 on an old Windows 10 machine, running the English patched .hack//fragment connected to the new online lobby server service currently available with a Python/Javascript interrupter running coincide with PCSX2 which listens to the channel dothacknetwork's twitch chat for certain complete standalone words/letters and moves the character accordingly to the mapped out key controls. Up being up, down being down, T being triangle, X being X, L1 being L1, etc... There is however a delay from the input sent to Twitch by us the viewers, and the interrupter/PCSX2 performing the action and the livestream software OBS sending to the stream the final action.

If you do not want to setup yourself your own PCSX2 and translated/patched .hack//fragment, this is an option to get your feet wet and try out the game from any device that can connect to Twitch.tv i.e. desktop computer, tablet, smart phone, etc... Control whitelist is on screen on the bottom right, chat commands will appear in stream in the upper left.

OBS-Main-Overlay.png

Link to comment
Share on other sites

  • Administrators

The technology behind Twitch Plays .hack//fragment

It’s Windows 10 with Visual Studio Tools and Python 3.9 installed with PyWin32. The programming managing things is Node.js, running npm for TwitchPlaysX. But prior to that Node.js needs to download tmi module and the TwitchPlaysX needs a tmi.js file at its root, and the tmi module should be a folder there now. In PCSX2 main directory, go in /inis/, open the file PCSX2_ui.ini and edit line "TitleTemplate" to equal something simpler. If enabled, PCSX2 needs to have CLR-USB disabled, and the controller needs to be mapped to the keyboard keys you want. I have config.js, key.up, and keyHandler.js all setup to the keys I want it listening to. Config has the channel it listens to set and the window it’s inputting into. Once all that’s set, launch Node.js terminal, navigate to your TwitchPlaysX folder, then I run npm start

Python 3.9 https://www.python.org/downloads/

PyWin32 https://github.com/mhammond/pywin32/releases

Node.js https://nodejs.org/en/download/current

TwitchPlaysX https://github.com/hzoo/TwitchPlaysX

tmi.js https://github.com/tmijs/tmi.js

Virtual Keycodes for keyHandler.js https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

Overlay for PS2 controller

ps2controller.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...