Cannot retrieve PLAYER SCORE over BCP interface to external RPI DMD #131
Unanswered
TheSilverSquadron
asked this question in
Q&A
Replies: 1 comment
-
To subscribe to player variable events, send the command Other "category" values you may be interested in are |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our goal is to build a PC running MPF with an external DMD connected to a RPI.
In order to show the players SCORES, we need to retrieve this information from the BCP interface events content.
I use the following simple python code to 'monitor' the PCB events on localhost port 5050 for now,
I use the 'DEMO-MAN' example game and start the game (mpf -X) . Then run python script below where
i start the game using switch 's_start' and add points with 's_left_slingshot'.
The issue is that I ONLY see the 'trigger' event every second, but not any 'score' event.
Any help would be very much appreciated...
Kind regards,
Floor Keukens
import socket
import time
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind(("localhost" , 5050 ))
s.listen()
conn, addr = s.accept()
with conn:
data = conn.recv(1024)
print(data)
conn.sendall(b'hello?version=1.1\n')
time.sleep(1)
conn.sendall(b'reset_complete\n')
Beta Was this translation helpful? Give feedback.
All reactions