thanks, that works(I'm still used to Java which you cant do that)
the way i figure it, the more plugins that i "translate" the less you have to do
i seem to be having another problem though
i tried replacing the pieExp expression but i am getting an error
Assertion failure: Cannot find object expression: Date.getmonth
my code is
[edit time]
AddExpression(0, ef_return_string, "getmonth", "Tutorial", "getmonth", "returns the month it is now. jan = 1 feb = 2 ...ect"); //same as the pieExp eccept i replaced it with getmonth
[runtime]
cr.plugins.DATE.prototype.exps = {};
(function()
{
// Get prototype for the expressions object that stores expression methods for an instance
exps["getmonth"] = function(ret) // all expressions take a 'ret' parameter
{
// Call set_string, set_int or set_float on the ret object to return a value
// The value returned from this function is ignored!
// If your expression has parameters, they follow on after 'ret', e.g.:
// function(ret, x, y)
ret.set_string( this.month);
};
oh i called the expression with the set text thing like this:
"month is: " & Date.getmonth
this worked with the tutorial stuff and have already edited actions with this with major success
can anyone tell me where the problem is?
EDIT: after i replaced the modified code with the original tutorial code
the problem still exists, im thinking that the problem might be in construct or the file is corrupted somehow
i guess somehow construct2 is not reading the info from that part of the runtime file
can some one confirm this
oh other than the expressions not working...... the rest of the plugin is coming along swimmingly
also, would it help if i uploaded the whole files?