A utility for use with Killer Queen Arcade. Get live statistics, power streaming overlays, and more.
First, connect your computer to the same network as the killer queen cabinet. Then:
./kq-live ws://kq.local:12749
Note: Resolving the kq.local
host name requires that your system is running
multicast DNS, and that the mDNS packets are not blocked by the network
configuration. mDNS is typically available by default on macOS and linux
systems, while Windows systems may or may not have it. It is always possible to
use the cab's IP address instead of the host name.
-
Install go from https://golang.org/dl/
-
Download the source code and dependencies.
go get github.com/ughoavgfhw/kq-live
-
Generate the embedded assets.
go generate github.com/ughoavgfhw/kq-live/assets
This must be done whenever any non-go files in the assets directory change, as the binary embeds the file as of the previous generate.
Note: If you are actively modifying assets, the binary can be built with
-tags=dev
to read assets from disk instead of embedding them. However, the dev build assumes that the assets directory can be found at ./assets. -
Build the tool. There are two options here.
- Build and install into the go binary directory, which can be added to your
shell path.
go install github.com/ughoavgfhw/kq-live
- Just build the tool, leaving the binary inside the current directory.
go build github.com/ughoavgfhw/kq-live
- Build and install into the go binary directory, which can be added to your
shell path.
-
Reads events from the killer queen cabinet. All messages are output into a file named
out.log
.Note: If you don't specify the cabinet URL on the command line, the tool will use the default
ws://kq.local:12749
. -
Tracks the state of the current game. Much of the state is output into a file named
out.csv
, with a row for every state change. -
Runs models to determine which team is winning. The output of one of these models is printed to the command line. Additionally, the models can be displayed on a meter or line graph via a web browser.
-
Provides various web pages useful for streaming overlays.
- Scoreboard and a control interface.
- Basic statistics for blue and gold teams. There is also a larger statistics chart.
- Indicator of famine state.
- Player photos for the current teams.