July 1, 201312 yr Cheers, For my FS group I've been trying to develope an app that uses System_Text to show each player who is talking whenever someone uses the radio (over a single frequency or broadcasts (using Shft+CAPS)). I have been successfully able to identify both the single frequency (MP_VOICE_CAPTURE_START) and all frequency broadcast (MP_BROADCAST_VOICE_CAPTURE_START) events after mapping them to SimEvents (code below). The problem I'm having is that these events are only tripped when the client running the applciation is the one who uses the radio. Whenever another player on the network talks, none of the events are triggered. Private Sub initialize() .... .... fsxconnect.MapClientEventToSimEvent(EventIDs.EVENT_MPVoiceCaptureStart, "MP_VOICE_CAPTURE_START") fsxconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUP.COMMS, EventIDs.EVENT_MPVoiceCaptureStart, False) fsxconnect.MapClientEventToSimEvent(EventIDs.EVENT_MPBroadcastVoiceCaptureStart, "MP_BROADCAST_VOICE_CAPTURE_START") fsxconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUP.COMMS, EventIDs.EVENT_MPBroadcastVoiceCaptureStart, False) fsxconnect.SetNotificationGroupPriority(NOTIFICATION_GROUP.COMMS, SimConnect.SIMCONNECT_GROUP_PRIORITY_DEFAULT) AddHandler fsxconnect.OnRecvEvent, New SimConnect.RecvEventEventHandler(AddressOf RecvEvent) ..... .... End Sub Private Sub RecvEvent(ByVal sender As SimConnect, ByVal data As SIMCONNECT_RECV_EVENT) Select Case data.uEventID Case EventIDs.EVENT_MPVoiceCaptureStart fsxconnect.Text(SIMCONNECT_TEXT_TYPE.PRINT_WHITE, 3.0F, RequestID.DisplaySetData, ".. is talking") Case EventIDs.EVENT_MPBroadcastVoiceCaptureStart fsxconnect.Text(SIMCONNECT_TEXT_TYPE.PRINT_RED, 3.0F, RequestID.DisplaySetData, "..is broadcasting") End Select End SubDoes anyone have any idea how I can capture these events for network players? I have an array containing all of the aircraft dwObjectId and Callsigns in the session, so I'd also need a way to identify which aircaft (dwObjectId) is talking so I can include the callsign with the corresponding System_Text function. Any advice greatly appreciated. Ken
Create an account or sign in to comment