Search found 57 matches

by BenBaron
Tue Apr 16, 2019 2:54 pm
Forum: Software Development Kit (SDK) Questions
Topic: Debug output
Replies: 2
Views: 369

Re: Debug output

Hi Jean Luc, just chiming in to say that I am not seeing something like this. I've just upgraded from 4.3 Client and Content to 4.5 Client and Content and things are working out as before on my side with a debugger attached to my PDK dll. So maybe you can elaborate more on what you are doing and exp...
by BenBaron
Tue Apr 16, 2019 2:38 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK, IBaseObjectV430, GetWeatherInformation
Replies: 12
Views: 3461

Re: PDK, IBaseObjectV430, GetWeatherInformation

Hi guys, for experimentation I tried to create a SimObject via the SimObjectManagers' CreateObject() method WITHOUT my own ISimObject implementation as I would rather want to avoid forcing the user to write my ISimObject implementations' GUID into every aircraft oder sim.cfg they intend to use my .d...
by BenBaron
Mon Apr 15, 2019 4:19 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 4371

Re: PDK Sound Service Instance -> Play() Function

Hi guys,

it is now working on my side with 4.5. Thanks for the fix.

All the best,

Benny
by BenBaron
Mon Apr 15, 2019 4:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 3
Views: 1006

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

So, unfortunately this still produces the above mentioned error in 4.5 on my side. Not able to add a menu item to the Addon submenu.

All the best,

Benny
by BenBaron
Wed Apr 03, 2019 12:06 pm
Forum: Software Development Kit (SDK) Questions
Topic: Render-to-Texture at an ObjectWorldTransform
Replies: 1
Views: 1221

Re: Render-to-Texture at an ObjectWorldTransform

I came to the conclusion that what I am trying to achieve doesn't seem to be possible, at the moment, as the rendered texture is limited to be referencable externally only via the the panel.cfg like in the Mooney's example. Thinking further, maybe the ObjectRenderer could be expanded in the future t...
by BenBaron
Thu Feb 21, 2019 6:19 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 3
Views: 1006

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

Thanks Beau for your reply and the hint for the defines.

SCENARIO_ITEM_ID or ANALYSIS_ITEM_ID are working fine as parent MenuID. ADDON_ITEM_ID doesn't work, though. Produces a HRESULT of E_FAIL.

Greets, Benny
by BenBaron
Thu Feb 21, 2019 5:20 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 3
Views: 1006

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

Hi guys, I am adding a menu item to P3Ds menu. With SimConnect, this is automatically added to P3Ds Add-Ons menu item as a child. But now, with the PDK method, the menu item is placed directly in the main menu bar, which I don't want. So, is it somehow possible to retrieve the MenuID of an existing ...
by BenBaron
Mon Feb 11, 2019 3:02 pm
Forum: Software Development Kit (SDK) Questions
Topic: Render-to-Texture at an ObjectWorldTransform
Replies: 1
Views: 1221

Render-to-Texture at an ObjectWorldTransform

Hi guys, I would like to render something into view using the Rendering Services. I've experimented with the IObjectRendererV440 but especially the facility to render text seems to be limited, at least up to now (esp. size and font). The SDK details something on how to render directly into a texture...
by BenBaron
Fri Jan 25, 2019 5:14 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 4371

Re: PDK Sound Service Instance -> Play() Function

Thanks for the information, Clifton.

Nice to know I can stop trying to figure this one out.

All the best,

Benny
by BenBaron
Wed Jan 09, 2019 8:21 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 1480

Re: Sim Object

Glad you got it solved.

All the best,

Benny
by BenBaron
Wed Jan 09, 2019 7:35 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 1480

Re: Sim Object

Hi Seth,

I'd suggest you define

Code: Select all

CComPtr<IBaseObjectV400> ppObject = nullptr;
and then check the returned HRESULT of GetObject() for any problem as to why ppObject isn't filled:

Code: Select all

HRESULT hr = ObjectManager->GetObject(ResObjID, &ppObject);
Maybe this helps.

Greets, Benny.
by BenBaron
Tue Jan 08, 2019 8:26 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 1480

Re: Sim Object

Hi,

you could use the ISimObjectManager and call the GetObject() method on it, which takes an UINT idObject. On the returned IBaseObjectV400 **ppObject you could then call GetTitle() which gives you a LPWSTR pszCfgTitle as out argument.

Greets, Benny
by BenBaron
Tue Jan 08, 2019 6:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions
Replies: 3
Views: 1281

Re: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions

Hi guys, I did some further tests with my project regarding this issue. The interesting thing is that I can also trigger spurious exceptions within the weather.dll with the call to GetWeatherInformation() on an IBaseObjectV400 if am allowing the process to run long enough. For testing purposes and t...
by BenBaron
Sat Jan 05, 2019 11:39 am
Forum: SimConnect Interface Questions
Topic: Get Information about the aircraft's Gears
Replies: 11
Views: 3083

Re: Get Information about the aircraft's Gears

...based on heading and distance to nose gear.
Is the x,y,z-offset of the NLG directly available via SimConnect?

Greets, Benny
by BenBaron
Thu Jan 03, 2019 12:35 pm
Forum: SimConnect Interface Questions
Topic: Get Information about the aircraft's Gears
Replies: 11
Views: 3083

Re: Get Information about the aircraft's Gears

Hi, just a quick one: I don't know how to do this via SimConnect, or if this was even possible. When I needed this information, I used FSUIPC to get the path of the currently loaded aircraft.cfg. Within you have the contact_points section where you can query the x, y, z-offset of the front gear. Fro...

Go to advanced search