Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

multiplayer radio communiation

Featured Replies

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 Sub


Does 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.