Version: 1.7.7.0
Frequency: Consistently
Severity: Blocker
Marketplace package name: if applicable
Context: FBW A380X (still MSFS2020 package for now, the 2024 package which is in development seems to work fine)
Bug description:
Hi, it seems like with the latest update to the SU5 Beta, events triggered with K:2:ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE do not seem to persist anymore. We experience this in our plane as we are unable to turn on the circuits for different components. In the eletrical debug window it can be seen that the circuit becomes powered for a fraction of a second, but then immediately switches back off.
The cause seems to be that <Update Once="True"> in one our our templates is used to initialize the state of some circuits. However, the update now seems to run once a second, therefore overriding any input given. This can also be seen with the guard switches (see video at the end), which use “ASOBO_GT_Switch_Dummy” that also contains the <Update Once="True"> for the initial state.
The behvaiour debug shows a rate of 1Hz though
This is the code we use for initialization which now runs once per second, effectively disabling the circuits as soon as they turn on
<Update Once="True">
(L:A32NX_START_STATE, Bool) 2 == #CIRCUIT_CONNECTED_TO_BUS# 1 == and if{
#CIRCUIT_ID# 1 (>K:2:ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE)
}
</Update>
Repro steps:
Load the plane, enable ground power and try to enable fuel pumps. The switches snap back as the circuit turns off again immediately. Can also be reproduced by sending the RPN externally.
2 1 (> K:2:ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE)
Attachments:
Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content
