Profile image

Stack Empty variable system?

7,308 iPilot  1.6 years ago

round((hudBright/2)8)/8>0.9/8&round((hudBright/2)8)/8<1.1/8)?"24":((round((hudBright/2)8)/8>1.9/8&round((hudBright/2)8)/8<2.1/8)?"48":((round((hudBright/2)8)/8>2.9/8&round((hudBright/2)8)/8<3.1/8)?"6c":((round((hudBright/2)8)/8>3.9/8&round((hudBright/2)8)/8<4.1/8)?"91":((round((hudBright/2)8)/8>4.9/8&round((hudBright/2)8)/8<5.1/8)?"b5":((round((hudBright/2)8)/8>5.9/8&round((hudBright/2)8)/8<6.1/8)?"c9":((round((hudBright/2)*8)/8>6.9/8)?"ff":"00"))))

hello all, I am using this as the code for a variable where hudBright is a dial that controls the alpha of my HUD, to save space in the label/ simplify it I thought id move it into variable setters and have the output be hudBright2, so instead of the alpha code being:
<alpha=#{(round((hudBright/2)8)/8>0.9/8&round((hudBright/2)8)/8<1.1/8)?"24":((round((hudBright/2)8)/8>1.9/8&round((hudBright/2)8)/8<2.1/8)?"48":((round((hudBright/2)8)/8>2.9/8&round((hudBright/2)8)/8<3.1/8)?"6c":((round((hudBright/2)8)/8>3.9/8&round((hudBright/2)8)/8<4.1/8)?"91":((round((hudBright/2)8)/8>4.9/8&round((hudBright/2)8)/8<5.1/8)?"b5":((round((hudBright/2)8)/8>5.9/8&round((hudBright/2)8)/8<6.1/8)?"c9":((round((hudBright/2)*8)/8>6.9/8)?"ff":"00")))))}>

it would just be

<alpha=#{hudBright2}>

however when I try to put the code (the code at the very start of this post) into the variable system, I get the error "Stack Empty". I have no idea what this means, is this a syntax problem on my part or is this code maybe not compatible to be put into a variable?

  • Log in to leave a comment
  • Profile image
    17.6k windshifter1

    @iPilot I get the same error with different variables. Did you find a fix?

    1.2 years ago
  • Profile image
    7,308 iPilot

    also dont mind the italics, there are quotes in there which mess with it, if there is a way to post it without being messed with by the text editing please lmk

    +2 1.6 years ago