Kekelekou
Resource contributor
- Messages
- 226
- Country

Hello there!
Following the release of my Damage Mod for the Flight1 BN-2 Islander, I am working on the interface with FSCaptain. I want to fail "my" systems if the corresponding failure code is triggered by FSC, and the other way around too.
There are a lot of failure codes (circa 75) and systems (25) to work with, so I have splitted the gauge into several macros, basically as follows :
@CodeFromSystem : input : Damage mod system name, output : Corresponding FSC failure code
@SystemFromCode : input : FSC failure code, output : Corresponding Damage mod system name
@FailThisCode : input : FSC failure code, output : sets corresponding DM system wear index to max
@FailThisSystem : input DM system name : output : sets corresponding FSC failure code
I would then nest the macros as @FailThisCode( @CodeFromSystem(...)) and @FailThisSystem(@SystemFromCode(...)) to get the expected result in a much shorter and clerarer code.
BUT
FSX crashes everytime I test the gauge with nested macros, or (to be accurate) when one of the arguments is a macro callback. Each macro works fine when tested with an hard-coded argument.
Is this a well-known limitation?
Is there a work-around?
Any help appreciated!
Following the release of my Damage Mod for the Flight1 BN-2 Islander, I am working on the interface with FSCaptain. I want to fail "my" systems if the corresponding failure code is triggered by FSC, and the other way around too.
There are a lot of failure codes (circa 75) and systems (25) to work with, so I have splitted the gauge into several macros, basically as follows :
@CodeFromSystem : input : Damage mod system name, output : Corresponding FSC failure code
@SystemFromCode : input : FSC failure code, output : Corresponding Damage mod system name
@FailThisCode : input : FSC failure code, output : sets corresponding DM system wear index to max
@FailThisSystem : input DM system name : output : sets corresponding FSC failure code
I would then nest the macros as @FailThisCode( @CodeFromSystem(...)) and @FailThisSystem(@SystemFromCode(...)) to get the expected result in a much shorter and clerarer code.
BUT
FSX crashes everytime I test the gauge with nested macros, or (to be accurate) when one of the arguments is a macro callback. Each macro works fine when tested with an hard-coded argument.
Is this a well-known limitation?
Is there a work-around?
Any help appreciated!





