"Standard" TargetingPod.dll

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

"Standard" TargetingPod.dll

Postby Irno590 » Mon Apr 29, 2019 5:36 pm

Hi , in P3Dv4 now it's possible to add a Flir Target Cam to follow, zoom and catch the target. I read your instructions and add into Helicopter AW139 by Carlos Palacio, a new 'CameraDefinition' with 'TargetingPodView' title and ScaleformOverlay for the TargetingPod.swf, in panel.cfg added a new 'windowXX' with texture00 =TargetingPodView, 0, 0. The Cam works perfectly, but the keys map works just on the F-16 or Fury 1500 because they have .dll file. I've Visual Studio 2017 but I'm not a developer and I don't know how create a TargetingPod.dll file to specifically aircraft.
It's would be possible to have a "standard" TargetingPod.dll just for use this keys?
- Camera Rotation (left/right) - Hotas Slew (left/right axis)
- Camera Rotation (up/down) - Hotas Slew (up/down axis)
- Toggle Sensor Mode - Hotas generic key (A0)
- Lock target or ground location - Hotas generic key (A1)
- Zoom in camera - Hotas generic key (A2)
- Zoom out camera - Hotas generic key (A3)

Thanks for your time!!!

User avatar
Rob McCarthy
Lockheed Martin
Posts: 2226
Joined: Wed Aug 24, 2011 1:37 pm

Re: "Standard" TargetingPod.dll

Postby Rob McCarthy » Mon Apr 29, 2019 8:10 pm

Hello,

You can assign controls to the controllable camera used by the targeting pod. Search for "Controllable Camera" in the controls UI for these assignments.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Tue Apr 30, 2019 6:42 pm

Thanks for your answer, I've try to use "Controllable Camera" in the UI, the keys assing correctly but just on F-16 or Fury1500. If you look my video, show how the TargetingPod.swf file works in other aircraft but can't move the view... sorry for my ask, I'm not a developer and I don't know how make an xml or dll, I bought the v4 Academic version, maybe I need of the Pro Plus Version? Thanks for your time!
https://youtu.be/AwTdxxFopbU

User avatar
Rob McCarthy
Lockheed Martin
Posts: 2226
Joined: Wed Aug 24, 2011 1:37 pm

Re: "Standard" TargetingPod.dll

Postby Rob McCarthy » Thu May 02, 2019 2:08 am

Hello,

Sorry, I misunderstood the problem. You will need to install the SDK and also compile the Targeting Pod sample using Visual Studio 2017. This will output a TargetingPod directory including the TargetPod.dll that you can copy in your "%USERPROFILE%\Documents\Prepar3D v4 Add-ons" directory. The dll is needed to process the key/joystick commands.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Thu May 02, 2019 4:32 am

Thanks Again for your support Rob! I've already SDK SDK 4.4.16.27106 and Visual Studio 2017, but I'm not a developer and I don't know how start... There is a Pay Service to compile and generate this .dll ?
Thanks Again for your Time!

Best Regards

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Thu May 02, 2019 5:08 am

this is my actual situation...
Image

User avatar
Rob McCarthy
Lockheed Martin
Posts: 2226
Joined: Wed Aug 24, 2011 1:37 pm

Re: "Standard" TargetingPod.dll

Postby Rob McCarthy » Thu May 02, 2019 2:55 pm

Hello,

After you build the solution you should see an Output folder in your SDK install location. There will be a TargetingPod folder in there that you can copy into your Prepar3D v4 Add-ons directory. You should then be able to control the camera.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Thu May 02, 2019 4:09 pm

Thanks Again Rob, I'm searching on many Forum, FB pages and groups a Developer for help me to build a 'solution' but no one answer me... I would pay the job!
If you can or want to help me, I write you in private.
Sorry Rob, I don't want disturb you again, I bought P3Dv4 few days ago after many many years with FSX, for me right now P3D is the Best Sim on the World, and I will not change never! This Addon Camera it's Amazing and complete my home helicopter cockpit and if I have to pay to get it, gladly!

Best Regards

Mark

User avatar
Rob McCarthy
Lockheed Martin
Posts: 2226
Joined: Wed Aug 24, 2011 1:37 pm

Re: "Standard" TargetingPod.dll

Postby Rob McCarthy » Thu May 02, 2019 5:17 pm

Hi Mark,

The SDK Samples.sln file is the "solution" file. When you open this in Visual Studio there will be a Build option in the top menu. From there you can select the "Build Solution" option and this will compile all of the sample projects included in the solution. After that you'll be able to navigate into the Output directory I mentioned previously and copy over the TargetingPod folder into your Prepar3D v4 Add-ons directory. When you start Prepar3D it will detect this add-on and prompt you to enable it. You'll then have access to the controls.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Thu May 02, 2019 9:18 pm

Excuse me so much Rob, I did not understand that I could solve the problem without editing anything, unfortunately I thought I had solved but, it gives me these errors and does not make me save the dll. I tried to update the plugs but nothing, it always gives me these errors. Damn, I was one step away from the end ...
I searched for solutions on the web but I didn't find useful explanations ...
Image

User avatar
Rob McCarthy
Lockheed Martin
Posts: 2226
Joined: Wed Aug 24, 2011 1:37 pm

Re: "Standard" TargetingPod.dll

Postby Rob McCarthy » Fri May 03, 2019 1:06 am

Hello,

If you made modifications to source files you can repair the SDK. Also you can change the configuration to release instead of debug if you are still having issues. There is a drop down at the top of the Visual Studio UI with this option.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Fri May 03, 2019 7:53 am

Hi Rob! I've reinstall SDK and tryed to use 'Release' ( like in the video )but I've not resolve the problem... I read the Win page Error C1083 but I don't know if and how I can change the value into initpdk.h . I tried to change <atlcomcli.h> in "atlcomcli.h" with TextEdit, but the file don't start in Visual Studio... https://youtu.be/kBrxs1NqbNo

Irno590
Posts: 8
Joined: Mon Apr 29, 2019 5:00 pm

Re: "Standard" TargetingPod.dll

Postby Irno590 » Mon May 06, 2019 4:32 pm

Hi Rob, If you have any others advise, thanks so much!

Best Reguards

Mark


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 3 guests