PKMN.NET Forums

Pokémon Games => Games General => Topic started by: Petzbreeder on April 25, 2017, 12:02

Title: How do the "type in chat to control the game" livestreams work?
Post by: Petzbreeder on April 25, 2017, 12:02
I occasionally watch Pokemon livestreams on Youtube and Twitch, where the viewers can affect the game by typing the controls in the chat window.

How does that work?
Title: Re: How do the "type in chat to control the game" livestreams work?
Post by: Del on April 25, 2017, 12:50
So typically the person running the stream will have created a bot that runs locally, connected to the game/emulator being run that reads chat and looks for specific inputs words or letter (for example "a" or "start" or "up"), and every time it reads "a", it will send the input that activates the "A" button on the game/emulator being used.

The same applies for other inputs. "start" = start button, "up" = up arrow, etc.
Title: Re: How do the "type in chat to control the game" livestreams work?
Post by: Petzbreeder on April 25, 2017, 15:07
That is pretty cool.

I wonder if it is possible to make a program/bot that plays and completes the Pokemon games by itself!
Now, that would be pretty cool!
Title: Re: How do the "type in chat to control the game" livestreams work?
Post by: Del on April 27, 2017, 18:44
I think theoretically it's possible, but I'm not sure.

There's a pretty interesting video about machine learning teaching a program to beat a level of Super Mario (https://www.youtube.com/watch?v=qv6UVOQ0F44), but there are much simpler win and lose conditions in a game like Mario than in Pokemon.

It could probably be done in a few years though.