Search found 833 matches

by Clifton Crane
Mon Apr 04, 2022 2:16 pm
Forum: Prepar3D Professional Plus Client Application Questions
Topic: [RESOLVED] how do i get weapon simvars?
Replies: 4
Views: 7855

Re: how do i get weapon simvars?

Hi Vamshi, You should be able to get Weapon Simulation variables using the same method you used to retrieve the generic simulation variables. Note that most of these variables must be accessed through object that owns the weapons system (for example, the user object), however some of these variables...
by Clifton Crane
Fri Apr 01, 2022 2:01 pm
Forum: Prepar3D Professional Plus Client Application Questions
Topic: PDK DIS Manager
Replies: 1
Views: 4655

Re: PDK DIS Manager

Hi mindfog, It looks like you have a version mismatch between your SDK and the Prepar3D installation. Your SDK is newer than the runtime, and therefore the interface you are querying for is unavailable. You can either update your Prepar3D installation to match the SDK, or query for the latest versio...
by Clifton Crane
Tue Mar 29, 2022 1:57 pm
Forum: SimConnect Interface Questions
Topic: Command repetition
Replies: 6
Views: 21057

Re: Command repetition

Hi Smoku, It looks like the SIMCONNECT_EVENT_FLAG_SLOW_REPEAT_TIMER and SIMCONNECT_EVENT_FLAG_FLAGS_REPEAT_TIMER are intended to be used for keyboard based events, where the repeated input is coming from the keyboard. These flags can be used to control the speed at which specific events are processe...
by Clifton Crane
Mon Mar 28, 2022 5:01 pm
Forum: SimConnect Interface Questions
Topic: Command repetition
Replies: 6
Views: 21057

Re: Command repetition

Hi Smoku,

Are you transmitting RUDDER_TRIM_LEFT more than once while still using the SIMCONNECT_EVENT_FLAG_SLOW_REPEAT_TIMER? Each time the SIMCONNECT_EVENT_FLAG_SLOW_REPEAT_TIMER flag is received the repeat timer will be reset.

Regards,
Clifton
by Clifton Crane
Mon Mar 28, 2022 2:33 pm
Forum: SimConnect Interface Questions
Topic: Command repetition
Replies: 6
Views: 21057

Re: Command repetition

Hi Smoku,

Are there any other events being transmitted by SimConnect while the rudder switch is held down? Do you see the same behavior if you only transmit the client event for the rudder switch, and no other events?

Regards,
Clifton
by Clifton Crane
Mon Mar 21, 2022 6:39 pm
Forum: SimConnect Interface Questions
Topic: Devices recognition
Replies: 3
Views: 8651

Re: Devices recognition

Hi Smoku, Do you receive any SimConnect exceptions? You can enable the SimConnect console to verify. To enable the SimConnect console, you will need to add a SimConnect.ini file your %%%USERNAME%%%\Documents\Prepar3D v5 Files directory. A default version of this file can be found in the SDK\config\S...
by Clifton Crane
Fri Mar 18, 2022 12:57 pm
Forum: Hardware Specific Questions
Topic: [RESOLVED] Gladiator+THQ (throttle quadrant): axes settings keep getting lost in P3dV4.5
Replies: 4
Views: 4548

Re: Gladiator+THQ (throttle quadrant): axes settings keep getting lost in P3dV4.5

Hi DL,

Could you try switching the control API from Raw Input to Direct Input? You can find this setting in Options > Controls > Other. Note that changing control API's will require you to rebind your buttons and axes.

Regards,
Clifton
by Clifton Crane
Mon Mar 14, 2022 12:34 pm
Forum: SimConnect Interface Questions
Topic: How to request structure data?
Replies: 3
Views: 7072

Re: How to request structure data?

Hi nhl1996, The call to RequestDataOnSimObject does not immediately return the requested data. A return value of 0 indicates the function call succeeded, however the data is returned via SimConnect.RecvSimobjectDataBytypeEventHandler. The SDK Samples includes the "Managed Data Request" sam...
by Clifton Crane
Fri Mar 04, 2022 1:34 pm
Forum: SimConnect Interface Questions
Topic: SIMCONNECT_RECV_EVENT_OBJECT_DAMAGED_BY_WEAPON How to get more information
Replies: 1
Views: 4826

Re: SIMCONNECT_RECV_EVENT_OBJECT_DAMAGED_BY_WEAPON How to get more information

Hi nhl1996,

One option would be to gather the title using RequestDataOnSimObject beforehand. However, I would expect the object to still exist after impact. The WeaponSim should only effect the object's health points. It does not in itself remove the object.

Regards,
Clifton
by Clifton Crane
Fri Mar 04, 2022 1:33 pm
Forum: SimConnect Interface Questions
Topic: Understanding of structure SIMCONNECT_RECV_EVENT_WEAPON
Replies: 2
Views: 5610

Re: Understanding of structure SIMCONNECT_RECV_EVENT_WEAPON

Hi nhl1996, The SIMCONNECT_RECV_EVENT_WEAPON event is issued both when a WeaponSim is fired and when it has impacted a target or the terrain. When the weapon is fired, you will receive dwResult as 0. When the weapon has impacted a target or terrain, dwResult will contain 1 if the weapon was armed wh...
by Clifton Crane
Fri Feb 11, 2022 2:30 pm
Forum: Simulation Object Development Questions
Topic: guns configuration
Replies: 6
Views: 9698

Re: guns configuration

Hi Luiscarlossb28, The model source is the original 3dsMax .max file. We ship a couple examples in the SDK, however all of the SimObject models are compiled to MDL file using XtoMDL. Attachpoints are created in the 3dsMax file, which are then compiled into MDL. You cannot add attachpoints to an MDL ...
by Clifton Crane
Thu Feb 10, 2022 1:04 pm
Forum: Simulation Object Development Questions
Topic: guns configuration
Replies: 6
Views: 9698

Re: guns configuration

Hi Luiscarlossb28, Which version of Prepar3D are you using (Academic, Professional, or Professional Plus)? Weapons are only available in the Professional Plus version. It looks like your gun is on station 3, which is an attach point based station. This would require the model to have the attach poin...
by Clifton Crane
Wed Feb 09, 2022 5:37 pm
Forum: SimConnect Interface Questions
Topic: About multiplayer
Replies: 2
Views: 6086

Re: About multiplayer

Hi rvDevman, Yes, I believe a SimObject created by a client, either via SimConnect or PDK, should be broadcast across the network so other clients can see it. I don't believe the waypoints will be serialized with the aircraft, however the client controlling the SimObject position should be enough to...
by Clifton Crane
Wed Feb 09, 2022 5:30 pm
Forum: SimConnect Interface Questions
Topic: Problems encountered with AI waypoints.
Replies: 3
Views: 6501

Re: Problems encountered with AI waypoints.

Hi rvDevman, Is your aircraft starting on the ground or in the air? Also, which aircraft are you attempting to assign waypoints? You will probably want to place your waypoints keeping the speed of the aircraft in mind. For example, a smaller aircraft will likely follow closer waypoints better, where...
by Clifton Crane
Tue Feb 08, 2022 5:00 pm
Forum: Simulation Object Development Questions
Topic: guns configuration
Replies: 6
Views: 9698

Re: guns configuration

Hi Luiscarlossb28, It looks like you are missing the gun loadout in the attachments.xml file. Also, your aircraft.cfg gun_loadout section will also need to match the title of the gun loadout in attachments.xml file. Our default F-16C ships with a gun loadout. You can locate it in your SimObjects\Air...