Jump to content

Disable checkbox for Actions, Conditions and Triggers for quick debugging/experiments


Recommended Posts

Posted (edited)

It would be cool to be able to "comment out" individual Actions, Conditions and perhaps the whole Triggers with some "Disabled" checkbox. I think "disabled" says it all, of course, the action/condition/trigger would be somehow indicated (a bit harder for triggers that can be coloured by us, but I'm sure there is a way, e.g. different background).

This can make various prototyping much faster and also works around the inherent problem that we can't copy the stuff away somewhere else like we can with real code.

Edited by virgo47
  • Like 4

✈️ L-39, F-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 🛩️ Yak-52, P-47, Spitfire, CE2 🚁 UH-1H, Mi-8, Ka-50 III, SA342 🗺️ NTTR, PG, SY, Chnl, Norm2, Kola, DE 📦 Supercarrier, NS430, WWII, CA 🕹️ VKB STECS+Gladiator/Kosmosima+TPR ▶️ DCS Unscripted YouTube 🐛 "Favourite" bugs: 1) gates not growing regress (FIXED 2025-03 👍), 2) L-39 target size cockpit animation regress (FIXED 2025-02👍), 3) Yak-52 toggles not toggling, 4) all Caucasus ATC bugs

Posted
2 hours ago, virgo47 said:

It would be cool to be able to "comment out" individual Actions, Conditions and perhaps the whole Triggers with some "Disabled" checkbox. I think "disabled" says it all, of course, the action/condition/trigger would be somehow indicated (a bit harder for triggers that can be coloured by us, but I'm sure there is a way, e.g. different background).

This can make various prototyping much faster and also works around the inherent problem that we can't copy the stuff away somewhere else like we can with real code.

 

As an idea, in the mean time, could you add a non-existent flag to the thing you want to disable in it's condition - therefore it will never be true?

But great suggestion.

  • Thanks 1
Posted
38 minutes ago, Elphaba said:

As an idea, in the mean time, could you add a non-existent flag to the thing you want to disable in it's condition - therefore it will never be true?

Depending on how many things need to be turned off it might be best to setup a "debug mode" with multiple flags. The idea is that one master flag at the top of the trigger list turns debug mode on or off so that you don't have to keep track of flag calls you've added elsewhere in the trigger list.

  • Like 1

Awaiting: DCS F-15C

Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files

 

Posted
8 hours ago, Elphaba said:

As an idea, in the mean time, could you add a non-existent flag to the thing you want to disable in it's condition - therefore it will never be true?

Thanks for the tip, this at least allows me to disable the whole trigger.

My initial idea however came from the Actions list. It's not supercomplicated to create an action, but oftentimes it's annoying, especially if it's a message, sound, script, clickable action or anything that requires more clicking and parameters. To disable such a thing now is to delete and recreate it again. I just expanded the idea to conditions and triggers for consistency, but it is most missing on Actions level, at least as I see it.

✈️ L-39, F-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 🛩️ Yak-52, P-47, Spitfire, CE2 🚁 UH-1H, Mi-8, Ka-50 III, SA342 🗺️ NTTR, PG, SY, Chnl, Norm2, Kola, DE 📦 Supercarrier, NS430, WWII, CA 🕹️ VKB STECS+Gladiator/Kosmosima+TPR ▶️ DCS Unscripted YouTube 🐛 "Favourite" bugs: 1) gates not growing regress (FIXED 2025-03 👍), 2) L-39 target size cockpit animation regress (FIXED 2025-02👍), 3) Yak-52 toggles not toggling, 4) all Caucasus ATC bugs

Posted

Seems eminently sensible

Commenting out code is made trivial in any kind of scripting and programming for a reason, and the same logic applies to trying to pick apart and test complex triggers. Since all the triggers are just UI for underlying scripts anyway, it might not even be difficult to do in the mission file code.

❧ ❧ Inside you are two wolves. One cannot land; the other shoots friendlies. You are a Goon. ❧ ❧

Posted
It would be cool to be able to "comment out" individual Actions, Conditions and perhaps the whole Triggers with some "Disabled" checkbox. I think "disabled" says it all, of course, the action/condition/trigger would be somehow indicated (a bit harder for triggers that can be coloured by us, but I'm sure there is a way, e.g. different background).
This can make various prototyping much faster and also works around the inherent problem that we can't copy the stuff away somewhere else like we can with real code.
Might not be what you're after. But I believe @cfrag made some realtime debugging tool.

Sent from my SM-A536B using Tapatalk

  • Recently Browsing   0 members

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