v5 SDK TextMenu events not working

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
737SimGuy
Posts: 71
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

v5 SDK TextMenu events not working

Post by 737SimGuy »

Hello,

I have an app that has been using the Textmenu events as shown in the SDK textmenu.cpp example. These worked perfectly in P3Dv4 but do not appear to do anything in P3Dv5. Is this deliberate or an oversight? I see the same example is still in the v5 SDK. I am very much hoping these return again soon :-)

enum EVENT_ID {
EVENT1,
EVENT2,
EVENT_MENU_1,
EVENT_TEXT_1,
EVENT_MESSAGE_1,
EVENT_TEXT_WINDOW_CREATED,
};

Any info as what to expect is appreciated. Thank you,
James
James

Prepar3D 5.1hf1
Win 10 20H2
32gb ram
Titan X gpu 12gb ram
i9-9900K cpu
Asus Maximus XII mb
November nVidia drivers
TazX
Posts: 7
Joined: Mon Nov 16, 2015 10:42 am

Re: v5 SDK TextMenu events not working

Post by TazX »

Same issue here using FSUIPC6 and 'event.textmenu'. A very simple script worked in v4.5 but now no textmenu events are triggered.

Something's changed in v5.

Any thoughts?
zillmer
Posts: 14
Joined: Wed Jan 03, 2018 4:57 pm

Re: v5 SDK TextMenu events not working

Post by zillmer »

I've posted on a related issue. Looks like the entire Text Menu and related functionality in SimConnect (which is used by FSUIPC) is broken in V5. It's still listed in the SDK so I presume this is an error/bug, rather than by design.
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: v5 SDK TextMenu events not working

Post by Rob McCarthy »

Thanks for the reports. We'll investigate this and get back to you.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
Pete Dowson
Posts: 646
Joined: Sat Dec 18, 2010 3:45 pm

Re: v5 SDK TextMenu events not working

Post by Pete Dowson »

Okay. We've located the problem in FSUIPC. It's our code, not P3Dv5. It was all to do with Version Checking. The Text events weren't supported till P3Dv4.2 (for creation) and 4.3 (for destruction), and we had one tiny snippet of code using just the subversion, so P3Dv5 looked like 4.0!! Duh!

This is one of the troubles with trying to support multiple versions when facilities being used change. I wish sometimes we could force all users to keep their sim software up to date!

Pete Dowson
My System

Win10: 22H2 build 19045.2728
Processor: I9 9900KS at 5.5GHz
Mobo: Maximus XI Extreme Z390
Memory: 32Gb at 3900 MHz.
GPU: RTX 24Gb Titan
Displays: 2 x 2160p projectors at 25Hz onto 200 FOV curved screen
P3D5 set with 2 windows using ViewGroups
737SimGuy
Posts: 71
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

Re: v5 SDK TextMenu events not working

Post by 737SimGuy »

Pete Dowson wrote: Sat Apr 25, 2020 10:40 am Okay. We've located the problem in FSUIPC. It's our code, not P3Dv5.
Pete Dowson
Wow, ok. I will keep an eye out for new FSUIPC.
Thanks Pete!

James
James

Prepar3D 5.1hf1
Win 10 20H2
32gb ram
Titan X gpu 12gb ram
i9-9900K cpu
Asus Maximus XII mb
November nVidia drivers
737SimGuy
Posts: 71
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

Re: v5 SDK TextMenu events not working (Resolved!)

Post by 737SimGuy »

Confirmed! This is working again with FSUIPC 6.0.5

Thanks guys!
James
James

Prepar3D 5.1hf1
Win 10 20H2
32gb ram
Titan X gpu 12gb ram
i9-9900K cpu
Asus Maximus XII mb
November nVidia drivers
Post Reply