v5 SDK TextMenu events not working

737SimGuy
Posts: 50
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

v5 SDK TextMenu events not working

Postby 737SimGuy » Mon Apr 20, 2020 10:25 pm

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

Postby TazX » Wed Apr 22, 2020 11:54 am

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

Postby zillmer » Wed Apr 22, 2020 5:48 pm

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: 2878
Joined: Wed Aug 24, 2011 1:37 pm

Re: v5 SDK TextMenu events not working

Postby Rob McCarthy » Wed Apr 22, 2020 6:53 pm

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

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Pete Dowson
Posts: 621
Joined: Sat Dec 18, 2010 3:45 pm

Re: v5 SDK TextMenu events not working

Postby Pete Dowson » Sat Apr 25, 2020 10:40 am

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: 2004 build 19041.264
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 30Hz onto 200 FOV curved screen
P3D4 set with 2 windows using ViewGroups

737SimGuy
Posts: 50
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

Re: v5 SDK TextMenu events not working

Postby 737SimGuy » Sun Apr 26, 2020 5:06 pm

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: 50
Joined: Tue Apr 01, 2014 9:40 pm
Location: Northern California

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

Postby 737SimGuy » Tue Apr 28, 2020 8:13 pm

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


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 24 guests