The update and modify scripts have changed. If the scripts exist, they must return a value, otherwise, the control will not get updated. Even if the actual value isn't changed!
-- Example encoder update script.
local inst = mc.mcGetInstance()
local val = select(1,...) -- Get the system value.
val = tonumber(val) -- The value may be a number or a string. Convert as needed.
local name = select(2, ...) -- Get the control name. It is always a string. You may not need it. But it is there if you do.
val = val / 1024 -- convert the encoder value to a decimal (assumes 1024 counts per unit).
return val -- the script MUST return a value, otherwise, the control will not be updated.
In your script functions, it would be just a slight change.
Add
local val = select(1,...) -- Get the system value.
to the top of each script and
return val
to the bottom of each script.
But that is not all. The error states that the 4th parameter (XWear) is nil. XWear is pulled from the droXWearOffset DRO. So I'm thinking that there is an update script that needs to be looked at (probably the same modification as above).
Steve
Steve