Since 1.3 I cannot set direct string values anymore. The textbox will not show and I get a Lua error (message below).
My steps:
create a new campaign
switch to "Actions" tab
add any new action
CTRL+click to add a condition
click on the default condition, prefilled with "Unit name (target) is equal to Elsa"
on the right side (value) open the menu and choose Direct Value > String Value
It seems that the value passed to SetText() is a table instead of string.
Message: ...talRP3_Extended_Tools\script/conditions/operands.lua:67: Usage: <unnamed>:SetText("text") Time: Sat Jan 12 13:32:22 2019 Count: 3 Stack: ...talRP3_Extended_Tools\script/conditions/operands.lua:67: Usage: <unnamed>:SetText("text") [C]: in functionSetText'
...talRP3_Extended_Tools\script/conditions/operands.lua:67: in function load' ...lRP3_Extended_Tools\script/conditions/conditions.lua:135: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:123> ...lRP3_Extended_Tools\script/conditions/conditions.lua:178: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:157> ...lRP3_Extended_Tools\script/conditions/conditions.lua:653: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:651> Interface\AddOns\totalRP3\core\impl\ui_tools.lua:254: in function <Interface\AddOns\totalRP3\core\impl\ui_tools.lua:245> Interface\AddOns\totalRP3\core\impl\ui_tools.lua:169: in functionfunc'
...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:1183: in function `MSA_DropDownMenuButton_OnClick'
...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:156: in function <...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:155>
Locals: (temporary) = {
0 =
Center = {
}
help = TRP3_OperandEditorStringHelp {
}
Right = {
}
Left = {
}
title = TRP3_OperandEditorStringText {
}
}
(temporary) =
Since 1.3 I cannot set direct string values anymore. The textbox will not show and I get a Lua error (message below).
My steps:
It seems that the value passed to SetText() is a table instead of string.
Message: ...talRP3_Extended_Tools\script/conditions/operands.lua:67: Usage: <unnamed>:SetText("text") Time: Sat Jan 12 13:32:22 2019 Count: 3 Stack: ...talRP3_Extended_Tools\script/conditions/operands.lua:67: Usage: <unnamed>:SetText("text") [C]: in function
SetText' ...talRP3_Extended_Tools\script/conditions/operands.lua:67: in functionload' ...lRP3_Extended_Tools\script/conditions/conditions.lua:135: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:123> ...lRP3_Extended_Tools\script/conditions/conditions.lua:178: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:157> ...lRP3_Extended_Tools\script/conditions/conditions.lua:653: in function <...lRP3_Extended_Tools\script/conditions/conditions.lua:651> Interface\AddOns\totalRP3\core\impl\ui_tools.lua:254: in function <Interface\AddOns\totalRP3\core\impl\ui_tools.lua:245> Interface\AddOns\totalRP3\core\impl\ui_tools.lua:169: in function
func' ...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:1183: in function `MSA_DropDownMenuButton_OnClick' ...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:156: in function <...3\libs\MSA-DropDownMenu-1.0\MSA-DropDownMenu-1.0.lua:155>Locals: (temporary) = {
0 =
Center = {
}
help = TRP3_OperandEditorStringHelp {
}
Right = {
}
Left = {
}
title = TRP3_OperandEditorStringText {
}
}
( temporary) =
Hmmm, I cannot reproduce the issue. Editor works just fine for me.
Is it happening on a new campaign or one you created before ? If it's the latter, can you export it and share to see if something is wrong with it ?
Nevermind, I just managed to reproduce by switching to Numeric value then back to String value. Will look into it.
I can reproduce the issue on my end, for any effect, even when trying with an item instead of a campaign.