Avionics spawn twice, sometimes causing autopilot problems

Version: 1.6.34.0

**Frequency:**Consistently

Severity: Blocker

Marketplace package name: Not applicable

Context: Developer & Community

Similar MSFS 2020 issue: insert url here if applicable

Bug description:

Some testers report that in our 2024 version of the Kodiak the Autopilot sometimes won’t follow commands and the OBS switch will not toggle correctly.

After opening the Coherent Debugger we noticed that the avionics show up twice (sometimes thrice) in the Coherent Debugger. This would cause the events to cancel out. There is only one panel.cfg file referencing the avionics, which is located in the Function_Interior folder and one panel.xml in Common\panel.

Attachments:

[VCockpit01]
size_mm=1024,768
pixel_size=1024,768
texture=$PFD,$PFD2
background_color=42,42,40
htmlgauge00=NavSystems/WTG1000v2/PFD/WTG1000_PFD.html?Index=1, 0,0,1024,768

[VCockpit02]
size_mm=1024,768
pixel_size=1024,768
texture=$MFD
background_color=42,42,40
htmlgauge00=NavSystems/WTG1000v2/MFD/WTG1000_MFD.html, 0,0,1024,768

[VCockpit03]
size_mm=512,384
pixel_size=512,384
texture=$AttitudeDisplay
background_color=42,42,40
htmlgauge00=NavSystems/SWS_ESI500/SWS_ESI500.html, 0,0,512,384

[VCockpit04]
size_mm=512,367
pixel_size=512,367
texture=$KodiakAC
background_color=42,42,40
htmlgauge00=Generic/SWS_Kodiak100AC/SWS_Kodiak100AC.html, 0,0,512,367

Private attachments: Sent a PM to @PrivateContent

2 Likes

An update on this topic -no solution yet-, I noticed that the following things happen (Coherent debugger):

  1. When zooming to the airport from the world map, the panels get initialised but the Avionics names show up as generic panels (not AS1000 etc)
  2. When the plane loads before the “ready to fly” screen, the avionics load a second time and I get the duplicate AS1000 displays.

Edit:
I can reproduce the problem even with a single htmlgauge loaded. AS1000PFD gives me 4 instances when loaded alone. Same for our Kodiak100AC instrument.

Problem found. An attachment.cfg file was copied to the wrong folder by accident, loading function_interior twice.

The issue can be considered closed.

One suggestion is, if you can detect that a .xml is loaded many times through inheritance, put out a warning in the console.

3 Likes

Hello @SWS-AlexVletsas

The one in Part_Interior_Cargo_Loads I assume?
Didn’t you see it in the Modular SimObject Graph view? I’d say this is the most visual way to detect such issues, not sure how this can be improved.

That’s something you might want to do on purpose though, duplicate instruments with identical logic for example.

I think the Modular SimObject Graph view is the best tool to trace such problems, but we’re open to suggestions to further improve the visibility in such case.

Regards,
Sylvain

You are correct in both, for now being more careful is the way to go. I hadn’t even opened the Graph View…

1 Like