Jump to content
Dothack Network

Twitch Plays Fragment


Erroneous
 Share

Recommended Posts

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.

Check it out at https://www.twitch.tv/dothacknetwork

Link to comment
Share on other sites

  • 1 year later...

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


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


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


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


https://github.com/hzoo/TwitchPlaysX


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


https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...