Search found 80 matches

by BenBaron
Thu Aug 20, 2020 7:10 pm
Forum: SimConnect Interface Questions
Topic: Simconnect version 4.5 does not work with 4.1
Replies: 2
Views: 20253

Re: Simconnect version 4.5 does not work with 4.1

Hi, nope...you cannot run a newer SimConnect client with an older SimConnect Server (which is basically the P3D version). As you might make requests that are simply not supported by the server and would lead to unexpected behaviour. The other way around works, though: comile against an older client ...
by BenBaron
Thu Aug 06, 2020 1:17 pm
Forum: Software Development Kit (SDK) Questions
Topic: Fetching a string property
Replies: 0
Views: 7466

Fetching a string property

Hi guys, I am a little unsure regarding this function declaration: virtual HRESULT GetProperty( __in LPCWSTR pszPropertyName, __out LPWSTR pszProperty, __in UINT uLength, __in int index = 0 )const If I want to fetch a string property into a wchar_t buffer[], is this method expecting me to put in the...
by BenBaron
Fri Jun 05, 2020 6:21 pm
Forum: Software Development Kit (SDK) Questions
Topic: DirectX 12 RTT Render not called.
Replies: 2
Views: 12393

Re: DirectX 12 RTT Render not called.

Hi,

for me, this works. Render() is being called. So I guess there must be something with your code somewhere.

Greets, Ben
by BenBaron
Sun May 10, 2020 11:14 am
Forum: Software Development Kit (SDK) Questions
Topic: Simconnect disconnects immediately after connection is established
Replies: 2
Views: 13351

Re: Simconnect disconnects immediately after connection is established

To chime in: do you do some simconnect exception handling somewhere in your code? Maybe an exception with further information is thrown before you receive SIMCONNECT_RECV_ID_QUIT. But of course you have to handle it.

Greets,
Ben
by BenBaron
Sat May 02, 2020 2:49 pm
Forum: Software Development Kit (SDK) Questions
Topic: D3D11 RTT in v5
Replies: 0
Views: 10243

D3D11 RTT in v5

Hi guys, I am trying to port some D3D11 render-to-texture functionality over from v4 to v5 before completely migrating the code to D3D12, which will take quite some time. According to this SDK article it should be possible: https://prepar3d.com/SDKv5/sdk/pdk_api/samples/texture_and_effect_render_plu...
by BenBaron
Fri Nov 29, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystem Service issue
Replies: 4
Views: 33094

Re: IWeatherSystem Service issue

Hi Ahmed,

I don't know if that helps, but why do you query for the legacy IID_IWeatherSystem and not directly for the current version IID_IWeatherSystemV430 of the interface?

Greets, Benny
by BenBaron
Fri Nov 22, 2019 6:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: Different Eyepoint with PDK
Replies: 1
Views: 17373

Re: Different Eyepoint with PDK

Hi, are you sure you are actually working on the current ICameraSystem? I am constanly checking GetCurrentWindow() and GetCameraSystem() and see whether they are returning different objects than the ones I am doing calculations on. Once I figured this out, everything has been working out quite well....
by BenBaron
Mon Nov 04, 2019 3:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 28424

Re: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID

Hi guys,

just wanted to chime in that also with Prepar3D v4 SDK 4.5.13.32097 this doesn't seem to be fixed.

Greets,

Benny
by BenBaron
Mon Oct 14, 2019 9:31 pm
Forum: Software Development Kit (SDK) Questions
Topic: How to get all waypoints of flight plan
Replies: 1
Views: 12902

Re: How to get all waypoints of flight plan

Hi John, you can use the variables in the following link in conjunction with the ExecuteCalculatorCode() function of the PDKs IPanelSystemV400 interface to query the GPS system for a lot of flightplan data: https://www.prepar3d.com/SDKv4/sdk/panels_and_user_interface/gauges/references/gps_variables....
by BenBaron
Fri Oct 11, 2019 10:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30514

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system And it actually changes ...
by BenBaron
Fri Oct 11, 2019 5:55 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30514

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system I would think that you sh...
by BenBaron
Sun Sep 29, 2019 3:44 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30514

Re: Flightplan data with the PDK

Thanks Jonathan for the hint. I looked at the link you provided and compared it to the PDK documentation of the Panel System Service...while I could recreate the TacPack approach with it, I don't see the advantage coding-wise over just using ExecuteCalculatorCode() from within my module. They are wr...
by BenBaron
Sat Sep 28, 2019 7:42 am
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30514

Re: Flightplan data with the PDK

Just as a follow-up: I know I can use ExecuteCalculatorCode() from the IPanelSystemV400 to retrieve flighplan data from the gps system, but this seems a little cumbersome to me...but if need be, I will go down this route, for now. Just looking for some confirmation that there actually is no other wa...
by BenBaron
Fri Sep 27, 2019 8:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30514

Flightplan data with the PDK

Hi guys,

does anyone know a viable way to retrieve loaded flightplan data (esp. departure and destination ICAOs) via the PDK as well as getting notified if a new flightplan is loaded? Is this even possible, yet?

Thanks for your help.

Benny
by BenBaron
Sat Sep 21, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: Question on PDKs RenderingPlugin
Replies: 1
Views: 11875

Re: Question on PDKs RenderingPlugin

Hi guys,

can be disregarded. In the meantime I've found out that the renderer is also running on the main thread. So no problem.

All the best, Benny