Search found 96 matches

by adiemus
Mon Oct 14, 2019 7:00 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30515

Re: Flightplan data with the PDK

Thanks for confirming. Good to know.
by adiemus
Fri Oct 11, 2019 8:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30515

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 adiemus
Tue Oct 01, 2019 10:15 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 30515

Re: Flightplan data with the PDK

As the author of both the TacPack and linked doc, at least at the time I wrote it (back before Prepar3D even existed) it wasn't possible to access C: vars inside the version of execute_calculator_code() exposed by the Panels interface. Now, I've not ever tried ExecuteCalculatorCode() from IPanelSyst...
by adiemus
Wed Jun 19, 2019 4:38 pm
Forum: Software Development Kit (SDK) Questions
Topic: Targeting Pod Camera Pitch adjustment
Replies: 2
Views: 12200

Re: Targeting Pod Camera Pitch adjustment

You're going to need to provide far more detail on what you've actually tried, likely with example code and explicit test results explaining how those results differ from what you'd expect.[1] Otherwise it just seems like you're trying to get someone else to not just build it for you, but also expla...
by adiemus
Fri May 25, 2018 3:20 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] How to read the frame rate using simconnect?
Replies: 2
Views: 11886

Re: How to read the frame rate using simconnect?

Works fine here in P3D v4, going all the way back to FSX. That structure is returned by the "Frame" event you can subscribe to via SimConnect_SubscribeToSystemEvent(). This will call your SimConnect callback with RECV_ID set to SIMCONNECT_RECV_ID_EVENT_FRAME, which in turn carries a popula...
by adiemus
Tue Jan 23, 2018 4:59 am
Forum: Software Development Kit (SDK) Questions
Topic: Programmatically controlling ShowWeather state for a camera?
Replies: 0
Views: 6840

Programmatically controlling ShowWeather state for a camera?

Is there a way to programmatically control the state of the "ShowWeather" boolean for a camera? I can't find anything via the PDK or SimConnect. (I'm looking to simulate an imaging pod with multiple sensors, some of which can see through atmospheric moisture and some which can't) In theory...
by adiemus
Thu Jan 11, 2018 6:16 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK v4.1 header issue (IWindowV410, ICameraSystemV410, etc)
Replies: 3
Views: 10803

Re: PDK v4.1 header issue (IWindowV410, ICameraSystemV410, etc)

Having read more about COM versioning, I think now that the headers are fine, it was me that was mistaken. For anyone confused as I was how you'd use IBaseObjectV410, for example, when ISimObjectManagerV410::GetUserObject() takes a **IBaseObjectV400 argument, you have to get the IBaseObjectV400 firs...
by adiemus
Wed Jan 10, 2018 11:23 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK v4.1 header issue (IWindowV410, ICameraSystemV410, etc)
Replies: 3
Views: 10803

[RESOLVED] PDK v4.1 header issue (IWindowV410, ICameraSystemV410, etc)

The v4.1 PDK added some new functionality I wanted to try, so I switched our existing code to use the new headers. This worked fine (while my code was still referencing the V400 stuff) but as soon as I started trying to use IWindowV410 or ICameraSystemV410 it all refused to compile, seemingly becaus...
by adiemus
Wed Jan 10, 2018 9:12 pm
Forum: Miscellaneous
Topic: conflict fsx@war vrs, LM
Replies: 5
Views: 11455

Re: conflict fsx@war vrs, LM

Actually, in fairness, we (VRS) are trying to help FSX@War with P3D v4 support but the FSX@War project is running at reduced strength right now which slows the process down and imposes some limits on what can be done.

In any case, not sure why people are bringing it up on LM's forums.
by adiemus
Tue Jan 09, 2018 12:19 am
Forum: SimConnect Interface Questions
Topic: SimConnect ClientData Behavior Bug on P3D v4.1 (and back to v2.5)
Replies: 2
Views: 17204

Re: SimConnect ClientData Behavior Bug on P3D v4.1 (and back to v2.5)

And actually, it's worse than I realized. Moving the call to SimConnect_RequestDataOnSimObject() before SimConnect_RequestClientData() does fix the SIMCONNECT_RECV_ID_CLIENT_DATA callbacks, but breaks the SIMCONNECT_RECV_ID_SIMOBJECT_DATA callbacks expected from RequestDataOnSimObject(). So either y...
by adiemus
Mon Jan 08, 2018 11:39 pm
Forum: SimConnect Interface Questions
Topic: SimConnect ClientData Behavior Bug on P3D v4.1 (and back to v2.5)
Replies: 2
Views: 17204

SimConnect ClientData Behavior Bug on P3D v4.1 (and back to v2.5)

Seems I keep running into SimConnect bugs of late. See: http://www.prepar3d.com/forum/viewtopic.php?f=6311&t=127917 This time, the issue is with ClientData. Long story short, on P3D v4.1 (and v3.4hf3, and v2.5) if you call SimConnect_RequestDataOnSimObject() after SimConnect_RequestClientData(),...
by adiemus
Wed Jan 03, 2018 8:18 pm
Forum: Software Development Kit (SDK) Questions
Topic: Invoking P3D v4.1 with an invalid command-line argument breaks SimConnect
Replies: 1
Views: 9535

Re: Invoking P3D v4.1 with an invalid command-line argument breaks SimConnect

Given the timing of my initial report, perhaps this got missed due to the holidays, but it seems critical enough to warrant bumping it.
by adiemus
Mon Dec 18, 2017 7:16 pm
Forum: Software Development Kit (SDK) Questions
Topic: Invoking P3D v4.1 with an invalid command-line argument breaks SimConnect
Replies: 1
Views: 9535

Invoking P3D v4.1 with an invalid command-line argument breaks SimConnect

This seems to be related to the issue I posted here: http://www.prepar3d.com/forum/viewtopic.php?f=6311&t=127900 If I invoke P3D v4.1 with a bad command-line argument, ala: c:\path\to\Prepar3D v4>Prepar3D.exe -badarg then SimConnect behaves differently than if no bad command-line argument was pa...
by adiemus
Sun Dec 17, 2017 3:22 am
Forum: Software Development Kit (SDK) Questions
Topic: SimConnect_RequestJoystickDeviceInfo() causes issues with P3D v4.1 command-line processing (yes, really)
Replies: 0
Views: 7464

SimConnect_RequestJoystickDeviceInfo() causes issues with P3D v4.1 command-line processing (yes, really)

This will be a weird bug to describe, but know that it was FAR weirder to track down. :-) If we invoke Prepar3D v4.1 thusly: C:\path\to\Prepar3D v4>Prepar3D.exe -badarg we'd expect it to load, then display a dialog that says: The requested scenario, from command line arguments, is either corrupt or ...