Profile image

How to make gauge active above certain throttle value?

38.3k Graingy  4 days ago

Resident FT-not-getter here.
Anyways, trying to get a gauge to represent afterburner level.
Afterburner is controlled by Throttle>0.91, something I yoinked from MIGFOXHOUND31BSM26.
Is there a way to make the throttle gauge only active above 91% throttle, or better yet show what percent through 91-100% it is (i.e. 95% would be roughly 50% on the gauge, give or take)?

  • Log in to leave a comment
  • Profile image
    38.3k Graingy

    I figured out the message thing.


    "<alpha=#00>" : "<alpha=#99>"


    If I'm getting this right, it picks one as an "overlay" or something depending on whether it's getting a true or false on if a target is selected.

    Pinned 4 days ago
  • Profile image
    0 WzNick

    @Graingy try again with the edited ft. Changed 1.111 to 11.111

    Pinned 4 days ago
  • Profile image
    38.3k Graingy

    Okay, screw it, I'm gonna take a look at that darn guide.
    Just used my extremely limited html knowledge to get a music file to play on an unmaintained ~25 year old website, so I suppose I'm feeling hackerman enough already.
    If a large explosion is detected somewhere over the Pacific Ocean then somehow I managed to create myself a virus that made my computer explode. Wish me luck.

    Pinned 4 days ago
  • Profile image
    0 WzNick

    Try this @Graingy
    Throttle>0.91 ? (Throttle-0.91)*11.111 : 0
    Will set value to (Throttle-0.91)*11.111 if throttle>0.91, if false, will be 0.
    (Throttle-0.91)*11.111 means that throttle is at 95% would have output of 44.44% after subtracting the 0.91 wich is where the throttle is off and multiplied by 11.111, and at 100%, value would be at 99.99%
    Everything is in theory, I'm kinda retired.

    Pinned 4 days ago
  • Profile image
    38.3k Graingy

    On another FT-ish note,


    <size=100%>{TargetSelected ? "" : "<alpha=#50><alpha=#00>"}Text


    Will make text appear when a target is selected. How do I do the inverse? How do I make text disappear when a target is found? I tried inverting the brightness values, but that don't work. Keep in mind, this was created entirely by reverse-engineering, so I don't actually understand what each part of that does.

    Pinned 4 days ago
  • Profile image
    38.3k Graingy

    @Axartar Tested it, seemed to have worked.

    +1 yesterday
  • Profile image
    20.3k Axartar

    @Graingy not 100% sure, but if its anything like most calculators, its approximated to a bunch of decimal places. but it might make some rounding easier somewhere, any benefits are probably undercut though, by its long size

    yesterday
  • Profile image
    38.3k Graingy

    @Axartar Ah, I see. 100/9 would be the absolute correct value.
    Would FT interpret that? I'd need to consult the guide page...

    yesterday
  • Profile image
    20.3k Axartar

    @Graingy a fraction makes it so you never rounded. 11.111. Is slightly less than the true value, it’s up to you

    yesterday
  • Profile image
    38.3k Graingy

    @Axartar i don't follow?

    2 days ago
  • Profile image
    20.3k Axartar

    @Graingy if you are using the *11.111 one, if you want higher resolution (more decimal places) use 100/9. If you struggle with label stuff, i got examples you can take if you need

    3 days ago
  • Profile image
    38.3k Graingy

    @Axartar Well, fortunately the pinned solutions work.

    3 days ago
  • Profile image
    20.3k Axartar

    @Graingy Dont be, thats just good coding, there are usually 100 ways to achieve the same thing, that said, there will be one optimal one. I know for the invis label that it does work. as for the Throttle thing, Im pretty sure it would work, but that s mainly if I understood what you wanted

    3 days ago
  • Profile image
    38.3k Graingy

    @Axartar I am uncomfortable that I've seen so many ways here to accomplish the same thing.
    This does not bode well.

    3 days ago
  • Profile image
    20.3k Axartar

    @Graingy change the opacity value e.g. colour = colourHex{TargetSelected>0? 00 : FF} make sure to put speech marks around the ff and 00, it wont format right here for sm reason
    and as for the throttle you could do it with round(clamp01(Throttle-0.91)*100/9) would show what i think you want, such that it shows the percentage after 91% and treat that 9% as 0-100%

    4 days ago
  • Profile image

    e

    4 days ago
  • Profile image
    0 WzNick

    @Fiat133 I made a promise that I would delete the account if it passed 12.3k.so yes ocd.

    4 days ago
  • Profile image
    0 WzNick

    "I am a genius" @Graingy Newton~

    4 days ago
  • Profile image
    38.3k Graingy

    @WzNick What?

    4 days ago
  • Profile image
    104 Fiat133

    @WzNick let me guess... ocd?

    4 days ago
  • Profile image
    0 WzNick

    @Graingy you are Graingy Newton

    4 days ago
  • Profile image
    0 WzNick

    @Fiat133 trash builds. I wanna be forgotten

    4 days ago
  • Profile image
    38.3k Graingy

    @griges Already got a functional response, but I suppose I can use that as a study example in trying to learn this allforsaken language.

    +1 4 days ago
  • Profile image
    487 griges

    to activate gauge at 91%throttle just put this in activation
    Throttle>90 so it is on at 91%
    for the needle, just
    inverselerp (0.90,1,Throttle)*100 so the gauge will count 90% as 0, and 100% as 100
    or delete *100 if you want the result 0-1

    +1 4 days ago
  • Profile image
    104 Fiat133

    @WzNick completely understandable, but why did you delete your account in the first place though instead of leaving it as is?

    4 days ago
  • Log in to see more comments