Hi Chris,
I have managed to compile and run successfully a new plugin that I had developed( derived from BasicTransformStimulus) on a system that has a nightly built version of MWorks. However, when I tried to use that plugin on another system that has normal version of MWorks 0.45 (Not nightly build), the MWorks server crashed because of mismatch between versions of MWorks.
I also tried to compile my plugin against MWorks 0.45 but there were link errors: two header files, “MworksCore/ParameterValue.h” & “ MWorksCore/ComponentInfo.h” could not be found.
The question is what I should do to build the plugin against MWorks 0.45?
Best,
Alireza
Hi Alireza,
Components that use the post-0.4.5 “no factory” approach (i.e. they implement describeComponent
and take a single ParameterValueMap
argument to their constructor) are not compatible with MWorks 0.4.5 and earlier. If you want your new plugin to work with MWorks 0.4.5, you’ll have to write it in the 0.4.5 style, which is still supported in the nightly build.
Well, “still supported” except in the case of subclasses of BasicTransformStimulus, which provides only a new-style constructor in current nightlies. Since this has come up a few times now, I’m going to add the old-style constructor back to BasicTransformStimulus, which means that subclasses of BasicTransformStimulus can be written to work with both 0.4.5 and the nightly build. (If I had known that BasicTransformStimulus was used outside of the MWorks core, I wouldn’t have removed it in the first place!)
Sorry for the confusion…
Chris
I’m going to add the old-style constructor back to BasicTransformStimulus
This is done and will be in tonight’s nightly build.
Chris
Thanks chris! It worked.
Just one question: Do have a roadmap to incorporate the new-style constructor into the official version of MWorks in the near future?
Alireza
Hi Alireza,
Do have a roadmap to incorporate the new-style constructor into the official version of MWorks in the near future?
The new-style component stuff will be included in the next official release of MWorks. I’m hoping that will go out sometime this spring, but we don’t have a definite timetable yet.
Chris