MSFS SU9 with SDK 0.18 I am working on the electrical system of the Dash 7,
but when building the aircraft I get a CTD. I have checked for missing numbers
or typos and seems like I fixed them, but I still cannot build the project
with the full electrical system. So far I have been able to get up to
circuit.43 out of a total of 85. #44 seems to cause a crash
(type:CIRCUIT_ADF_DME:2) so I changed it to type XML and it still CTDs. To cut
a long story short, from that point on some systems work, others cause a CTD
when added. The systems.cfg file builds normally, but unless I remove the
offending lines I cannot get the project to open without CTD. Any idea what
could be causing the crash? Here are circuit.43 and 44, which is the first
break point (43 is good, 44 isn’t).
circuit.43 = Type:CIRCUIT_NAV:2#Connections:bus.16#Power:4,5,24.0#Name:NAV2;Copilot NAV
circuit.44 = Type:CIRCUIT_ADF_DME:2#Connections:bus.16#Power:4,5,24.0#Name:ADF_DME2 ;ADF DME 2
Hello @SWS-AlexVletsas Nothing obvious here. We would need more info and
context to identify the problem. If you can provide us with a full dump file
or your project files, we will have a look. [http://devsupport.flightsimulator.com/t/how-
to-report-a-bug-or-crash/77](https://devsupport.flightsimulator.com/t/how-to-
report-a-bug-or-crash/77) Regards, Sylvain
I will try to get you a crash dump today. Meanwhile, one of my guys got an
error message while building. Not sure if it is related to the bug or not.
I haven’t been able to generate a crash dump yet as I can’t find the relevant
registry folder on my system. Until I figure it out, here is my latest
attempt: I have been able to get almost the entire electrical system into the
aircraft:
- 29/32 buses
- 84/84 circuits
- 8/8 alternators
- 2/2 batteries
- 1/1 external power source
- 4/4 curves
As soon as I introduce bus.30 the build process will CTD. I did pass the
systems.cfg to another developer who was able build it just fine into his
aircraft. My suspicion now goes towards the code that calls buses 30-32 and
connects/disconnects them to other buses. Any ideas would be appreciated.
I don’t have any CTD patching your cfgs on one of our existing aircraft and
building the project. Either it’s specific to your package and I need it (with
temporary files) to repro or it’s context specific and in that case I need a
dump. Regards, Sylvain
Hello @SWS-AlexVletsas There is a typo in your bus.4 definition. ‘.’ is
missing for bus.6 connection. bus.4 = Connections:bus.1,bus.5, bus6
,bus.11#Name:L_MAIN_DC_BUS This leads to memory corruption on our side as we
don’t handle this typo correctly. This has been fixed on our side a few months
ago so this should no longer cause a CTD if you build your package on SU10
flighting build. If you have the opportunity, please confirm this. Regards,
Sylvain
Thanks Sylvain, that typo was it. I will try with SU10 beta and let you know
how it behaves.