Quoted from AlanJ:1. Look at the credit match display - if the right hand side digit is non blank or non-zero - then we are in a game. Otherwise we are in attract mode. (Ignoring self test mode - for time being).
2. On startup, wait for the first non blank, non-zero score to be displayed - that is the HSTD - remember it, and it it starts being displayed on P1-P4 score displays, then we are in attract mode. Need to keep track of any game score that exceeds to HSTD and then use that in future.
Normally I would say (1) would work great, but some games now are using this display to display spinner counters or other information. Also, that display isn't consistent across all games, sometimes it's shifted IIRC.
(2) would work great for non-stern mpu200 games that display the hstd at the start of the last ball.
Can you tap into other signals like the ball in play lamp or strictly the display signals? You could have a sense wire to the ball in play lamp, when it's lit, you're in a game (unless you're in lamp test)
Or the game over lamp of course.