Search found 21 matches

by MicMac44
Fri Oct 25, 2019 6:40 pm
Forum: Software Development Kit (SDK) Questions
Topic: FCS Targeting and DIS entities
Replies: 1
Views: 774

FCS Targeting and DIS entities

Using the in-game "Weapons Gauge" window, I am able to target DIS entities. With that, it also looks like the sim is grabbing relevant spatial information about that DIS entity (LLA to calculate distance and altitude, etc...). When I try to use the SDK to access FCS information, it seems like DIS en...
by MicMac44
Fri Oct 25, 2019 6:30 pm
Forum: Software Development Kit (SDK) Questions
Topic: I cant get the IDISManagerV450.
Replies: 6
Views: 2915

Re: I cant get the IDISManagerV450.

Clifton,

Thanks for the response! I rolled it back to IDISManagerV440 and it's working smoothly now.
by MicMac44
Thu Oct 24, 2019 5:25 pm
Forum: Software Development Kit (SDK) Questions
Topic: I cant get the IDISManagerV450.
Replies: 6
Views: 2915

Re: I cant get the IDISManagerV450.

Code: Select all

PdkServices::Init(pPdk); CComPtr<IDISManagerV450> spDISManager; HRESULT hr; hr = PdkServices::GetPdk()->QueryService(SID_DISManager, IID_IDISManagerV450, (void**)& spDISManager);
Is this how you should be grabbing it? I'm still getting failures on the QueryService call.
by MicMac44
Mon Oct 21, 2019 2:51 pm
Forum: Software Development Kit (SDK) Questions
Topic: I cant get the IDISManagerV450.
Replies: 6
Views: 2915

Re: I cant get the IDISManagerV450.

Is there a quick example of setting up the OnReceive() and OnSend() callbacks in the IPduCallbackV440 class?
by MicMac44
Thu Aug 15, 2019 3:52 pm
Forum: Software Development Kit (SDK) Questions
Topic: Draw Distance in Virtual Cockpit
Replies: 0
Views: 1193

Draw Distance in Virtual Cockpit

Is there a minimum distance away from the user that is needed for DrawLine(), DrawSphere(), etc... to be seen? I am trying to draw inside the cockpit to grab the pilots attention during various events and I can't see any of my draws inside the cockpit.

Thanks!
by MicMac44
Wed Apr 17, 2019 5:51 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

Okay I figured it out. Didn't copy all my code so the error wasn't easily available. I was using the wrong SIMCONNECT_CLIENT_DATA_DEFINITION_ID in my SimConnect_RequestClientData call. The corrected code if anyone cares: DWORD ClientIDStruct = 9999; enum DATA_DEFINE_ID { LASER_FIRING_DATA_ID2, }; en...
by MicMac44
Tue Apr 16, 2019 6:46 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

I've figured out the sizing and it seems to be working (returning a size of 24 for my 3 doubles, thank you JB3DG and Clifton). My issue is pulling the information out in the MyDispatchProc . I'm not getting newStruct->Lon or newStruct->Alt to return the numbers I set for them before the SimConnect_S...
by MicMac44
Tue Apr 16, 2019 2:23 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

How does the SetClientData change when the data is a struct (composed of doubles) instead of a double? I'm not getting my callback to fire when I change a piece of my struct and then SetClientData. I looked at the TaggedData.cpp but I don't think a struct will act in the same way as the enums do aft...
by MicMac44
Mon Apr 15, 2019 9:39 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

Thank you! That worked!

I did have to change it just a little to:
case REQUEST_DATA:
printf("\nData request returned: %f\n", *(double*)&pObjData->dwData);
break;
by MicMac44
Mon Apr 15, 2019 7:28 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

Clifton, Thank you for the tip! I will be moving to more complicated data types but I wanted to start with something simpler. I guess I got lucky on that! Here's the callback code that waits for changes in the block data: case SIMCONNECT_RECV_ID_CLIENT_DATA: { SIMCONNECT_RECV_CLIENT_DATA *pObjData =...
by MicMac44
Mon Apr 15, 2019 4:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

Okay so I'm almost there! I have the SimConnect instance up and running. Now I'm trying to create a block of data on the server that my clients can write to (sorry for the wall of text): enum SIMCONNECT_CLIENT_DATA_DEFINITION_ID { LASER_FIRING_DATA_ID, }; enum DATA_REQUEST_ID { REQUEST_DATA, }; void...
by MicMac44
Thu Apr 11, 2019 2:48 pm
Forum: Prepar3D Professional Plus Client Application Questions
Topic: DE/KE weapon interaction
Replies: 4
Views: 2193

Re: DE/KE weapon interaction

There is also new DIS PDK functionality that has been recently added that allows developers to receive callbacks as PDU's are sent and received by P3D, as well as the ability to create and send their own PDU's. This gives a plugin the ability to potentially implement unsupported PDU's. Do you have ...
by MicMac44
Fri Apr 05, 2019 8:55 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK PDU Callback
Replies: 0
Views: 1074

PDK PDU Callback

Is there an example I could use to create my own callback to intercept any incoming PDUs for processing?

I've looked at the CIGI example but I'm trying to intercept "Detonate" packets so I can affect P3D SimObjects accordingly.

Any help is greatly appreciated!
by MicMac44
Wed Mar 20, 2019 3:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: can PdkServices be invoked from processes other than P3ds?
Replies: 4
Views: 4170

Re: can PdkServices be invoked from processes other than P3ds?

Do you have an example I could look at that demonstrates how to request those notifications?
by MicMac44
Tue Mar 19, 2019 7:29 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 4173

Re: On screen text display in VR

You first need to QueryService the PDK to get the ISimObjectManager. Once you have the ISimObjectManager you can call GetUserObject to get the user's IBaseObject interface. Using the IBaseObject interface you can call GetProperty to get the FCS information. I should have responded earlier! I figure...

Go to advanced search