Hey, looking for an alternative here.
I need a measure that enables or disables another measure based on the value of a variable. That variable must be the current skin path, if that variable isn't exactly the current skin path, then the other measure enables and writes the correct path to the variable. So, if [#VARIABLEPATH] = [#CURRENTPATH] then the other measure stays disabled. If that's not true, then the other measure is enabled and writes the [#CURRENTPATH] to the [#VARIABLEPATH] which makes the measure be true and disables the other measure.
My problem is that, when I try this
I get this error:Error: "PCRE does not support \L, \l, \N{name}, \U, or \u" in IfMatch=C:\Users\User\[...]
Because paths have all that not supported stuff.
The reason why I need this is kinna hard to explain, but long story short, I need the current path of this skin on another skin. I just need a measure that correctly tells if the path on the variable is exactly the same as the currentpath or not. I tried using IfConditions but it wouldn't do the job either.
like:This gets the error "N" is unknown: IfCondition=N/A = C:\Users\User\[...]
Because I guess that's supposed to only be used with numeric values and not strings.
Thanks in advance.
I need a measure that enables or disables another measure based on the value of a variable. That variable must be the current skin path, if that variable isn't exactly the current skin path, then the other measure enables and writes the correct path to the variable. So, if [#VARIABLEPATH] = [#CURRENTPATH] then the other measure stays disabled. If that's not true, then the other measure is enabled and writes the [#CURRENTPATH] to the [#VARIABLEPATH] which makes the measure be true and disables the other measure.
My problem is that, when I try this
Code:
[mPath];This measure compares the current VariablePath against CurrentPath and determines if it's necessary to write it or not.Measure=StringString=[#VariablePath]Substitute="":"N/A"RegExpSubstitute=1IfMatch=[#CURRENTPATH]IfMatchAction=[!DisableMeasure wPath]IfNotMatchAction=[!EnableMeasure wPath][!UpdateMeasure wPath]DynamicVariables=1[wPath];This measure writes the correct path to the variable.Disabled=1Measure=CalcOnUpdateAction=[!SetVariable VariablePath [#CURRENTPATH]] [!Writekeyvalue Variables VariablePath [#CURRENTPATH] "#@#Settings.inc"][!UpdateMeasure mPath]UpdateDivider=-1
Because paths have all that not supported stuff.
The reason why I need this is kinna hard to explain, but long story short, I need the current path of this skin on another skin. I just need a measure that correctly tells if the path on the variable is exactly the same as the currentpath or not. I tried using IfConditions but it wouldn't do the job either.
like:
Code:
[mPath];This measure compares the current VariablePath against CurrentPath and determines if it's necessary to write it or not.Measure=StringString=[#VariablePath]Substitute="":"N/A"RegExpSubstitute=1IfCondition=[[#CURRENTSECTION]] = [#CURRENTPATH]IfTrueAction= [!DisableMeasure wPath]IfFalseAction=[!EnableMeasure wPath][!UpdateMeasure wPath]DynamicVariables=1[wPath];This measure writes the correct path to the variable.Disabled=1Measure=CalcOnUpdateAction=[!SetVariable VariablePath [#CURRENTPATH]] [!Writekeyvalue Variables VariablePath [#CURRENTPATH] "#@#Settings.inc"][!UpdateMeasure mPath]UpdateDivider=-1
Because I guess that's supposed to only be used with numeric values and not strings.
Thanks in advance.
Statistics: Posted by RicardoTM — Yesterday, 10:31 pm