mpf icon indicating copy to clipboard operation
mpf copied to clipboard

Update VPE dependencies and rebuild interface

Open arthurkehrwald opened this issue 11 months ago • 3 comments

I installed the latest versions of grpcio, grpciotools and protobuf, regenerated the platform interface scripts using mpf/platforms/visual_pinball_engine/generate.py and tested it with VPE.

Fixes #1864

arthurkehrwald avatar Jan 20 '25 21:01 arthurkehrwald

I've added a new RPC to the service definition. It is a simple ping function that I will use in the VPE integration to check if MPF is ready. Previously, VPE simply waited for 1,5 seconds and assumed it was ready, but this can fail on slow computers and wastes time on fast ones. GRPC provides ways to wait for the connection to be ready that would be preferrable, but they are not supported on grpc-dotnet with .netstandard2.1.

arthurkehrwald avatar Jan 25 '25 11:01 arthurkehrwald

I've added the MPF version to the ping response so VPE can accommodate different versions of MPF in the future.

arthurkehrwald avatar Jan 25 '25 18:01 arthurkehrwald