Jump to content

Am I dreaming? Named trigger flags in ME? Finally?


Recommended Posts

  • 1 month later...
Posted
On 3/17/2022 at 4:03 PM, dark_wood said:

Exactly, this is the breaking news for mission builders 🙂

 

I'm now completing my first mission using exclusively named flags, I've enjoyed the change a lot, as the names help a lot to self-document the trigger logic.

However, just wanted to pass along the caveat that the flag name is case-sensitive, which can lead to some typos being difficult to catch.

For example, the flag "ADF tuned 2" is not the same as "ADF Tuned 2".

  • Like 1
  • Thanks 1

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

Man, I need to read these changelogs more thoroughly. Always getting caught by surprise... Recently I almost fell of the chair to see that helicopters received a command that can be used for them to follow the carriers, now this one...

Posted (edited)
9 hours ago, Rudel_chw said:

For example, the flag "ADF tuned 2" is not the same as "ADF Tuned 2".

I never understood the wisdom behind case-sensitive naming - it adds one more source of difficult to find errors. Mind you, this predates flag use in DCS, and was already an issue with programming languages a long time ago. Well-designed languages like Pascal, Modula-2, Oberon, Ada etc. are all case INsentitive, and a variable named 'foo' maps to the same variable named 'Foo' or 'FOO'. C and their ilk never did (being lazily cobbled together), allowing bad practices like using slightly differently cased but otherwise identically spelled strings for different purposes: "myClass myclass" legally defines the variable named "myclass" (all lower case) as a member of class "myClass" (spelled with capital C, everything else the same). Lua, unfortunately, hails from C, so this is also part of Luas language definition. ED could have internally made it simpler by converting all flags to lower or upper case, but I'm afraid that ship has sailed. A pity, as that would have been an easy QoL improvement during the design stage.

 

Edited by cfrag
  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...