HOME WORLD FORUMS WIKI VIDEOS
9560 members and stacking!
     Welcome guest, please login or sign up

 
Reply to this topicStart new topic
> Game Over Detections: a Tool for Tetris Streamers
caffeine
post Aug 15 2016, 03:40 AM
Post #1


Tetris Grand Master
Group Icon
Posts: 1,752
Joined: 27-June 09



While streaming Tetris Friends, between games the "wingraphix" will show up where the playfield once was. This creates a jarring, unpleasant effect for stream viewers.

IPB Image


This tool automatically detects when a game has ended and triggers an overlay to cover up the wingraphix with a blank playfield. To do this, it watches a pixel on the playfield in order to detect if a game is being played. If it is not, it sends a signal to OBS Studio to make the blank playfield overlay visible. When the next match starts, it hides this overlay. This tool has only been tested on Windows 10 and with OBS 0.15.4 32 bit version.

To set this up, first create a couple of image overlays to cover the playfields with dummy blank playfields. I have included an image I use. For best results, create your own by taking a screenshot of what it looks like on your OBS (while the player's field is blank).

IPB Image


Next, you will need to bind hotkeys to these dummy playfields in order to hide and unhide them. We will bind one key to hide both of them and one other key to unhide both of them. The Game Over Detection script will use this hotkey to automatically perform these functions. I chose to set these keys to F23 and F24 since these are almost never used by the general populace. This way, the hotkey will not accidentally type stuff, trigger browser features, etc. Since most keyboards do not have an F23 or F24 key, I have included a small program that allows you to send these keys repeatedly. Open "Set up OBS hotkeys," click the button you need to send, then click on the key binding field in OBS. Once it reads the F23 or F24 key, click stop. Repeat this for the other key bindings.

IPB Image


Once everything is set up, it's time to open the Game Over Detection program. When you do, it will prompt you to click on which pixel to watch. I've found what works is the middle of the white bar between the player's rank and his playfield.

IPB Image


After that, it will prompt you to click on OBS. After that, the program will run based on those parameters. In order for the program to read the pixel, Tetris Friends must be on top and must not be transparent!
In order to close out of the program, find the AHK icon on the bottom right of the taskbar, right click it, and then click "Exit."

Anyway, I hope you find this useful, and please let me know if you need some help setting things up.

Download:
Attached File  Game_Over_Detection.zip ( 1005.42k ) Number of downloads: 58
User is offlinePM
Go to the top of the page
+Quote Post
Riisssaaa
post Aug 23 2016, 11:49 AM
Post #2


Tetris Novice
Group Icon
Posts: 53
Joined: 19-October 13



YOU ARE A GENIUS!
//vote sticky.
User is offlinePM
Go to the top of the page
+Quote Post
Wojtek
post Aug 24 2016, 09:24 PM
Post #3


Tetris Grand Master
Group Icon
Posts: 1,038
Joined: 28-June 09



Good posting. smile.gif


--------------------
Recommended games:
NullpoMino
Tetris Online Poland
User is offlinePM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

©2009-2014 Hard Drop Community & Forum
harddrop.com is not sponsored or endorsed by The Tetris Company or its subsidiaries.