VisualPinball / VisualPinball.Engine.Mpf

Mission Pinball Framework support for VPE
MIT License
0 stars 1 forks source link

Failure to get machine description #18

Closed arthurkehrwald closed 2 months ago

arthurkehrwald commented 2 months ago

When I click the 'Get Machine Description' button in the inspector of the MPF game logic engine, MPF is started and there are no errors displayed in the shell window that pops up, but the machine description is not transferred. Instead, the following error message appears in the Unity console:

VisualPinball: VisualPinball.Engine.Mpf.Unity.MpfGamelogicEngine|Unable to get machine description. Check maching config. Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1720629373.387000000","description":"Failed to pick subchannel","file":"..\..\..\src\core\ext\filters\client_channel\client_channel.cc","file_line":3218,"referenced_errors":[{"created":"@1720629373.387000000","description":"failed to connect to all addresses","file":"..\..\..\src\core\lib\transport\error_utils.cc","file_line":165,"grpc_status":14}]}")
UnityEngine.Logger:LogError (string,object)
VisualPinball.Unity.UnityTarget:Write (NLog.LogEventInfo) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity/Common/UnityTarget.cs:40)
NLog.Targets.Target:Write (NLog.Common.AsyncLogEventInfo)
NLog.Targets.Target:WriteAsyncThreadSafe (NLog.Common.AsyncLogEventInfo)
NLog.Targets.Target:WriteAsyncLogEvent (NLog.Common.AsyncLogEventInfo)
NLog.LoggerImpl:WriteToTargetWithFilterChain (NLog.Targets.Target,NLog.Filters.FilterResult,NLog.LogEventInfo,NLog.Common.AsyncContinuation)
NLog.LoggerImpl:Write (System.Type,NLog.Internal.TargetWithFilterChain,NLog.LogEventInfo,NLog.LogFactory)
NLog.Logger:WriteToTargets (NLog.LogEventInfo,NLog.Internal.TargetWithFilterChain)
NLog.Logger:WriteToTargets (NLog.LogLevel,System.IFormatProvider,string)
NLog.Logger:Error (string)
VisualPinball.Engine.Mpf.Unity.MpfGamelogicEngine:GetMachineDescription () (at C:/repos/futurebox/reference_and_learning/VisualPinball.Engine.Mpf/VisualPinball.Engine.Mpf.Unity/Runtime/MpfGamelogicEngine.cs:143)
VisualPinball.Engine.Mpf.Unity.Editor.MpfGamelogicEngineInspector:OnInspectorGUI () (at C:/repos/futurebox/reference_and_learning/VisualPinball.Engine.Mpf/VisualPinball.Engine.Mpf.Unity/Editor/MpfGamelogicEngineInspector.cs:65)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

I am using:

arthurkehrwald commented 2 months ago

The MPF machine config must contain the following section so that MPF knows that VPE wants to communicate:

hardware:
    platform: visual_pinball_engine

This should be mentioned in the documentation.