Search found 33 matches

by dsdawson
Wed Feb 20, 2019 2:56 am
Forum: Simulation Object Development Questions
Topic: Multiple Gauge Declarations in a Single DLL
Replies: 2
Views: 539

Re: Multiple Gauge Declarations in a Single DLL

Have a look at the C gauge sample that is included with the SDK. There are six different gauge elements included in one dll - including the FlightMap gauge, which utilizes GDI.

Doug
by dsdawson
Thu Oct 11, 2018 1:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Can't get MapClientEventToSimEvent to work for failures
Replies: 2
Views: 2213

Re: Can't get MapClientEventToSimEvent to work for failures

Clearly, the event doesn't get called when you select a failure in the menuing system.
You can certainly follow the failure variables to see if the engines are failed or not:
GENERAL ENG FAILED:index

Doug
by dsdawson
Sun Sep 30, 2018 3:34 pm
Forum: Simulation Object Development Questions
Topic: Aircraft DLL loading problem
Replies: 11
Views: 4112

Re: Aircraft DLL loading problem

The debug versions of the runtime libary files are not included with the redistributable package.
If your dll is still compiled as a debug build, it will only load on a system that has the appropriate version of Visual Studio installed.
by dsdawson
Wed Dec 06, 2017 4:18 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] SimConnect network configuration problem
Replies: 11
Views: 3394

Re: SimConnect network configuration problem

Regarding xml file encoding, see two detailed posts by Virtuali of FSDT on page 7 of this thread:
https://www.avsim.com/forums/topic/5113 ... v4/?page=7

Doug
by dsdawson
Tue Dec 05, 2017 1:08 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] SimConnect network configuration problem
Replies: 11
Views: 3394

Re: SimConnect network configuration problem

I have to confess I don't know anything about C#, so I don't think I'll be much help with this.
Does the SimConnect log on the server indicate that your app is connecting?
by dsdawson
Mon Dec 04, 2017 1:18 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] SimConnect network configuration problem
Replies: 11
Views: 3394

Re: SimConnect network configuration problem

I am fairly certain (perhaps Elaine can confirm) that SimConnect.xml needs to be saved in Unicode format, not plain ASCII. That may be your issue.
by dsdawson
Tue Nov 28, 2017 1:07 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] SimConnect network configuration problem
Replies: 11
Views: 3394

Re: SimConnect network configuration problem

The computer on which P3D is running (PC1 in your case) is the server.
by dsdawson
Wed Oct 11, 2017 5:41 pm
Forum: Scenario Development (SimDirector) Questions
Topic: Can I read how far have I moved horizontally?
Replies: 2
Views: 2201

Re: Can I read how far have I moved horizontally?

Track the status of the SIM_ON_GROUND variable. When it becomes false, read Lat and Lon.
If you're running in-process, you can use the GPS interface to calculate the distance between here and there.
If not, you'll have to implement a great circle calculation to get your distance.
by dsdawson
Fri Sep 22, 2017 3:00 pm
Forum: Simulation Object Development Questions
Topic: Hard skin for ships
Replies: 2
Views: 1650

Re: Hard skin for ships

You might try arming your torpedoes with proximity fuses. If they get to within X meters of a ship, they will explode.
You would need to make the calculations somewhere (gauge, module, external app) but it should be completely do-able.
Doug
by dsdawson
Fri Jul 28, 2017 12:31 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 3120

Re: Losing control of Lvars on Aircraft reload

I'm wondering if you might be better off using events to do this.
I really don't know very much about modelling, but I think you can trap events with MDL xml code. If so, you could use SimConnect to send custom events to move stuff around on the carrier.
by dsdawson
Thu Jul 27, 2017 3:58 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 3120

Re: Losing control of Lvars on Aircraft reload

I suspect that continually calling register_named_variable() is causing at least some of the heartache. I would go with something like: void On6hzUpdate() { for (int i = 0; i < 110; i++) { int k = check_named_variable(strings[i].c_str()); if (k == 0 ) k = register_named_variable(strings[i].c_str());...
by dsdawson
Tue Jul 18, 2017 12:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: IF statements not working properly in v4
Replies: 4
Views: 1977

Re: IF statements not working properly in v4

I think you're missing an operator in here:
(E:ZULU TIME, seconds) (&gt;L:APTIMER, seconds) (L:ELEV_TRIM, number) -100 max 100 min (&gt;L:YOKE_Y, number)

Doug
by dsdawson
Sun Jul 16, 2017 2:56 pm
Forum: Software Development Kit (SDK) Questions
Topic: How to start off developing for Simconnect !
Replies: 4
Views: 1588

Re: How to start off developing for Simconnect !

It's all laid out in the SDK. Download it and start reading.
by dsdawson
Mon Jun 26, 2017 4:17 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] May be a workaround for those having problems with SP1 and RTM Simconnect in P3DV4.
Replies: 13
Views: 8030

Re: May be a workaround for those having problems with SP1 and RTM Simconnect in P3DV4.

I am sure this is the only solution, short of compiling against a more recent version of simconnect.lib I recall the Avsim conference in Washington, DC, in 2006 or 2007. The folks from Microsoft were in attendence and Mike Z was quite adamant that we should not be programming gauges and modules runn...

Go to advanced search